kenny2810
Members-
Posts
62 -
Joined
-
Last visited
Everything posted by kenny2810
-
Since my last post in a way stalled, I decided to start a new one for the error I was now getting. Basically when I try to execute GameData.itemRegistry.getObjectByName(String) I seem to be getting an error with the itemRegistry; Here is the error: itemRegistry cannot be resolved or is not a field Any idea what could be causing this?
-
At this point im willing to try anything. Also I am doing this in 1.6.4, sorry I didnt clarify earlier, butI mostly work on the code late at night and it kept slipping my mind.
-
I seem to be getting an error with the itemRegistry; Here is the error: itemRegistry cannot be resolved or is not a field Any idea what could be causing this?
-
That may work; If I can store that data into the arraylist then I should have no issues
-
Hmm Im testing it right now to see if it works. Ill post back as soon as I know more. I have considered an alternate method, but it is a lot more complex and frankly not worth the extra effort.
-
I will be using an arraylist, not an array if I can.
-
Cheers. Ive never used config files before, so I am not sure how its methods works. Thanks again
-
What I want is to store the strings from the config file into an array list. Does that method do that?
-
Does it store all of them or do I have to run it for each one?
-
Is there a method or any way to store the information in a config file into an array list? My mod is going to randomly give the player a random item which he will list in the config in the form: item.ingotIron Here is how the config will look: item.ingotIron item.ingotGold item.diamond etc Basically I want to be able to load those into an array list, and the rest has already been taken care of. Is it possible to do this using config files? Thanks in advance
-
The only issue I have with that tutorial is that he uses an external program that he wrote. I would like to be able to create the multiblock without having to use an external program. EDIT: If worst comes to worst ill use it, then try and understand the code it generates.
-
Is there a good tutorial that explains how to create multiblocks without the need to download an external program? Thanks in advance.
-
Thank you very much!
-
Is there a specific function which makes it so that when a player enters the nether, a certain line of commands is run? Thanks in advance
-
After looking into the API I`ve found what I was looking for. Thanks for you help!
-
There is this modA, and it has an API which it uses and can also be used by others to help them develop their own mods using its framework. I want to create an addon for modA, and I plan to use this API. What I am wondering if I can open both the API and modA at the same time as I wish to check the type of certain blocks.
-
It does have one, and in fact it uses it. Im just wondering if I can open both the API and the actual mod itself.
-
Lets say I wanted to create an addon for mod X. Are there any good tutorials that explain how to create an addon for said mod? If not can anyone tell me how to do so? Also mod X uses an API but can I open both at the same time? Thanks in advance.
-
[1.6.4] Issues registering mob rendering and unknown cause of error
kenny2810 replied to kenny2810's topic in Modder Support
I updated the original post -
I am trying to add a new mob called a LavaCreeper yet when I come to register the textures it spams this error report: Also in the same class I am getting an error in this line of coding: this.tasks.addTask(2, new EntityAICreeperSwell(this)); [The error says: The constructor EntityAICreeperSwell(LavaCreeperClass) is undefined] UPDATE: Thanks ninja for helping me sort out the issue regarding the texture rendering but I still cannot understand what I must do regarding the this.tasks.addTask(2, new EntityAICreeperSwell(this)); Could you please be a bit more clear coolboy? Also I moved the code to a gist for easier reading and have removed the original error I was getting and have pasted the new error I am getting. Again thank you both of you for your help https://gist.github.com/anonymous/8383622 If I need to post any other classes just tell me and thanks for the help in advance
-
Can anyone direct me to a decent tutorial how to add armour for 1.6.4?
-
Help with stacking an item added from my mod.
kenny2810 replied to kenny2810's topic in Modder Support
It did thanks! -
I am trying too add a crafting recipe for a pickaxe, and to start I tried to stack the ingots but I keep getting this error: genericItem cannot be resolved or is not a field. Here is the class of the main class called Generic.java: package tutorial.generic; // This Import list will grow longer with each additional tutorial. // It's not pruned between full class postings, unlike other tutorial code. import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.EnumToolMaterial; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraftforge.common.EnumHelper; import net.minecraftforge.common.MinecraftForge; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; @Mod(modid="generic", name="Generic", version="0.0.0") @NetworkMod(clientSideRequired=true, serverSideRequired=false) public class Generic { // See Basic items tutorial for Generic Ingot public EnumToolMaterial generic = EnumHelper.addToolMaterial("Generic", 3, 2000, 13.0F, 3.0F, 22); public final Item genericSword = new GenericSword(5002, generic).setCreativeTab(CreativeTabs.tabCombat).setUnlocalizedName("genericSword"); public final Item genericPick = new GenericPick(5003, generic).setCreativeTab(CreativeTabs.tabTools).setUnlocalizedName("genericPick"); public static Item genericIngot; public static Block genericDirt; public static Block genericOre; @Instance(value="generic") public static Generic instance; @SidedProxy(clientSide="tutorial.generic.client.ClientProxy", serverSide="tutorial.generic.CommonProxy") public static CommonProxy proxy; @EventHandler public void preInit(FMLPreInitializationEvent event) { genericIngot = new GenericItem(201).setMaxStackSize(64) .setUnlocalizedName("genericIngot"); genericDirt = new GenericBlock(500, Material.ground) .setHardness(0.5F).setStepSound(Block.soundGravelFootstep) .setUnlocalizedName("genericDirt").setCreativeTab(CreativeTabs.tabBlock); genericOre = new GenericOre(501, Material.rock); } @EventHandler public void load(FMLInitializationEvent event) { ItemStack genricIngot = new ItemStack(Item.genericItem, 1); // See Basic items tutorial for Generic Ingot LanguageRegistry.addName(genericIngot, "Generic Ingot"); LanguageRegistry.addName(genericOre, "Generic Ore"); MinecraftForge.setBlockHarvestLevel(genericOre, "pickaxe", 3); GameRegistry.registerBlock(genericOre, "genericOre"); GameRegistry.registerItem(genericSword, "genericSword"); LanguageRegistry.addName(genericSword, "GenericSword"); GameRegistry.registerItem(genericPick, "genericPick"); LanguageRegistry.addName(genericPick, "GenericPick"); // End Basic Blocks proxy.registerRenderers(); } @EventHandler public void postInit(FMLPostInitializationEvent event) { // Stub Method } } Here is the genericItem class: package tutorial.generic; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.item.Item; public class GenericItem extends Item { public GenericItem(int id) { super(id); // Constructor Configuration maxStackSize = 64; setCreativeTab(CreativeTabs.tabMisc); setUnlocalizedName("genericItem"); } public void registerIcons(IconRegister iconRegister) { itemIcon = iconRegister.registerIcon("genericmod:genericIngot"); } } Can anyone tell me what I am doing wrong?
-
Hey guys, I cant seem to find a good tutorial on how to create a pickaxe using an item you added. Can someone either give me an example of how to create one or direct me to a decent preferably written tutorial on this subject? Thanks in advance!
-
Thanks, I was looking at the wiki and realized my answer was there as well. Major derp on my part EDIT: I`d like to give a huge thank you to all who posted in this topic and helped me out as I have successfully added the textures Thank-you guys