Posted November 18, 20213 yr 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.
November 18, 20213 yr Author 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
November 18, 20213 yr 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, 20213 yr by Luis_ST
November 19, 20213 yr Author 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?
November 19, 20213 yr 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.
November 19, 20213 yr Author 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?
November 19, 20213 yr 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.
November 19, 20213 yr Author 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.