[PR #2231] [MERGED] Play the step sound of the block above the floor for the player #4124

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

📋 Pull Request Information

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

Base: main ← Head: fix/step-sound-above


📝 Commits (4)

  • 6663722 Play the step sound of the block above the floor for the player
  • d4137af Merge origin/main into fix/step-sound-above
  • 831efab Merge origin/main into fix/step-sound-above (picks up main's rabbit-arm fix, #2716)
  • eace14a rustfmt the step-sound match arms

📊 Changes

4 files changed (+59 additions, -20 deletions)

View changed files

📝 crates/horizon-client/examples/probe/scene_motion_probe.rs (+1 -1)
📝 crates/horizon-client/src/game.rs (+2 -4)
📝 crates/horizon-client/src/game/remote.rs (+2 -4)
📝 crates/horizon-client/src/motion.rs (+54 -11)

📄 Description

What and why

Walking on a carpet, a snow layer, powder snow, a lily pad or similar blocks always played the floor block's step. Vanilla looks at the block above the floor: if it is in inside_step_sound_blocks its step plays instead, and if it is in combination_step_sound_blocks its step plays at the normal volume with the floor's step muffled underneath.

walking_step_sound now checks the block above (when not in water) and emits the matching step events. Both the in-frame player and the server-thread client already play these events, so both get the fix. The event field in_water is renamed muffled, since it now also covers the combination case.

Vanilla reference

  • Player.playStepSound (not in water: primary position, then combination or normal step)
  • Entity.getPrimaryStepSoundBlockPos, playCombinationStepSounds, playMuffledStepSound, playStepSound
  • Tags inside_step_sound_blocks and combination_step_sound_blocks

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/2231 **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/step-sound-above` --- ### 📝 Commits (4) - [`6663722`](https://github.com/horizon-rust/horizon/commit/66637220efc12e298a565d7d569c689f8442e1d0) Play the step sound of the block above the floor for the player - [`d4137af`](https://github.com/horizon-rust/horizon/commit/d4137afb8c389993ab60d871f9576cb2a80077ec) Merge origin/main into fix/step-sound-above - [`831efab`](https://github.com/horizon-rust/horizon/commit/831efabfbd49375cd56e5e0f61eaf5d848f902fd) Merge origin/main into fix/step-sound-above (picks up main's rabbit-arm fix, #2716) - [`eace14a`](https://github.com/horizon-rust/horizon/commit/eace14a013c83e9ff1d7f500367f0e49ca95a395) rustfmt the step-sound match arms ### 📊 Changes **4 files changed** (+59 additions, -20 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/examples/probe/scene_motion_probe.rs` (+1 -1) 📝 `crates/horizon-client/src/game.rs` (+2 -4) 📝 `crates/horizon-client/src/game/remote.rs` (+2 -4) 📝 `crates/horizon-client/src/motion.rs` (+54 -11) </details> ### 📄 Description ## What and why Walking on a carpet, a snow layer, powder snow, a lily pad or similar blocks always played the floor block's step. Vanilla looks at the block above the floor: if it is in `inside_step_sound_blocks` its step plays instead, and if it is in `combination_step_sound_blocks` its step plays at the normal volume with the floor's step muffled underneath. `walking_step_sound` now checks the block above (when not in water) and emits the matching step events. Both the in-frame player and the server-thread client already play these events, so both get the fix. The event field `in_water` is renamed `muffled`, since it now also covers the combination case. ## Vanilla reference - `Player.playStepSound` (not in water: primary position, then combination or normal step) - `Entity.getPrimaryStepSoundBlockPos`, `playCombinationStepSounds`, `playMuffledStepSound`, `playStepSound` - Tags `inside_step_sound_blocks` and `combination_step_sound_blocks` ## 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:14:51 +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#4124
No description provided.