How can I prevent the plant from being placed on top of itself?

Started by zGioele10_ on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can I prevent the plant from being placed on top of itself?

Hi everyone. I'm basically new to modding and here it goes my very first issue. 
I'm creating a custom plant, and my goal is to make impossible for the player to place the same plant at y + 1. 
I've spent a lot of time thinking unsuccessfully about it, may I get some advices, please?