Make block only sustain Flowers, grass and shrubs. Not sustain seeds like wheat or crops?

Started by Thermoza on

Topic category: Help with modding (Java Edition)

Last seen on 12:25, 17. Nov 2023
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make block only sustain Flowers, grass and shrubs. Not sustain seeds like wheat or crops?

I have noticed when you use the can plants sustain on this block property, it allows for all plants including crops to be able to plant on the block. I am trying to make a custom mycelium block that allows for only plants like mushrooms and grass but not crops to sustain on the top. Is this possible to do?

Last seen on 17:28, 24. Oct 2021
Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Aw man I have the same…
Tue, 02/23/2021 - 13:33

Aw man I have the same problem

Last seen on 23:21, 17. Jun 2022
Joined Apr 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hm... I don’t have that…
Sat, 02/27/2021 - 17:53

Hm... I don’t have that problem

Last seen on 17:04, 25. Apr 2024
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
bump
Fri, 12/29/2023 - 16:17

bump

Last seen on 16:07, 26. Apr 2024
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Figured it out...For your…
Fri, 04/26/2024 - 16:07

Figured it out...

For your block, keep 'can plants sustain on this block' ticked, but you need to add a procedure.

Under 'On block right clicked' use this - 

if - is [ item in main-hand of / Event/target entity ] tagged in item tags as [ "minecraft:seeds" ]

do - replace block at x y z with [ air ] 

That will stop the player placing and seeds on the block, but plants and saplings will still place