Posted February 9, 201411 yr Do I still need to copy the classes like ToolMaterial, ItemTool and ItemPickaxe ? Cause when I try to copy ToolMaterial it just sends me to the Item class and really ? A new Item.class ?
February 10, 201411 yr This is what you can use for the ToolMaterial. public static ToolMaterial ToolMaterialName = EnumHelper.addToolMaterial("REDSTONE", HarvestLevel, MaxUses, Efficiency, Damage, Enchantment); Just remember if you haven't used ToolMaterial before the Efficiency and the Damage are both floats! Check Out My Modding Tutorials For Minecraft Forge! http://www.youtube.com/user/XxxXEclipse7XxxX Check Out My Forums - http://www.theaustralianmodder.com
February 10, 201411 yr Author When I copy this it doesn't know how to deal with EnumHelper. Eclipse just says "EnumHelper cannot be resolved"
February 10, 201411 yr Author Got A Problem with crafting now. I have this setup actually loading, public static void addCrafting(){ GameRegistry.addShapedRecipe(new ItemStack(sword), new Object[] { " XX", " x ", " x ", " / ", 'X', Items.ingot, '/', net.minecraft.init.Items.stick }); } (checked the loading with system.out.println ) but I can't craft it. I think the problem is when I use a stick. Also can't import that class it tells me it's a unused import
February 10, 201411 yr public static void addCrafting(){ GameRegistry.addShapedRecipe(new ItemStack(sword), new Object[] { " XX", " x ", " x ", " / ", 'X', Items.ingot, '/', net.minecraft.init.Items.stick }); } I dunno if it's just me, but it appears that your crafting table has 4 rows in the grid. I hope that is wrong and you removed the extra row in your actual code. -S- (if I helped, please click Thank and applaud) http://6upnqa.dm2301.livefilestore.com/y2mtf-vG7Tqq1TiiVpIm53KWj7294NDPoHfSHHb4PzZiMAUfRCfK0UY0MwOu7Q3zTBNVTKqWjr2-xgBfFRpQT5p-QivtvknPpoABMNUw9br9WuZcBFkjePhnAbW500gVm-P/sequiturian.png[/img]
February 11, 201411 yr This works //make golden sword from 1 stick, 2 blocks of dirt v.1.7.2 GameRegistry.addShapedRecipe(new ItemStack(Items.golden_sword, 1), new Object[]{ "X1X", "X4X", "X7X", Character.valueOf('1'), new ItemStack(Blocks.dirt, 1), Character.valueOf('4'), new ItemStack(Blocks.dirt, 1), Character.valueOf('7'), new ItemStack(Items.stick, 1), });} "XXX", "XXX", "XXX" represents the slots in the crafting window "012", "345", "678"
February 11, 201411 yr Probably because you put it in the wrong spot. Remember that ToolMaterial needs to go above EVERYTHING except the line - public class classname Check Out My Modding Tutorials For Minecraft Forge! http://www.youtube.com/user/XxxXEclipse7XxxX Check Out My Forums - http://www.theaustralianmodder.com
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.