mojira.dev
MC-303391

Respawning doesnt wait for chunks to be loaded when respawn location is in the nether

When the world respawn location is set into the nether using /setworldspawn command upon respawn it will not wait for the chunk to be loaded,
In my tests this lead to dying outside of that chunk causing you to spawn at y=1, where as if you died within the chunk most of the time you would respawn at the correct height, using /forceload to ensure the spawn chunk is loaded removes this problem entirely

Linked issues

Comments 4

Added Context; @OP and I were both tracking this problem:

If the Biome / Level in question does not have Skylight the same problem happens; such as if World Spawn is in the Nether; or the Level is set to not have Skylight access.

A quick fix would be to forceload the spawn chunk (legacy behavior); or Overwrite the World Spawn selector to make it equal to the correct world spawn.

More context, from searching in code i tracked down to PlayerSpawnFinder::findSpawn(ServerLevel, BlockPos)
the very first if condition checks if the biome has skylight, or if the server gamemode is not adventure and if that is true follows through using a method that will issue chunk loading tickets, but the secondary path instantly resolves the spawn location, and the chunks may not be loaded yet allowing this bug to happen

Thank you for your report!
We're tracking this issue in MC-302144, so this ticket is being resolved and linked as a duplicate.

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

BreadLoaf

(Unassigned)

Unconfirmed

(Unassigned)

1.21.10

Retrieved