Problems with trigger "On Plant Added"

Started by Distru121mods on

Topic category: Help with modding (Java Edition)

Last seen on 12:15, 20. Dec 2022
Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Problems with trigger "On Plant Added"

So, I wanted a block from my mod to spawn like a plant (but isn't actually a plant, because of the limitations of the plant mod element in MCreator). So I've tried just spawning some placeholder plants, and then assigning them a procedure on the trigger "On Plant Added" (that executes when the plant is added to the world by the world generator) where it places the block I want, effectively replacing the placeholder plant. But it didn't work. I've tried delaying the spawn of the block on top of the plant, to give more time to the world generator to load the chunks, but still nothing. I've even tried to add it in a spawning condition, but still nothing. It seems like I can't have the "place block" procedure work when the plant is placed in the world by the world generator. I've also tried to make it so that every tick it transforms into that block, and selected the option "ticks naturally", but it just uses random ticks and it's way too slow, and I want the blocks to generate nearly instantaneously on top of the plants. Can somebody help me with this? 

Last seen on 12:15, 20. Dec 2022
Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I would also be fine with…
Thu, 03/24/2022 - 13:20

I would also be fine with using code if necessary to make this work

Last seen on 08:07, 22. Sep 2024
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can but make one test…
Thu, 03/24/2022 - 14:17

You can but make one test first

Set 50 of your blocks  ingame and see if any of them works or not