Started by
leyxcx
on
Topic category: Help with Minecraft modding (Java Edition)
I've managed to get the player to spawn in the Nether as soon as they enter a world but they always end up inside blocks, is there a way to make the game search for a safe area to spawn them in?
Using get ground height would help. When you run your teleport procedure, you can add a for each block in whatever radius check if the ground height is within a certain area wherever you want, and if there are 2 air blocks above the block at ground height that is a solid block, spawn the player.