Spring Posted November 18, 2021 Posted November 18, 2021 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. Quote
Luis_ST Posted November 18, 2021 Posted November 18, 2021 did you looked at the vanilla Furnace (TileEntity and Container) Quote
Spring Posted November 18, 2021 Author Posted November 18, 2021 On 11/18/2021 at 6:17 AM, Luis_ST said: did you looked at the vanilla Furnace (TileEntity and Container) Expand Yes, but I think they are too difficult to understand, and I don’t know which method to use Quote
Luis_ST Posted November 18, 2021 Posted November 18, 2021 (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 November 18, 2021 by Luis_ST Quote
Spring Posted November 19, 2021 Author Posted November 19, 2021 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? Quote
uSkizzik Posted November 19, 2021 Posted November 19, 2021 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. Quote
Spring Posted November 19, 2021 Author Posted November 19, 2021 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? Quote
Cratthorax Posted November 19, 2021 Posted November 19, 2021 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. Quote
Spring Posted November 19, 2021 Author Posted November 19, 2021 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 Quote
Recommended Posts
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.