Jump to content

[1.8] Custom Furnace


vealmeal100

Recommended Posts

Hi, I just took a class on how to make Minecraft mods. Unfortunately, none of the instructors were able to show me how to create a second furnace, with a second set of recipes. Basically a machine.

 

I have found a bunch of guides for what I want in 1.7 and older, but I have yet to find a guide in 1.8. I have tried to adapt these to 1.8 but a bunch of stuff like texturing seem to be totally different. I am wondering if I am able to create a second furnace by extending the blockFurnace class? I have tried extending this class as well as copying the Smelting recipes and relabeling all references to it. However, I am unable to figure out how to make a second "active" state so the furnace will not just revert back to a normal furnace on use.

 

Any help at all is appreciated!

Link to comment
Share on other sites

Your instructors couldn't, or wouldn't? If they really couldn't, that's pretty sad...

 

BlockFurnace uses a static method (which you can't override) that is called from TileEntityFurnace's onUpdate method - you have to override the TE method to call your own static method instead, which would then set the block state to YOUR active / inactive block, rather than the vanilla one.

 

There is a lot of stuff going on in those classes, though, so what I would recommend is to start off with a simple block in 1.8, get it rendering and all of that, then follow a 1.7.10 tutorial on furnaces to get it going as a furnace with custom recipes, as all of that is basically the same.

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.