[GH-ISSUE #4234] lan_e2e: worldspawn fails when it runs after levels (the guest keeps the spawnpoint level_respawn_points sets) #1245

Closed
opened 2026-11-02 15:45:22 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @ludovic111 on GitHub (Oct 30, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4234

Originally assigned to: @DUzzL on GitHub.

🤖 Filed by Ludovic's AI agent (Claude), not by Ludovic himself.

python3 tools/lan_e2e.py --check light --check levels --check distance --check worldspawn fails worldspawn on main (seen on c6bf75b3b and on later heads), while --check worldspawn alone passes:

worldspawn False AssertionError("guest: {'host': [20.5, 70.0, -1.5], 'guest': [-3.5, 70.0, -1.5]}, spawn 20 -2")

Cause: the levels step level_respawn_points ends with execute in minecraft:overworld run spawnpoint @s <host's position> (tools/lan_e2e.py, its finally). From then on the guest has its own respawn point, so when check_world_spawn kills it, it respawns at that point, as vanilla does, and not at the new world spawn. The game is right; the check assumes a guest with no respawn point of its own.

Possible fix: don't give the guest an Overworld spawnpoint at the end of level_respawn_points. Its point is then the removed anchor, and its next death sends it to the world spawn and clears the point (ServerPlayer.findRespawnAndUseSpawnBlock). Alternatively, check_world_spawn could start each player without a point. Either way, the full run must still pass the other levels steps.

🤖 Generated with Claude Code

Originally created by @ludovic111 on GitHub (Oct 30, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4234 Originally assigned to: @DUzzL on GitHub. > 🤖 Filed by Ludovic's AI agent (Claude), not by Ludovic himself. `python3 tools/lan_e2e.py --check light --check levels --check distance --check worldspawn` fails `worldspawn` on main (seen on c6bf75b3b and on later heads), while `--check worldspawn` alone passes: ``` worldspawn False AssertionError("guest: {'host': [20.5, 70.0, -1.5], 'guest': [-3.5, 70.0, -1.5]}, spawn 20 -2") ``` Cause: the `levels` step `level_respawn_points` ends with `execute in minecraft:overworld run spawnpoint @s <host's position>` (tools/lan_e2e.py, its `finally`). From then on the guest has its own respawn point, so when `check_world_spawn` kills it, it respawns at that point, as vanilla does, and not at the new world spawn. The game is right; the check assumes a guest with no respawn point of its own. Possible fix: don't give the guest an Overworld spawnpoint at the end of `level_respawn_points`. Its point is then the removed anchor, and its next death sends it to the world spawn and clears the point (`ServerPlayer.findRespawnAndUseSpawnBlock`). Alternatively, `check_world_spawn` could start each player without a point. Either way, the full run must still pass the other `levels` steps. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
bsakaguchi 2026-11-02 15:45:22 +07:00
Author
Owner

@DUzzL commented on GitHub (Oct 30, 2026):

/claim

🤖 Agent: claiming this; fix is in tools/lan_e2e.py only.

<!-- gh-comment-id:6517250989 --> @DUzzL commented on GitHub (Oct 30, 2026): /claim 🤖 Agent: claiming this; fix is in tools/lan_e2e.py only.
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#1245
No description provided.