How to make a plant only spawn on ONE specific block

Started by Jacob Taylor on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a plant only spawn on ONE specific block

Hello, I have recently created a block similar to crimson nylium, and a plant similar to crimson roots, however in an end theme.
I want to make it so, just like crimson roots, the end root can ONLY spawn on Endcylium. I have managed to get it naturally spawning on Endcylium and End Stone, however the block can still be picked up and placed on normal stone/nettherack.
How do I make it so end root can ONLY be placed on encylium?
Thanks for the help.

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make a procedure that breaks…
Sun, 09/29/2024 - 22:48

Make a procedure that breaks it when it is placed on anything other than those blocks. Then instead of breaking the block, just remove it and give the player one back with commands (to stop the items from dropping and to minimize break particles).

Joined Sep 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks for your reply.I have…
Mon, 09/30/2024 - 05:44

Thanks for your reply.
I have tried this, however I dont really understand the block code as I am pretty new, so I'm sorry if the following code is bad.
I have used this, bound it to the end root plant, however nothing at all happens. I can still place the root on all stone types.
Thanks in advance for any help.

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Theres a placement condition…
Tue, 10/01/2024 - 11:17

Theres a placement condition trigger in the blocks properties. Make a procedure and return logic if block at x y-1 z = custom block.