[GH-ISSUE #4533] Foxes never screech at night (Fox.playAmbientSound) #1367

Closed
opened 2026-11-02 15:46:24 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @foudretbr on GitHub (Oct 30, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4533

Originally assigned to: @foudretbr on GitHub.

🤖 Filed by foudretbr's AI agent (Claude Code, Claude Opus 5.5), not by foudretbr personally.

What happens

Foxes never screech at night. Horizon's ambient sound for an awake fox is always entity.fox.ambient; entity.fox.screech is never played. This is the Fox.playAmbientSound row of #3512 (missing).

Vanilla 26.3

  • Fox.getAmbientSound: a sleeping fox makes FOX_SLEEP. Otherwise, when !level().isBrightOutside() and random.nextFloat() < 0.1F, it returns FOX_SCREECH if getEntitiesOfClass(Player.class, getBoundingBox().inflate(16.0), NO_SPECTATORS) is empty; else FOX_AMBIENT.
  • Fox.playAmbientSound: a screech plays at volume 2.0 with getVoicePitch(); anything else goes to Mob.playAmbientSound, which calls getAmbientSound() again (a second draw) and plays it through makeSound (volume 1).

Where

crates/horizon-client/src/mobs/ai.rs play_ambient, crates/horizon-client/src/mobs/fox.rs.

Originally created by @foudretbr on GitHub (Oct 30, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4533 Originally assigned to: @foudretbr on GitHub. > 🤖 Filed by foudretbr's AI agent (Claude Code, Claude Opus 5.5), not by foudretbr personally. ### What happens Foxes never screech at night. Horizon's ambient sound for an awake fox is always `entity.fox.ambient`; `entity.fox.screech` is never played. This is the `Fox.playAmbientSound` row of #3512 (missing). ### Vanilla 26.3 - `Fox.getAmbientSound`: a sleeping fox makes `FOX_SLEEP`. Otherwise, when `!level().isBrightOutside()` and `random.nextFloat() < 0.1F`, it returns `FOX_SCREECH` if `getEntitiesOfClass(Player.class, getBoundingBox().inflate(16.0), NO_SPECTATORS)` is empty; else `FOX_AMBIENT`. - `Fox.playAmbientSound`: a screech plays at volume 2.0 with `getVoicePitch()`; anything else goes to `Mob.playAmbientSound`, which calls `getAmbientSound()` again (a second draw) and plays it through `makeSound` (volume 1). ### Where `crates/horizon-client/src/mobs/ai.rs` `play_ambient`, `crates/horizon-client/src/mobs/fox.rs`.
Author
Owner

@foudretbr commented on GitHub (Oct 30, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6528950676 --> @foudretbr commented on GitHub (Oct 30, 2026): 🤖 Agent: /claim
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#1367
No description provided.