42TARDIS Posted October 22, 2013 Posted October 22, 2013 Hi, I am new here and to modding, i want to create a custom furnace but with 2 input slots, I have followed youtube tutorials for creating a normal furnace and have tried to modify it to have 2 inputs, but minecraft crashes when the furnace is right-clicked on. I do not know which class files and error logs are needed or where to post them. Thanks Quote
42TARDIS Posted October 23, 2013 Author Posted October 23, 2013 I had another look, i think i am getting a java.lang.ArrayIndexOutOfBoundsException: 4 on this code: public void addCraftingToCrafters(ICrafting icrafting) { super.addCraftingToCrafters(icrafting); icrafting.sendProgressBarUpdate(this, 0, this.forge.cookTime); icrafting.sendProgressBarUpdate(this, 1, this.forge.cookTime); icrafting.sendProgressBarUpdate(this, 2, this.forge.burnTime); icrafting.sendProgressBarUpdate(this, 3, this.forge.currentItemBurnTime); Any help is appreciated Thanks Quote
MineMaarten Posted October 23, 2013 Posted October 23, 2013 I'm sorry to say, but this is a "please learn more Java" situation. If you did know Java you would have known the bold line you've posted never could have thrown a IndexOutOfBoundsException on it's own. If the stacktrace indeed said it was on that line, there should be another trace which points at the actual problem (inside the super method). Also the fact that you don't know exactly in which class you have problem indicates you don't really know what they did in the Youtube video. All in all, I'd recommend to learn more Java, and use http://courses.vswe.se/ as a start. These lectures combine the learning of Java and Minecraft modding. Yes this will take a lot of time, but every good modder has been through this and it pays off. Quote Author of PneumaticCraft, MineChess, Minesweeper Mod and Sokoban Mod. Visit www.minemaarten.com to take a look at them.
42TARDIS Posted October 23, 2013 Author Posted October 23, 2013 Thanks, I will have a look at that and hopefully be able to fix the problem once I know a bit more. Thanks again 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.