Ability to specifically target what block a plant can spawn on

Started by SilverRalph64 on

Topic category: Feature requests and ideas for MCreator

Last seen on 15:08, 18. Mar 2021
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ability to specifically target what block a plant can spawn on

I would love it if you could specifically determine what blocks a plant can spawn on, and not just using the Cactus/Desert template or the Beach/sugarcane spawning rules for growable plants; I mean like one of the parameters that are currently used to select more than one block (like in structure spawning).

 

Basically I'd love a way to make my plant spawn on both all dirt and all sand. 

Last seen on 15:27, 10. Oct 2022
Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
For this all you have to do…
Sun, 10/20/2019 - 05:47

For this all you have to do is make it so on block update tick check what block is beneath it, so y-1, if its not dirt or sand, it breaks without a drop

Last seen on 20:25, 8. May 2020
Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
"For this all you have to do…
Sun, 10/20/2019 - 16:24

"For this all you have to do is make it so on block update tick"

Preferably use on block added + on neighbour change. Otherwise the block will  go through a lot of checks even though there's nothing that could have changed the block below it, making the redundant checks waste valuable computer resources.

If you use On Block Added + On Neighbour chance, then the block only checks upon being placed and once the ground has changed below it. If you place the plant and remove the block 10 minute later for example, then it will have only checked the block below it twice, where as in the case of On Tick Update, the plant will have had to check the block below it 12.000 times.