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
gamerule
spawnRadius
to30000000
using the command/gamerule spawnRadius 30000000
Set the world spawnpoint to
0,0,0
using the command/setworldspawn 0 0 0
Kill the player with the command
/kill @s
→ ❌ Observe that the player respawns at the -z world border
Linked issues
is duplicated by 1
Attachments
Comments 5
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.
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.