[PR #2435] [MERGED] Throw up landing dust where a hard fall lands #4313

Closed
opened 2026-11-03 04:16:16 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2435
Author: @kacpherek
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/27/2026
Merged by: @ludovic111

Base: main ← Head: fix/landing-dust


📝 Commits (1)

  • 96b538d Throw up landing dust where a hard fall lands

📊 Changes

3 files changed (+87 additions, -6 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+7 -0)
📝 crates/horizon-client/src/game/lan_actions.rs (+7 -0)
📝 crates/horizon-client/src/game/lan_particles.rs (+73 -6)

📄 Description

What and why

A fall that hurts should throw up a burst of the landing block's crumbs. Horizon worked the particles out (FallEvent::Particles) but nothing used them: the in-frame player's landing and a server player's landing both dropped the event, so no landing dust was ever drawn.

Now the in-frame landing draws the crumbs and sends them to the LAN guests within 32 blocks. A guest's landing (which includes the window's own player when single player runs on the server thread) is sent to every player within 32 blocks, as ServerLevel.sendParticles does, and the window draws the packet through its existing level particles handler. The client's own prediction of its landing still draws nothing, so there are no doubles.

Vanilla reference

  • LivingEntity.checkFallDamage: on a server level, when landing with fall distance above 0 and power = floor(calculateFallPower) > 0 on a non-air block, sendParticles(BLOCK, state, x, y, z, (int)(150 * min(0.2 + power / 15, 2.5)), 0, 0, 0, 0.15).
  • ServerLevel.sendParticles: sent to each player in the level within 32 blocks of the position.
  • ClientPacketListener.handleParticleEvent: draws the packet's particles.

Self-check

cargo check -p horizon-client passes.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/2435 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/landing-dust` --- ### 📝 Commits (1) - [`96b538d`](https://github.com/horizon-rust/horizon/commit/96b538d48f6e8e9da03faa04a8f9b8c85f1cf281) Throw up landing dust where a hard fall lands ### 📊 Changes **3 files changed** (+87 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+7 -0) 📝 `crates/horizon-client/src/game/lan_actions.rs` (+7 -0) 📝 `crates/horizon-client/src/game/lan_particles.rs` (+73 -6) </details> ### 📄 Description ## What and why A fall that hurts should throw up a burst of the landing block's crumbs. Horizon worked the particles out (`FallEvent::Particles`) but nothing used them: the in-frame player's landing and a server player's landing both dropped the event, so no landing dust was ever drawn. Now the in-frame landing draws the crumbs and sends them to the LAN guests within 32 blocks. A guest's landing (which includes the window's own player when single player runs on the server thread) is sent to every player within 32 blocks, as `ServerLevel.sendParticles` does, and the window draws the packet through its existing level particles handler. The client's own prediction of its landing still draws nothing, so there are no doubles. ## Vanilla reference - `LivingEntity.checkFallDamage`: on a server level, when landing with fall distance above 0 and `power = floor(calculateFallPower) > 0` on a non-air block, `sendParticles(BLOCK, state, x, y, z, (int)(150 * min(0.2 + power / 15, 2.5)), 0, 0, 0, 0.15)`. - `ServerLevel.sendParticles`: sent to each player in the level within 32 blocks of the position. - `ClientPacketListener.handleParticleEvent`: draws the packet's particles. ## Self-check `cargo check -p horizon-client` passes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:16:16 +07:00
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#4313
No description provided.