Jump to content

1.6.2 Creating Furnace with 2 inputs


42TARDIS

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Author of PneumaticCraft, MineChess, Minesweeper Mod and Sokoban Mod. Visit www.minemaarten.com to take a look at them.

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.