[GH-ISSUE #1310] [singleplayer] /setworldspawn reports success but does not change world spawn #350

Closed
opened 2026-11-02 15:38:25 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @rdbtCVS on GitHub (Oct 22, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1310

Tested commit: 83fa14e51b. Reproduces with both explicit singleplayer mode flags.

  1. Open a disposable world and note level.dat → Data.spawn.pos.
  2. Run setworldspawn 20 100 20 somewhere different from that spawn.
  3. Wait, save and quit; inspect the saved spawn again.

Expected: the saved world spawn becomes [20,100,20].

Actual: both modes announce “Set the world spawn point to 20, 100, 20”, but Data.spawn.pos remains [0,-60,0] in the tested world. A settled save and the final quit save both retain the original point.

Hypothesis: cmd_setworldspawn writes level.spawn (the player's respawn field), while serialization uses level.world_spawn; syncing the player also overwrites level.spawn.

Acceptance: the command updates the actual world spawn and its saved coordinates, which survive reopening, without replacing a player's bed/anchor point.

Evidence: tools/singleplayer_gaps_audit.py --case world-spawn-command; before/after NBT values, feedback, traces and saves in .local/singleplayer-audit/gaps-c/world-spawn-command-*/. Same build with read-only diagnostics. No matching issue found.

Originally created by @rdbtCVS on GitHub (Oct 22, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1310 Tested commit: 83fa14e51b89eab728b8e233e9e5d95296bef93d. Reproduces with both explicit singleplayer mode flags. 1. Open a disposable world and note `level.dat` → `Data.spawn.pos`. 2. Run `setworldspawn 20 100 20` somewhere different from that spawn. 3. Wait, save and quit; inspect the saved spawn again. Expected: the saved world spawn becomes `[20,100,20]`. Actual: both modes announce “Set the world spawn point to 20, 100, 20”, but `Data.spawn.pos` remains `[0,-60,0]` in the tested world. A settled save and the final quit save both retain the original point. Hypothesis: `cmd_setworldspawn` writes `level.spawn` (the player's respawn field), while serialization uses `level.world_spawn`; syncing the player also overwrites `level.spawn`. Acceptance: the command updates the actual world spawn and its saved coordinates, which survive reopening, without replacing a player's bed/anchor point. Evidence: `tools/singleplayer_gaps_audit.py --case world-spawn-command`; before/after NBT values, feedback, traces and saves in `.local/singleplayer-audit/gaps-c/world-spawn-command-*/`. Same build with read-only diagnostics. No matching issue found.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#350
No description provided.