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

Started by Tiukk on

Topic category: Help with Minecraft modding (Java Edition)

Active 4 months ago
Joined Dec 2024
Points:
23

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 0
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