How to generate plants on a cave ceiling?

Started by Gabriele007 on

Topic category: Help with modding (Java Edition)

Last seen on 09:00, 3. Aug 2023
Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to generate plants on a cave ceiling?

How can i set a plant to generate on caves ceilings like glow berries in 1.17?

Last seen on 20:36, 19. Sep 2022
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The only thing I can think…
Sun, 12/05/2021 - 00:19

The only thing I can think of is if you set it to only generate replacing cave air, and set the generation height at the level of caves. It would generate on cave floors, and I think cave ceilings too.

Last seen on 20:53, 18. Mar 2024
Joined Feb 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can use conditions for…
Sun, 12/26/2021 - 19:45

You can use conditions for that i think. Like "Spawn the plant if (get block at x (y + 1) z) is a solid block). And you should also check if the current position where the plant is going to generate (get block at x y z = cave air). If you do this i think the plant shouldn't be able to generate anywhere except in caves, and because of the "y+1 is a solid block", that means that it can only generate in the bottom of a block, this usually is the ceiling of the cave, but it can generate in anywhere even with 1 air space. Also i don't think you should use the plant block element, if you do then when the plant spawns, it will be broken cause it doesn't have a solid block to stand on. Create a normal block using the Cross model and that will be fixed. Hope it helped