[PR #2432] [MERGED] Raise sprint dust under running players #4310

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/2432
Author: @kacpherek
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/27/2026
Merged by: @ludovic111

Base: main ← Head: fix/sprint-dust


📝 Commits (1)

  • 4efa49a Raise sprint dust under running players

📊 Changes

4 files changed (+98 additions, -3 deletions)

View changed files

📝 crates/horizon-client/src/game/client_ambient.rs (+91 -0)
📝 crates/horizon-client/src/game/lan.rs (+1 -0)
📝 crates/horizon-client/src/game/remote.rs (+4 -3)
📝 crates/horizon-client/src/mobs.rs (+2 -0)

📄 Description

What and why

While sprinting on the ground, the player kicked up no dust at all. Vanilla spawns a block particle of the block under the feet every tick, for the player and for every other player the client sees. In single player (the server thread) and on a server, the client has to make these itself: the server never sends them.

This adds the dust to the client's ambient effects tick, so it runs in-frame, on the server thread, on a server and for the guests of a LAN host. Other players' sprint state comes from the synced shared flags (bit 3) and, for LAN guests, from their own state. Dust follows vanilla's rules: it stops in water or lava, while crouching, as a spectator and when dead, and is skipped over invisible blocks.

Vanilla reference

  • Entity.baseTick calls canSpawnSprintParticle and spawnSprintParticle.
  • Entity.canSpawnSprintParticle: sprinting, not in water, not a spectator, not crouching, not in lava, alive, not in any fluid.
  • Entity.spawnSprintParticle: the block at getOnPosLegacy() (getOnPos(0.2)), skipped for an invisible render shape; x and z spread by half the width and clamped into that block's column, y + 0.1, velocity (-4 * dx, 1.5, -4 * dz).

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/2432 **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/sprint-dust` --- ### 📝 Commits (1) - [`4efa49a`](https://github.com/horizon-rust/horizon/commit/4efa49ae820f957164aa5ad05eaaab18e8403f91) Raise sprint dust under running players ### 📊 Changes **4 files changed** (+98 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/client_ambient.rs` (+91 -0) 📝 `crates/horizon-client/src/game/lan.rs` (+1 -0) 📝 `crates/horizon-client/src/game/remote.rs` (+4 -3) 📝 `crates/horizon-client/src/mobs.rs` (+2 -0) </details> ### 📄 Description ## What and why While sprinting on the ground, the player kicked up no dust at all. Vanilla spawns a block particle of the block under the feet every tick, for the player and for every other player the client sees. In single player (the server thread) and on a server, the client has to make these itself: the server never sends them. This adds the dust to the client's ambient effects tick, so it runs in-frame, on the server thread, on a server and for the guests of a LAN host. Other players' sprint state comes from the synced shared flags (bit 3) and, for LAN guests, from their own state. Dust follows vanilla's rules: it stops in water or lava, while crouching, as a spectator and when dead, and is skipped over invisible blocks. ## Vanilla reference - `Entity.baseTick` calls `canSpawnSprintParticle` and `spawnSprintParticle`. - `Entity.canSpawnSprintParticle`: sprinting, not in water, not a spectator, not crouching, not in lava, alive, not in any fluid. - `Entity.spawnSprintParticle`: the block at `getOnPosLegacy()` (`getOnPos(0.2)`), skipped for an invisible render shape; x and z spread by half the width and clamped into that block's column, y + 0.1, velocity `(-4 * dx, 1.5, -4 * dz)`. ## 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#4310
No description provided.