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

Started by leyxcx on Sat, 09/03/2022 - 13:11

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:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do I start players in the Nether without them suffocating in blocks
Sat, 09/03/2022 - 13:11

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 07:52, 21. Nov 2022
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.