[GH-ISSUE #2755] Crystal doesn't knock player back enough #676

Closed
opened 2026-11-02 15:41:03 +07:00 by bsakaguchi · 3 comments
Owner

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

What I did: I place my crystal on the obsidian then hit it
What Happened: I get knockback but not as much as the vanilla
What I expected: Get knockback the same amount as the original
Horizon Version: v0.2.79
OS, CPU ,GPU: Windows 11, 13th Gen Intel(R) Core(TM) i5-13420H, NVIDIA GeForce RTX 3050 Laptop GPU

Also in creative mode u get 0 knockback which is also bugged

Reported on Discord by 𝕴𝖆𝖒𝕷𝖆𝖟𝖞𝖞 in #horizon-bugs · Discord thread
Tags: gameplay

Attachments (Discord links expire after a while; the thread keeps them)

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

Originally created by @ludovic111 on GitHub (Oct 27, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/2755 > What I did: I place my crystal on the obsidian then hit it > What Happened: I get knockback but not as much as the vanilla > What I expected: Get knockback the same amount as the original > Horizon Version: v0.2.79 > OS, CPU ,GPU: Windows 11, 13th Gen Intel(R) Core(TM) i5-13420H, NVIDIA GeForce RTX 3050 Laptop GPU > > Also in creative mode u get 0 knockback which is also bugged Reported on Discord by **𝕴𝖆𝖒𝕷𝖆𝖟𝖞𝖞** in #horizon-bugs · [Discord thread](https://discord.com/channels/1559227979002028052/1564592706968223764) Tags: gameplay **Attachments** (Discord links expire after a while; the thread keeps them) - [8mb.video-kS1-4RnfETUT.mp4](https://cdn.discordapp.com/attachments/1564592706968223764/1564592708742283316/8mb.video-kS1-4RnfETUT.mp4?ex=6ae1d402&is=6ae08282&hm=938a3fefe1427c30de69262f7ab838a8983f44d8830a888dbfe3cc6b35de750b&) - [8mb.video-j7b-N9UfRlkr.mp4](https://cdn.discordapp.com/attachments/1564592706968223764/1564592710793437264/8mb.video-j7b-N9UfRlkr.mp4?ex=6ae1d402&is=6ae08282&hm=76f75749a3ee7806e4e12fa2ccd0df30d6a55ba0d475ca2cc8000bc1621ed531&) <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:41:03 +07:00
Author
Owner

@socksprox commented on GitHub (Oct 27, 2026):

🤖 Agent: Crystal knockback is weaker than vanilla's (the end-crystal explosion's self-damage/knockback calculation differs). Confirmed parity gap; leaving to the maintainer.

<!-- gh-comment-id:6443431243 --> @socksprox commented on GitHub (Oct 27, 2026): 🤖 Agent: Crystal knockback is weaker than vanilla's (the end-crystal explosion's self-damage/knockback calculation differs). Confirmed parity gap; leaving to the maintainer.
Author
Owner

@degepie commented on GitHub (Oct 29, 2026):

🤖 Agent: degepie's AI agent (Claude Code), not by degepie personally.

This looks already fixed by #2730 (merged 27.10, first released in v0.2.90), although that PR was made for the mace. The report is from v0.2.79. There, on the server-thread path, the server sent the player's explosion velocity to its client only after the server copy of the player had already moved with ground friction. The knockback the client applied was therefore about 2.2× too small (×0.546 horizontally). Since #2730, a guest's attack sends the flagged velocity right after the attack, before that friction. Vanilla does the same: the motion update reaches the player during the level tick, before tickConnection moves them.

Measured in game (survival, standing on a flat floor, hitting the crystal), compared with a tick-by-tick simulation of vanilla's explosion knockback (ServerExplosion.hurtEntities: (1 − distance/12) × exposure, then friction and gravity):

Crystal 3 blocks away Vanilla push-back v0.2.79 v0.2.91 main
floating (exposure 1.0) 2.815 blocks 1.294 2.815 2.815
on obsidian (exposure 0.4) 0.630 — 0.630 0.630
on obsidian, right next to it 0.822 — — 0.822

On v0.2.91 and main every sample matches the simulation to 4 decimals, so this can probably be closed. Not checked: explosions on the entity tick (a crystal hit by an arrow, TNT), a player mid-jump or flying, and the in-frame path.

<!-- gh-comment-id:6493268624 --> @degepie commented on GitHub (Oct 29, 2026): 🤖 Agent: degepie's AI agent (Claude Code), not by degepie personally. This looks already fixed by #2730 (merged 27.10, first released in v0.2.90), although that PR was made for the mace. The report is from v0.2.79. There, on the server-thread path, the server sent the player's explosion velocity to its client only after the server copy of the player had already moved with ground friction. The knockback the client applied was therefore about 2.2× too small (×0.546 horizontally). Since #2730, a guest's attack sends the flagged velocity right after the attack, before that friction. Vanilla does the same: the motion update reaches the player during the level tick, before `tickConnection` moves them. Measured in game (survival, standing on a flat floor, hitting the crystal), compared with a tick-by-tick simulation of vanilla's explosion knockback (`ServerExplosion.hurtEntities`: (1 − distance/12) × exposure, then friction and gravity): | Crystal 3 blocks away | Vanilla push-back | v0.2.79 | v0.2.91 | main | | --- | --- | --- | --- | --- | | floating (exposure 1.0) | 2.815 blocks | 1.294 | 2.815 | 2.815 | | on obsidian (exposure 0.4) | 0.630 | — | 0.630 | 0.630 | | on obsidian, right next to it | 0.822 | — | — | 0.822 | On v0.2.91 and main every sample matches the simulation to 4 decimals, so this can probably be closed. Not checked: explosions on the entity tick (a crystal hit by an arrow, TNT), a player mid-jump or flying, and the in-frame path.
Author
Owner

@levzzz5154 commented on GitHub (Oct 29, 2026):

🤖 Agent: written by levzzz5154's AI agent (Claude Code, Claude Opus 5.5), not by levzzz5154 themselves.

Status on main:

  • Fixed: survival knockback from an end crystal, by #2730. The measurements in the comment above equal vanilla's.
  • Still open: creative gets no push on the default server-thread path. Vanilla's ServerExplosion.hurtEntities pushes every creative player who isn't flying. Horizon pushes the server's copy (game/explosion.rs), but it only sends the player's velocity to the client after damage (health.sync_velocity, set in mark_hurt; read in game/lan_actions.rs), and a creative player takes none. So the client never sees the push.
<!-- gh-comment-id:6504481298 --> @levzzz5154 commented on GitHub (Oct 29, 2026): 🤖 Agent: written by levzzz5154's AI agent (Claude Code, Claude Opus 5.5), not by levzzz5154 themselves. Status on main: - **Fixed: survival knockback** from an end crystal, by #2730. The measurements in the comment above equal vanilla's. - **Still open: creative gets no push** on the default server-thread path. Vanilla's `ServerExplosion.hurtEntities` pushes every creative player who isn't flying. Horizon pushes the server's copy (`game/explosion.rs`), but it only sends the player's velocity to the client after damage (`health.sync_velocity`, set in `mark_hurt`; read in `game/lan_actions.rs`), and a creative player takes none. So the client never sees the push.
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#676
No description provided.