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
46 minutes ago, Luis_ST said:

did you looked at the vanilla Furnace (TileEntity and Container)

Yes, but I think they are too difficult to understand, and I don’t know which method to use

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
19 hours ago, 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)?

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
44 minutes ago, 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?

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
13 minutes ago, 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.

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
15 minutes ago, 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.

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.