Jump to content

Recommended Posts

Posted

I want to implement a function. I now have a custom container. I want to put Furnace that can burn, such as coal. Then she will burn like a Furnace, how can I do it

The container code is complete, now only need to put the coal and start burning.

 

 

Posted (edited)

you can't create a custom furnace without understanding how it (should) work,
and which mappings did you use (i need it for the method names you should look at)?

Edited by Luis_ST
Posted
  On 11/18/2021 at 10:13 AM, Luis_ST said:

you can't create a custom furnace without understanding how it (should) work,
and which mappings did you use (i need it for the method names you should look at)?

Expand  

I just want a function of the furnace, just put in coal and burn it. That's it. I don't need other functions

Do I need to show you my code?

Posted
  On 11/19/2021 at 6:06 AM, Spring said:

I just want a function of the furnace, just put in coal and burn it. That's it. I don't need other functions

Do I need to show you my code?

Expand  

You can't do that in a single function. It would require an inventory for the TE, a Screen, a Menu and a bunch of other shit.

Posted
  On 11/19/2021 at 6:51 AM, uSkizzik said:

You can't do that in a single function. It would require an inventory for the TE, a Screen, a Menu and a bunch of other shit.

Expand  

It means I need to implement a complete set of furnace code, right?

Posted

There really is no easy way of doing this. In fact I deem coding tile entitys, like a custom furnace type of container, as pretty much the most difficult thing to code. You'd have to do a custom block, container, containerScreen, tileEntiy, and code for stateData, inventoryZoneContent, and something to handle the blockStateFlags. It might not be the best address/source, but I'd recommend trying to follow the "MinecraftByExample" tutorial series. For a more rudimentary start I'd recommend KaupenJoe's Tutorials, on Fuel and Custom TileEntitys.

But again, there really is no "easy" way on building completely customized furnaces.

In special for your request. KaupenJoe's Fuel tutorial teaches you what you want, I guess.

Posted
  On 11/19/2021 at 7:06 AM, Cratthorax said:

There really is no easy way of doing this. In fact I deem coding tile entitys, like a custom furnace type of container, as pretty much the most difficult thing to code. You'd have to do a custom block, container, containerScreen, tileEntiy, and code for stateData, inventoryZoneContent, and something to handle the blockStateFlags. It might not be the best address/source, but I'd recommend trying to follow the "MinecraftByExample" tutorial series. For a more rudimentary start I'd recommend KaupenJoe's Tutorials, on Fuel and Custom TileEntitys.

But again, there really is no "easy" way on building completely customized furnaces.

In special for your request. KaupenJoe's Fuel tutorial teaches you what you want, I guess.

Expand  

Ok i try to do

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.