[GH-ISSUE #1292] [server-thread] Totem of undying does not prevent death #332

Closed
opened 2026-11-02 15:38:16 +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/1292

Tested commit: 83fa14e51b, disposable survival worlds.

  1. Launch with --server-thread.
  2. Hold a totem of undying in the offhand.
  3. Take a lethal fall onto solid ground (tested from Y=140 onto a floor whose top is Y=100).
  4. Repeat from the same save with --no-server-thread.

Expected: the totem is consumed and prevents death, granting its protection effects.

Actual: threaded mode dies with authoritative health 0 and leaves the totem intact. Old mode consumes it and survives with regeneration, absorption and fire resistance. A separate fresh pair using damage @s 100 minecraft:generic shows the same difference, so this is not specific to falling or a transient health display.

Hypothesis: the old tick calls update_totem_ready / apply_totem, while the guest's authoritative damage loop does not integrate those steps.

Acceptance: lethal ordinary damage activates an equipped totem in threaded singleplayer, consumes exactly one and applies the protection effects.

Evidence: tools/singleplayer_code_audit.py --case totem --case totem-fall; full replies/saves in .local/singleplayer-audit/code-audit-{a,b}/. Only read-only diagnostics were added. Issue search found no totem report.

Additional fresh control: holding the totem in the main hand and taking lethal generic damage also fails in threaded mode and succeeds in old mode (code-audit-b/totem-main).

Originally created by @rdbtCVS on GitHub (Oct 22, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1292 Tested commit: 83fa14e51b89eab728b8e233e9e5d95296bef93d, disposable survival worlds. 1. Launch with `--server-thread`. 2. Hold a totem of undying in the offhand. 3. Take a lethal fall onto solid ground (tested from Y=140 onto a floor whose top is Y=100). 4. Repeat from the same save with `--no-server-thread`. Expected: the totem is consumed and prevents death, granting its protection effects. Actual: threaded mode dies with authoritative health 0 and leaves the totem intact. Old mode consumes it and survives with regeneration, absorption and fire resistance. A separate fresh pair using `damage @s 100 minecraft:generic` shows the same difference, so this is not specific to falling or a transient health display. Hypothesis: the old tick calls `update_totem_ready` / `apply_totem`, while the guest's authoritative damage loop does not integrate those steps. Acceptance: lethal ordinary damage activates an equipped totem in threaded singleplayer, consumes exactly one and applies the protection effects. Evidence: `tools/singleplayer_code_audit.py --case totem --case totem-fall`; full replies/saves in `.local/singleplayer-audit/code-audit-{a,b}/`. Only read-only diagnostics were added. Issue search found no totem report. Additional fresh control: holding the totem in the main hand and taking lethal generic damage also fails in threaded mode and succeeds in old mode (`code-audit-b/totem-main`).
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#332
No description provided.