Make a spreading block with a limiter

Started by ArmadilloMike on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make a spreading block with a limiter

I want to make a spreading block the spreads from a certain block and if it is a certain amount away from it stops spreading. How would I do that?

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I am not sure but ig this…
Sun, 02/08/2026 - 06:57

I am not sure but ig this could work:
Give your spreading block a procedure in which it can spread (I will not elaborate on this further) and add a int blockstate/nbt tag which is the amount of spread left.
For every block that spreads: Place the block, reduce its blockstate/nbt tag by 1 and only let it spread if the counter is < 0.

The rest to do would be developing a good looking spread mechanism and implementing a type of counter.