How do I start players in the Nether without them suffocating in blocks

Started by leyxcx on

Topic category: Help with Minecraft modding (Java Edition)

Active 2 years ago
Joined Sep 2022
Points:
385

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 0
How do I start players in the Nether without them suffocating in blocks

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?

Active 2 years ago
Joined Feb 2022
Points:
633

User statistics:

  • Modifications: 1
  • Forum topics: 13
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 160
Using get ground height…
Sun, 09/04/2022 - 13:52

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.