How to make a plant only spawn on ONE specific block

Started by Jacob Taylor on

Topic category: Help with modding (Java Edition)

Last seen on 12:05, 5. Oct 2024
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.

Last seen on 12:05, 5. Oct 2024
Joined Sep 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Please :pray:
Sun, 09/29/2024 - 21:50

Please :pray:

Last seen on 20:56, 8. Oct 2024
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).

Last seen on 12:05, 5. Oct 2024
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.

Last seen on 12:05, 5. Oct 2024
Joined Sep 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(No subject)
Mon, 09/30/2024 - 05:47

Last seen on 12:05, 5. Oct 2024
Joined Sep 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
bump
Tue, 10/01/2024 - 04:48

bump

Last seen on 18:35, 12. Oct 2024
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.