Posted December 19, 201311 yr My tools don't want to work.Like Pickaxe don't mine the blocks.Axe don't chop wood.Shovel don't dig.The strange thig is the sword works! Plz Help! I'm new so I will post more questions!!!
December 19, 201311 yr Author Code: package Eclipse7.overpowerMod.item; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.EnumToolMaterial; import net.minecraft.item.ItemPickaxe; public class ItemSingotPickaxe extends ItemPickaxe{ public ItemSingotPickaxe(int par1, EnumToolMaterial par2EnumToolMaterial) { super(par1, par2EnumToolMaterial); this.setCreativeTab(CreativeTabs.tabTools); } public void registerIcons(IconRegister iconRegister) { itemIcon = iconRegister.registerIcon("overpower:SPickaxe"); } }
December 19, 201311 yr And your main mod file? Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
December 19, 201311 yr Author My main: package Eclipse7.overpowerMod.common; import Eclipse7.overpowerMod.item.ItemOpingotSword; import net.minecraft.item.EnumToolMaterial; import net.minecraft.item.ItemAxe; import net.minecraft.item.ItemStack; import net.minecraft.item.ItemSword; import net.minecraftforge.common.EnumHelper; import net.minecraft.item.Item; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; @Mod(modid = "OverPower", name = "OverPower", version = "0.1 Alpha") public class OverPower { //EnumToolMaterial public static EnumToolMaterial toolOPingot = EnumHelper.addToolMaterial("OPINGOT", 9, 1976, 15, 7, 6); //Registrations public static Item OPingotPickaxe = new ItemAxe(2000, toolOPingot).setUnlocalizedName("OPickaxe"); public static Item OPingotSword = new ItemOpingotSword(2001, toolOPingot).setUnlocalizedName("OSword"); public static Item OPingotAxe = new ItemAxe(2002, toolOPingot).setUnlocalizedName("OAxe"); public static Item OPingotShovel = new ItemSword(2003, toolOPingot).setUnlocalizedName("OShovel"); public OverPower() { LanguageRegistry.addName(OPingotPickaxe, "Opickaxe"); LanguageRegistry.addName(OPingotSword, "Opsword"); LanguageRegistry.addName(OPingotAxe, "Opaxe"); LanguageRegistry.addName(OPingotShovel, "Opshovel"); GameRegistry.addRecipe(new ItemStack(OPingotPickaxe, 1), new Object [] { "***", " x ", " x ", 'x', Item.stick, '*', Item.appleGold }); GameRegistry.addRecipe(new ItemStack(OPingotSword, 1), new Object [] { " * ", " * ", " x ", 'x', Item.stick, '*', Item.appleGold }); GameRegistry.addRecipe(new ItemStack(OPingotShovel, 1), new Object [] { " * ", " x ", " x ", 'x', Item.stick, '*',Item.appleGold }); GameRegistry.addRecipe(new ItemStack(OPingotAxe, 1), new Object [] { "** ", "*x "," x ",'x', Item.stick, '*', Item.appleGold }); } }
December 19, 201311 yr Dude. You're not referencing "ItemSingotPickaxe" in your main mod. OF COURSE it's not going to "work" Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
December 19, 201311 yr Author sorry I put the worse one... That the right one:package Eclipse7.overpowerMod.item; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.EnumToolMaterial; import net.minecraft.item.ItemPickaxe; public class ItemOPingotPickaxe extends ItemPickaxe{ public ItemOPingotPickaxe(int par1, EnumToolMaterial par2EnumToolMaterial) { super(par1, par2EnumToolMaterial); this.setCreativeTab(CreativeTabs.tabTools); } public void registerIcons(IconRegister iconRegister) { itemIcon = iconRegister.registerIcon("overpower:OPickaxe"); } }
December 19, 201311 yr You're still not referencing that class. At all. public static Item OPingotPickaxe = new ItemAxe(2000, toolOPingot).setUnlocalizedName("OPickaxe"); Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.