Can confirm in 26.1 Snapshot 5
Steps to reproduce:
/setworldspawn 0 ~ 0
/gamerule respawn_radius 5000
/kill
You will always respawn at a Z of value -4999.5.
This Z should be in a range of [-5000,5000], it should not always be the same value.
Issue is in PlayerSpawnFinder.java. candidateCount gets limited to 1024, which does not allow it to take advantage of the entire spawn area.
PlayerSpawnFinder.java
candidateCount
1024
Can confirm in 26.1 Snapshot 5
Steps to reproduce:
/setworldspawn 0 ~ 0
/gamerule respawn_radius 5000
/kill
You will always respawn at a Z of value -4999.5.
This Z should be in a range of [-5000,5000], it should not always be the same value.
Issue is in
PlayerSpawnFinder.java.candidateCountgets limited to1024, which does not allow it to take advantage of the entire spawn area.