[GH-ISSUE #1504] [singleplayer] Hardcore death allows another survival life #470

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

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

🤖 Filed by an AI assistant (Codex).

Tested 9dd9a836991e263b51d0cec0f690d40a0b09eecc. Affects server-thread and old singleplayer.

  1. In a hardcore survival world, die (tested with a fatal fall).
  2. Use the death screen's first button.
  3. Quit normally and reopen.

Expected: hardcore permits spectating, not another survival life. Native Minecraft 26.3 changes the dead player to spectator after the client respawn request (playerGameType: 3).

Actual: Horizon labels the button “Respawn” and returns the player to survival, including after restart. The saved world still has hardcore: 1b.

Reproduced with explicit --no-server-thread / --server-thread in equivalent disposable fixtures: the closed baseline's hardcore NBT byte is enabled, then a real pickaxe breaks the platform and the player falls to death. Both modes reach health 0, click the actual death button, and resume survival. An independent lethal-damage pair gives the same result.

Evidence: .local/singleplayer-audit/extensions-hardcore-{a,fall-a}; native extensions-native-hardcore-b starts in survival with hardcore=true, dies, sends a real respawn packet and becomes spectator. Drivers: tools/singleplayer_extensions_audit.py --case hardcore-fall, tools/singleplayer_hardcore_native.py.

Hypothesis: the death/respawn paths do not apply the hardcore spectator transition.

Acceptance: a hardcore death offers spectating, enters spectator after that action, and preserves spectator mode across restart in server-thread.

Originally created by @rdbtCVS on GitHub (Oct 23, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1504 > 🤖 Filed by an AI assistant (Codex). Tested `9dd9a836991e263b51d0cec0f690d40a0b09eecc`. Affects **server-thread and old singleplayer**. 1. In a hardcore survival world, die (tested with a fatal fall). 2. Use the death screen's first button. 3. Quit normally and reopen. Expected: hardcore permits spectating, not another survival life. Native Minecraft 26.3 changes the dead player to spectator after the client respawn request (`playerGameType: 3`). Actual: Horizon labels the button “Respawn” and returns the player to **survival**, including after restart. The saved world still has `hardcore: 1b`. Reproduced with explicit `--no-server-thread` / `--server-thread` in equivalent disposable fixtures: the closed baseline's hardcore NBT byte is enabled, then a real pickaxe breaks the platform and the player falls to death. Both modes reach health 0, click the actual death button, and resume survival. An independent lethal-damage pair gives the same result. Evidence: `.local/singleplayer-audit/extensions-hardcore-{a,fall-a}`; native `extensions-native-hardcore-b` starts in survival with `hardcore=true`, dies, sends a real respawn packet and becomes spectator. Drivers: `tools/singleplayer_extensions_audit.py --case hardcore-fall`, `tools/singleplayer_hardcore_native.py`. Hypothesis: the death/respawn paths do not apply the hardcore spectator transition. Acceptance: a hardcore death offers spectating, enters spectator after that action, and preserves spectator mode across restart in server-thread.
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#470
No description provided.