Jump to content

Recommended Posts

Posted

Is there a way of making a custom furnace give us different output from what we insert as a fuel and which class should this be in? The tileentitiy, the BlockCustomFurnace or the ContainerCustomFurnace?

Posted

Inn the tileentity... check the furnace tile and the brewing stand. They are quite similar :)

If you know your java basics you should have no problems figuring it out :D

If you guys dont get it.. then well ya.. try harder...

Posted

I know that you got an answer.

 

But the basic Furnace make it like so:

 

If it can update:

 

check is fuel inside.

If true = make fuel smaller

check if is a item/block inside which can be smelted.

While true and there is fuel inside the integer

start to cook.

if the fuel == null getFuel.

 

this is what the furnace do.

 

minecraft is complex you have to understand what you are doing.

That does not mean if you are do not understanding go away from that.

But its better when you have a little clue from that.

I did made my first own furnace. its a little bit easier to understand.

Because it is working under a other way.

 

https://github.com/Speiger/DynamicTools/blob/master/spmod/dynamictools/common/Tileentities/TileAdvWorkbench.java

 

this furnace (3 slot input = slot 1 output)

is a littlebit easier to understand.

 

at the get fuel i experiment something so you only need the if and not the else if.

 

i hope that helps you.

 

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.