XxArchangelz Posted November 1, 2012 Posted November 1, 2012 Im new to modding and I have no clue why this still wont work package archangel.emeraldtools.item; import net.minecraft.src.Block; import net.minecraft.src.EnumToolMaterial; import net.minecraft.src.Item; import net.minecraft.src.ItemStack; import net.minecraftforge.common.EnumHelper; import archangel.emeraldtools.lib.ItemIds; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; public class ModItems { //The tool material public static EnumToolMaterial emeraldT = EnumHelper.addToolMaterial("emeraldT", 5, 1800, 11F, 3, 11); /* Item name constants */ public static final String EMERALD_PICKAXE_NAME = "pickaxeEmerald"; /* Mod item instances */ public static void init() { /* Initialize each mod item individually */ pickaxeEmerald = new EmeraldPickaxe(ItemIds.EMERALDPICKAXE, emeraldT).setIconIndex(4).setItemName("EmeraldPickaxe"); package archangel.emeraldtools.item; import net.minecraft.src.CreativeTabs; import net.minecraft.src.EnumToolMaterial; import net.minecraft.src.ItemPickaxe; import archangel.emeraldtools.CommonProxy; public class EmeraldPickaxe extends ItemPickaxe { public EmeraldPickaxe(int id, EnumToolMaterial par2EnumToolMaterial) { super(id, par2EnumToolMaterial); maxStackSize = 64; this.setCreativeTab(CreativeTabs.tabTools); } public String getTextureFile() { return CommonProxy.ITEMS_PNG; } } I have even copied the same material setup for diamond and it still doesnt work Quote
XxArchangelz Posted November 2, 2012 Author Posted November 2, 2012 Still can't seem to find the issue. This totally baffles me Quote
Kore Posted November 3, 2012 Posted November 3, 2012 Try to change the maxStackSize to 1, that could be the problem and change the 5 to a 3, because i think the game does not handle anything over a 3! If this helps, please leave a Thanks! Quote The Korecraft Mod
XxArchangelz Posted November 3, 2012 Author Posted November 3, 2012 Yes that worked, thanks so much! Quote
colossali Posted November 8, 2012 Posted November 8, 2012 Try to change the maxStackSize to 1, that could be the problem and change the 5 to a 3, because i think the game does not handle anything over a 3! If this helps, please leave a Thanks! I have a 5 on one of my items and it works, so it must be the maxstacksize! Quote
Recommended Posts
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.