Posted March 27, 20169 yr I am trying to use the EnumHelper (I've seen in videos) to make my sword do damage. Whenever I try to use EnumHelper.addToolMaterial, it just asks if I want to make a new class. I am new to modding and need some help. Please don't judge me. I'm sorry if I just made a dumb mistake. Thanks, - Aephos
March 28, 20169 yr public static final Item.ToolMaterial yourMaterial = EnumHelper.addToolMaterial("name", harvestlevel, maxUses, efficiency, damage, enchantability);
March 28, 20169 yr Author Sorry if I am making an obvious mistake, but EnumHelper becomes underlined in red. (I'm putting this into my code that contains my Items Class)
March 28, 20169 yr Have you imported EnumHelper? CTRL + Shift + O in eclipse, or hover over it and hit import.
March 28, 20169 yr Author Oh, I completely forgot about that! Thanks for the help, it seems like it works so far..
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.