How to make a custom entity spawn to spawn in the surface

Started by Tiukk on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a custom entity spawn to spawn in the surface

Basically, i made a procedure that spawns a custom entity near the player in a random coordinate, the problem is that the Y coordinate of the entity continue the same as the player, which made the entity spawn inside a mountain for example, can someone help me with that?

https://imgur.com/a/3SIe8N2