Making a layered block and a functional block

Started by redfrogcrab on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Making a layered block and a functional block

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

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
To make a layer-type block,…
Thu, 10/31/2024 - 16:13

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.

Joined Sep 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hime againHow do I use block…
Tue, 11/05/2024 - 15:28

Hi
me again
How do I use block states?
Im just confused by it

Joined Sep 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Also, how do I make my…
Tue, 11/05/2024 - 16:23

Also, how do I make my functional block work even when the GUI is not open?