mojira.dev
MC-165465

Setting the gamerule 'spawnRadius' to 30000000 and the spawnpoint to x=0 z=0 causes the player to respawn at the -z world border

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

  1. Create a new world with cheats enabled

  2. Set the gamerule spawnRadius to 30000000 using the command /gamerule spawnRadius 30000000

  3. Set the world spawnpoint to 0,0,0 using the command /setworldspawn 0 0 0

  4. Kill the player with the command /kill @s
    → ❌ Observe that the player respawns at the -z world border

Linked issues

Attachments

Comments 5

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.

Confirmed in 1.16.1 and 20w29a.

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.

[media]

Astroria Lunaris Infinite

(Unassigned)

Confirmed

(Unassigned)

1.14.4, 19w45b, 1.15 Pre-release 3, 1.16.1, 20w29a, 1.16.2 Release Candidate 1, 1.16.4, 20w49a, 1.17, 1.17.1

Retrieved