How to make blocks placeable only in farmland

Started by GioMikeRafto on

Topic category: Help with modding (Java Edition)

Last seen on 20:11, 16. Aug 2023
Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make blocks placeable only in farmland

So in both of my mods, my main problem is that seeds are placeable even on top of other seeds. Plants can be grown on stone, on trees and basically everywhere. Is there any way to fix this?

Thanks in advance.

Last seen on 16:22, 13. Aug 2020
Joined Jun 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Add a on tick procedure that…
Sun, 07/14/2019 - 12:37

Add a on tick procedure that if not block at x y-1 z = farmland, than destroy block at x y z with drop. Works 100% of the time.

Last seen on 20:11, 16. Aug 2023
Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can I do so? Can you…
Sun, 07/14/2019 - 22:27

How can I do so? Can you please upload a picture? That would really help

Last seen on 20:11, 16. Aug 2023
Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Figured it out, thanks for…
Thu, 08/05/2021 - 13:11

Figured it out, thanks for the help anyway!