[PR #2247] [MERGED] Use vanilla ambient sound intervals for guardians, hoglins, shulkers and allays #4142

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

📋 Pull Request Information

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

Base: main ← Head: fix/ambient-intervals


📝 Commits (1)

  • 728bf14 Use vanilla ambient sound intervals for guardians, hoglins, shulkers and allays

📊 Changes

3 files changed (+18 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/mobs.rs (+11 -1)
📝 crates/horizon-client/src/mobs/ai.rs (+1 -1)
📝 crates/horizon-client/src/mobs/species.rs (+6 -0)

📄 Description

What and why

Some mobs made their ambient sound at the wrong rate: guardians, hoglins and shulkers were at 80 ticks and allays at 120. Vanilla uses 160 for guardians and elder guardians, 120 for hoglins (they are animals) and shulkers (they are golems), and 80 for allays. A happy ghast that carries a passenger waits six times as long between sounds, and now does too.

Vanilla reference

  • Guardian.getAmbientSoundInterval (160)
  • Animal.getAmbientSoundInterval (120, Hoglin), AbstractGolem.getAmbientSoundInterval (120, Shulker)
  • Mob.getAmbientSoundInterval (80, Allay)
  • HappyGhast.getAmbientSoundInterval (times 6 while isVehicle)

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/2247 **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/ambient-intervals` --- ### 📝 Commits (1) - [`728bf14`](https://github.com/horizon-rust/horizon/commit/728bf14aa7db38211cd50d751f38486194d28de3) Use vanilla ambient sound intervals for guardians, hoglins, shulkers and allays ### 📊 Changes **3 files changed** (+18 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/mobs.rs` (+11 -1) 📝 `crates/horizon-client/src/mobs/ai.rs` (+1 -1) 📝 `crates/horizon-client/src/mobs/species.rs` (+6 -0) </details> ### 📄 Description ## What and why Some mobs made their ambient sound at the wrong rate: guardians, hoglins and shulkers were at 80 ticks and allays at 120. Vanilla uses 160 for guardians and elder guardians, 120 for hoglins (they are animals) and shulkers (they are golems), and 80 for allays. A happy ghast that carries a passenger waits six times as long between sounds, and now does too. ## Vanilla reference - `Guardian.getAmbientSoundInterval` (160) - `Animal.getAmbientSoundInterval` (120, Hoglin), `AbstractGolem.getAmbientSoundInterval` (120, Shulker) - `Mob.getAmbientSoundInterval` (80, Allay) - `HappyGhast.getAmbientSoundInterval` (times 6 while `isVehicle`) ## 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:59 +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#4142
No description provided.