Alexander0507 Posted February 9, 2014 Posted February 9, 2014 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 ? Quote
XxxXEclipse7XxxX Posted February 10, 2014 Posted February 10, 2014 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! Quote Check Out My Modding Tutorials For Minecraft Forge! http://www.youtube.com/user/XxxXEclipse7XxxX Check Out My Forums - http://www.theaustralianmodder.com
Alexander0507 Posted February 10, 2014 Author Posted February 10, 2014 When I copy this it doesn't know how to deal with EnumHelper. Eclipse just says "EnumHelper cannot be resolved" Quote
Alexander0507 Posted February 10, 2014 Author Posted February 10, 2014 Got A Problem with crafting now. I have this setup actually loading, Reveal hidden contents 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 Quote
sequituri Posted February 10, 2014 Posted February 10, 2014 On 2/10/2014 at 2:13 PM, Alexander0507 said: 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. Quote -S- (if I helped, please click Thank and applaud) http://6upnqa.dm2301.livefilestore.com/y2mtf-vG7Tqq1TiiVpIm53KWj7294NDPoHfSHHb4PzZiMAUfRCfK0UY0MwOu7Q3zTBNVTKqWjr2-xgBfFRpQT5p-QivtvknPpoABMNUw9br9WuZcBFkjePhnAbW500gVm-P/sequiturian.png[/img]
SiXxKilLuR Posted February 11, 2014 Posted February 11, 2014 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" Quote
XxxXEclipse7XxxX Posted February 11, 2014 Posted February 11, 2014 Probably because you put it in the wrong spot. Remember that ToolMaterial needs to go above EVERYTHING except the line - public class classname Quote Check Out My Modding Tutorials For Minecraft Forge! http://www.youtube.com/user/XxxXEclipse7XxxX Check Out My Forums - http://www.theaustralianmodder.com
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.