[PR #7735] Use screaming goat ambient, hurt and death voices #7794

Open
opened 2026-11-03 07:24:14 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7735
Author: @TheMrZZ
Created: 11/2/2026
Status: 🔄 Open

Base: main ← Head: fix/h070-screaming-goat-voices


📝 Commits (1)

  • 6d8fae1 Use screaming goat voice events from the saved flag

📊 Changes

5 files changed (+299 additions, -4 deletions)

View changed files

📝 crates/horizon-client/src/mobs/ai.rs (+7 -0)
➕ mods/horizon/src/test/java/dev/horizonlab/parity/GoatVoiceTranscript.java (+71 -0)
📝 mods/horizon/src/test/java/dev/horizonlab/parity/VanillaProtocolClient.java (+16 -4)
📝 tools/port_map/game-012.tsv (+3 -0)
➕ tools/test_goat_voices_parity.py (+202 -0)

📄 Description

🤖 Opened by TheMrZZ's AI agent (Codex, gpt-6.1-sol), not by TheMrZZ personally.

What and why

Screaming goats currently emit regular goat ambient, hurt and death events even when IsScreamingGoat is saved correctly. Select all three screaming event names from that flag. Fixes #7675.

Add a dedicated-server packet regression against Java 26.3 with adult/baby normal and screaming goats, plus silent adult controls. It confirms all 18 NBT flags, captures 2400 ambient ticks, and waits 21 actual ticks between hurt and fatal damage. The same fixture gives 28/34 on old source, 34/34 with this fix; both fresh Java references pass 34/34. The six old failures are precisely the screaming adult/baby voices. Category, volume and age pitch ranges are checked; random event counts and exact pitches are not comparison targets.

Silent ambient suppression is a separate known gap: those two diagnostics are recorded but excluded from the gate. Silent hurt/death controls remain gated. Spawn finalization and other goat behavior are outside this change.

Kind

  • parity: Horizon now does what vanilla 26.3 does
  • bug: a crash or a breakage
  • perf: faster, or less memory
  • feature: something new for players (listed under New in the release notes)
  • extra: Horizon-only, off by default
  • tooling: tools, CI, tests, harnesses
  • docs

Vanilla reference

Java 26.3 Goat.getAmbientSound, Goat.getHurtSound, and Goat.getDeathSound branch on isScreamingGoat and select entity.goat.screaming.{ambient,hurt,death}. Inspected the pinned official bytecode. The three port-map rows point to mobs/ai.rs::voice_sounds.

Regression: python3 tools/test_goat_voices_parity.py (real dedicated servers and a vanilla-codec protocol client; no renderer). Fixture source hashes are unchanged between old/fixed runs. Scoped normalized Java names, category, volume and age pitch classes agree across runs.

Other projects' code

None.

Self-check

pr_ready (tools/pr_ready.py --quick on local validation, against origin/main at 7cc36d34c, 33 min 16 s)

Check Result
Scope ✅ 5 files, +299 −4
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 614 passed (2 min 25 s)
rustfmt ✅ (30 s)
clippy ✅ (4 min 59 s)
tests: horizon-client-lib ✅ 1463 passed (25 min 18 s)
doc tests ✅ 0 passed (4 s)
content root tests ➖ content root untouched
mod API up to date ➖ native hooks untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ not run (--quick): CI's parity job picks the affected harnesses
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

Also passed the focused old/fixed runtime above, port-map validation, and the ledger comparison. The full affected parity suite was not run locally (--quick); the focused runtime was run separately.

🤖 Generated with Codex


🔄 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/7735 **Author:** [@TheMrZZ](https://github.com/TheMrZZ) **Created:** 11/2/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/h070-screaming-goat-voices` --- ### 📝 Commits (1) - [`6d8fae1`](https://github.com/horizon-rust/horizon/commit/6d8fae1d7132f8aa8fc8f4c79368ba622ea62b54) Use screaming goat voice events from the saved flag ### 📊 Changes **5 files changed** (+299 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/mobs/ai.rs` (+7 -0) ➕ `mods/horizon/src/test/java/dev/horizonlab/parity/GoatVoiceTranscript.java` (+71 -0) 📝 `mods/horizon/src/test/java/dev/horizonlab/parity/VanillaProtocolClient.java` (+16 -4) 📝 `tools/port_map/game-012.tsv` (+3 -0) ➕ `tools/test_goat_voices_parity.py` (+202 -0) </details> ### 📄 Description > 🤖 Opened by TheMrZZ's AI agent (Codex, gpt-6.1-sol), not by TheMrZZ personally. ## What and why Screaming goats currently emit regular goat ambient, hurt and death events even when `IsScreamingGoat` is saved correctly. Select all three screaming event names from that flag. Fixes #7675. Add a dedicated-server packet regression against Java 26.3 with adult/baby normal and screaming goats, plus silent adult controls. It confirms all 18 NBT flags, captures 2400 ambient ticks, and waits 21 actual ticks between hurt and fatal damage. The same fixture gives **28/34 on old source, 34/34 with this fix**; both fresh Java references pass 34/34. The six old failures are precisely the screaming adult/baby voices. Category, volume and age pitch ranges are checked; random event counts and exact pitches are not comparison targets. Silent ambient suppression is a separate known gap: those two diagnostics are recorded but excluded from the gate. Silent hurt/death controls remain gated. Spawn finalization and other goat behavior are outside this change. ## Kind - [x] parity: Horizon now does what vanilla 26.3 does - [ ] bug: a crash or a breakage - [ ] perf: faster, or less memory - [ ] feature: something new for players (listed under New in the release notes) - [ ] extra: Horizon-only, off by default - [ ] tooling: tools, CI, tests, harnesses - [ ] docs ## Vanilla reference Java 26.3 `Goat.getAmbientSound`, `Goat.getHurtSound`, and `Goat.getDeathSound` branch on `isScreamingGoat` and select `entity.goat.screaming.{ambient,hurt,death}`. Inspected the pinned official bytecode. The three port-map rows point to `mobs/ai.rs::voice_sounds`. Regression: `python3 tools/test_goat_voices_parity.py` (real dedicated servers and a vanilla-codec protocol client; no renderer). Fixture source hashes are unchanged between old/fixed runs. Scoped normalized Java names, category, volume and age pitch classes agree across runs. ## Other projects' code None. ## Self-check **pr_ready** (`tools/pr_ready.py --quick` on local validation, against origin/main at 7cc36d34c, 33 min 16 s) | Check | Result | | --- | --- | | Scope | ✅ 5 files, +299 −4 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 614 passed (2 min 25 s) | | rustfmt | ✅ (30 s) | | clippy | ✅ (4 min 59 s) | | tests: horizon-client-lib | ✅ 1463 passed (25 min 18 s) | | doc tests | ✅ 0 passed (4 s) | | content root tests | ➖ content root untouched | | mod API up to date | ➖ native hooks untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ not run (--quick): CI's parity job picks the affected harnesses | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | Also passed the focused old/fixed runtime above, port-map validation, and the ledger comparison. The full affected parity suite was not run locally (`--quick`); the focused runtime was run separately. 🤖 Generated with [Codex](https://openai.com/codex/) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#7794
No description provided.