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

Started by leyxcx on

Topic category: Help with modding (Java Edition)

Last seen on 09:50, 11. Nov 2022
Joined Sep 2022
Points:

User statistics:

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

Last seen on 06:22, 13. Mar 2023
Joined Feb 2022
Points:

User statistics:

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