The bug
When the gamerule spawnRadius is set to 30000000 and the world spawn is set to 0,0,0, the player will respawn at the -z world border. Repro rate: 5/5.
How to reproduce
Create a new world with cheats enabled
Set the
gamerulespawnRadiusto30000000using the command/gamerule spawnRadius 30000000Set the world spawnpoint to
0,0,0using the command/setworldspawn 0 0 0Kill the player with the command
/kill @s
→ ❌ Observe that the player respawns at the -z world border
Linked issues
Attachments
Comments 7
Im not sure how to update this, but I tested it in 1.17 and it seems as though its not fixed; though it does spawn you further from the -z boarder. instead, it now spawns you about +/-16 blocks from -29999570 on the z axis
I noticed this happening too. I can add that it happens when you set the radius to other numbers as well. For example, if I set it to 100,000, I spawned at a range between Z: -90,000 and -99,999. When setting it to 500,000, I spawned at -499,000 or higher. It appears that the higher the spawn radius, the closer you are to the edge of the radius. At 30 million, I mostly spawn around -29,999,900, within 100 blocks of the border.
I encountered this issue myself now while testing MC-190413, and can confirm this affects 1.21.
If the original owner does not intend on updating this report (considering their last update was 1.17, back in 2019) I would like to request ownership. Otherwise, adding the affect version would suffice fine.
Thank you for your report!
We're resolving and linking this ticket forward as a duplicate of MC-302446, as that ticket contains more detailed information and/or has already been triaged by Mojang.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
after some experimentation, it seems that with any size spawn radius, it will almost always spawn the player about 16 blocks from the -z; appearing to be an issue where the values for how far away to spawn the player are a fixed value instead of the value of the gamerule itself for the z axis.