Started by
redfrogcrab
on
Topic category: Help with Minecraft modding (Java Edition)
Howdy! I'm looking for information on how to make a block that can have layers added to it, like a snow layer
Theirs's not much to go off of on the wiki or the forums, so im asking yall how to make it
Also, Ive been trying to make my own functional block, something like a furnace, the GUI I think understand, however I do not understand how to actually make the block process what I need
Thanks,
-RFC
To make a layer-type block, you'd probably want to use blockstates. There's really only one snowblock, but it has different states that determine it's height, which is saved as a special property of the block. There's a built in blockstate system in the latest version of MCreator, but if you want to alter stuff like texture, bounding box, model, and other properties, you'll want to install Nerdy's blockstate plugin, which adds a lot more options.
For a functional block like a furnace, you need to enable block entity. (Which allows the block to store items and NBT data.) Then you would make a GUI, and bind that GUI to the functional block. The GUI will do all the actual functional stuff; the block will just open the GUI when you click on it, and possibly store items.