Posted June 27, 20169 yr When I want to add an ItemAxe to my mod, it won't start the game. Is there some kind of bug with it? Let me know.
June 27, 20169 yr When asking for help, always specify the Minecraft version you're using and post your code and the FML log/crash report. In this case, the issue is almost certainly that you're using the vanilla ItemAxe(ToolMaterial) constructor and it's crashing with an ArrayIndexOutOfBoundsException . This is due to the constructor using the ToolMaterial 's ordinal as an array index, so it only works with the vanilla ToolMaterial s. The solution is to use the ItemAxe(ToolMaterial, float, float) constructor added by Forge instead. Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
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.