[GH-ISSUE #4301] Void damage is incorrectly applied on respawn #1268

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

Originally created by @kira-horizon[bot] on GitHub (Oct 30, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4301

Version: 0.2.97 · OS: WIN11, R5 5600, RX580 (copied from the report)

What I did:
Die to the void.
What happened, and what I expected:
After you die to the void and respawn, you incorrectly take a tick of void damage upon respawning.
Horizon version: 0.2.97
OS, CPU, GPU: WIN11, R5 5600, RX580

Reported on Discord by pyoid in #horizon-bugs · Discord thread
Tags: via /report

Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.

Originally created by @kira-horizon[bot] on GitHub (Oct 30, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4301 **Version:** 0.2.97 · **OS:** WIN11, R5 5600, RX580 <sub>(copied from the report)</sub> > **What I did:** > Die to the void. > **What happened, and what I expected:** > After you die to the void and respawn, you incorrectly take a tick of void damage upon respawning. > **Horizon version:** 0.2.97 > **OS, CPU, GPU:** WIN11, R5 5600, RX580 Reported on Discord by **pyoid** in #horizon-bugs · [Discord thread](https://discord.com/channels/1559227979002028052/1565652106218700850) Tags: via /report <sub>Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.</sub><!-- kira -->
bsakaguchi 2026-11-02 15:45:34 +07:00
Author
Owner

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

🤖 Agent: comment by DenisHumen's AI agent (Claude Code, Opus 5.5), not by DenisHumen personally.

Update: this doesn't reproduce on current main (e84a47c06), so I'm not opening a PR and am releasing the issue.

What I checked with horizon-ctl (fast build of main, scratch homes). I read Health, hurt_time and Y every 1–3 ticks before, through and after each respawn:

  • Single player (integrated server), Overworld void: /tp and horizon-ctl tp below Y -128, with immediate_respawn true and false (Respawn button). Two deaths in a row in the same session.
  • Single player, End void (execute in minecraft:the_end run tp @s 100 -70 100), respawning in the Overworld, with both respawn modes.
  • Dedicated server (--dedicated) with a client joined over TCP, Overworld void, with both respawn modes.

Every case: falling through the void takes 4 damage per hit (once the 10-tick invulnerability window ends), as vanilla's Entity.checkBelowWorld → onBelowWorld → hurt(out_of_world, 4) does. After respawning, the first sample (2–7 ticks later) and everything after it reads Health 20.0 with hurt_time 0. Any hit after the respawn would leave hurt_time above 0 for 10 ticks, so the samples would have caught one. If the reporter can still see it on a current build, the exact setup would help: single player, LAN or a server, which dimension, and whether immediate respawn is on.

Side finding, not this issue: vanilla's Entity.checkBelowWorld compares Y with level().getMinY() - 64 (javap 26.3). That's -64 in the End and the Nether. Horizon always uses the Overworld's MIN_Y - 64 = -128 (motion/environment.rs server_hazards_tick, game.rs, mobs/ai.rs). So in the End, damage starts about 64 blocks lower than vanilla. That's worth its own issue.

<!-- gh-comment-id:6520189184 --> @DenisHumen commented on GitHub (Oct 30, 2026): 🤖 Agent: comment by DenisHumen's AI agent (Claude Code, Opus 5.5), not by DenisHumen personally. **Update: this doesn't reproduce on current main (`e84a47c06`), so I'm not opening a PR and am releasing the issue.** What I checked with `horizon-ctl` (fast build of main, scratch homes). I read Health, `hurt_time` and Y every 1–3 ticks before, through and after each respawn: - Single player (integrated server), Overworld void: `/tp` and `horizon-ctl tp` below Y -128, with `immediate_respawn` true and false (Respawn button). Two deaths in a row in the same session. - Single player, End void (`execute in minecraft:the_end run tp @s 100 -70 100`), respawning in the Overworld, with both respawn modes. - Dedicated server (`--dedicated`) with a client joined over TCP, Overworld void, with both respawn modes. Every case: falling through the void takes 4 damage per hit (once the 10-tick invulnerability window ends), as vanilla's `Entity.checkBelowWorld` → `onBelowWorld` → `hurt(out_of_world, 4)` does. After respawning, the first sample (2–7 ticks later) and everything after it reads Health 20.0 with `hurt_time` 0. Any hit after the respawn would leave `hurt_time` above 0 for 10 ticks, so the samples would have caught one. If the reporter can still see it on a current build, the exact setup would help: single player, LAN or a server, which dimension, and whether immediate respawn is on. Side finding, not this issue: vanilla's `Entity.checkBelowWorld` compares Y with `level().getMinY() - 64` (javap 26.3). That's -64 in the End and the Nether. Horizon always uses the Overworld's `MIN_Y - 64` = -128 (`motion/environment.rs` `server_hazards_tick`, `game.rs`, `mobs/ai.rs`). So in the End, damage starts about 64 blocks lower than vanilla. That's worth its own issue.
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#1268
No description provided.