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

Started by Thermoza on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 year ago
Joined Aug 2020
Points:
655

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 6
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?

Active 3 years ago
Joined Nov 2020
Points:
627

User statistics:

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

Aw man I have the same problem

Active 4 months ago
Joined Apr 2018
Points:
752

User statistics:

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

Hm... I don’t have that problem

Active 7 months ago
Joined Apr 2020
Points:
644

User statistics:

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

bump

Active 2 months ago
Joined Oct 2023
Points:
223

User statistics:

  • Modifications: 2
  • Forum topics: 7
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 23
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