[PR #3054] [MERGED] Play the elytra's flying sound while gliding #4770

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3054
Author: @kacpherek
Created: 10/28/2026
Status: ✅ Merged
Merged: 10/29/2026
Merged by: @ludovic111

Base: main ← Head: fix/elytra-flying-sound


📝 Commits (3)

  • 8f84c2c Play the elytra's flying sound while gliding
  • 345f64e Import the Sounds trait for the elytra sound
  • d7662a9 Merge main into this branch

📊 Changes

3 files changed (+80 additions, -1 deletions)

View changed files

📝 crates/horizon-client-render/src/sound_engine.rs (+57 -0)
📝 crates/horizon-client/src/game.rs (+3 -0)
📝 crates/horizon-client/src/game/music.rs (+20 -1)

📄 Description

What and why

  • Reported on Discord: gliding with an elytra makes no sound, and neither does diving straight down.
  • Horizon had no ElytraOnPlayerSoundInstance. It now plays item.elytra.flying (the game's own sound) as vanilla does:
    • it starts when the player starts gliding (LocalPlayer.onSyncedDataUpdated), looping, in the Players category;
    • silent for the first 20 ticks, then fading in over the next 20;
    • volume clamp(speed² / 4, 0, 1) from the whole movement, vertical included, so a straight dive is the loudest; pitch rises above volume 0.8;
    • it follows the player and stops once the player stops gliding (after its first 20 ticks) or is removed.

Vanilla reference

ElytraOnPlayerSoundInstance.java (tick), LocalPlayer.java:620-622 (start), SoundEvents.ELYTRA_FLYING.

Self-check

fmt passes. Built and tested by this pull request's checks. Not run in game.


🔄 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/3054 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/28/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/elytra-flying-sound` --- ### 📝 Commits (3) - [`8f84c2c`](https://github.com/horizon-rust/horizon/commit/8f84c2cd4819c5efa299d4c5776eced7f7861cba) Play the elytra's flying sound while gliding - [`345f64e`](https://github.com/horizon-rust/horizon/commit/345f64e47cf480dedae581d190b8721907df4a14) Import the Sounds trait for the elytra sound - [`d7662a9`](https://github.com/horizon-rust/horizon/commit/d7662a97da9c4112a6fb449ab4fd18d7f01255a0) Merge main into this branch ### 📊 Changes **3 files changed** (+80 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/sound_engine.rs` (+57 -0) 📝 `crates/horizon-client/src/game.rs` (+3 -0) 📝 `crates/horizon-client/src/game/music.rs` (+20 -1) </details> ### 📄 Description ## What and why - Reported on Discord: gliding with an elytra makes no sound, and neither does diving straight down. - Horizon had no `ElytraOnPlayerSoundInstance`. It now plays `item.elytra.flying` (the game's own sound) as vanilla does: - it starts when the player starts gliding (`LocalPlayer.onSyncedDataUpdated`), looping, in the Players category; - silent for the first 20 ticks, then fading in over the next 20; - volume `clamp(speed² / 4, 0, 1)` from the whole movement, vertical included, so a straight dive is the loudest; pitch rises above volume 0.8; - it follows the player and stops once the player stops gliding (after its first 20 ticks) or is removed. ## Vanilla reference `ElytraOnPlayerSoundInstance.java` (tick), `LocalPlayer.java:620-622` (start), `SoundEvents.ELYTRA_FLYING`. ## Self-check fmt passes. Built and tested by this pull request's checks. Not run in game. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:07:49 +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#4770
No description provided.