Having Plant Spawn on Custom Sand

Started by CreeperMinion on Wed, 10/14/2020 - 03:40

Topic category: Help with modding (Java Edition)

Last seen on 20:30, 24. Oct 2020
Joined Jul 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Having Plant Spawn on Custom Sand
Wed, 10/14/2020 - 03:40

So essentially I'm working on a mod that has a desert dimension where all the sand is a custom "scorched sand" block and I want special cactus plants to spawn naturally on the sand but I don't want the sand to sustain life because I don't want you to be able to plant things like flowers on the sand. Any suggestions?

 

Cheers

Last seen on 08:33, 23. Nov 2020
Joined Dec 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You can set your plant to…
Wed, 10/14/2020 - 04:41

You can set your plant to the Cave spawn setting (so it can grow on any block), set it to only grow in your biome ( so it only grows in your biome)  <-- :D …  then on the plants Update Tick, have the procedure check for your sand block at Y minus 1 (Y - 1)  and any of the plants that are not in your biome and are not on your sand block, will pop and only your plant on your sand block will stay spawned in the world.

Last seen on 20:30, 24. Oct 2020
Joined Jul 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Okay thanks, it works except…
Thu, 10/15/2020 - 03:33

Okay thanks, it works except for when it spawns in for some reason the plants that have already been placed underground are not activating the tick procedure and stays placed on the stone.