[PR #2984] [MERGED] Passive mobs: sound variants, donkey and mule stats, no mule breeding, allay distance and more as vanilla #4735

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

📋 Pull Request Information

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

Base: main ← Head: fix/passive-mob-parity


📝 Commits (10+)

  • 482444a Roll vanilla's donkey, mule and zombie horse attributes on spawn
  • 6f0d565 Stop mules from breeding
  • 830a9d3 Give the skeleton horse vanilla's water drag
  • b77301b Let an allay wander up to 16 blocks from its player
  • f164427 Use the full not_scary_for_pufferfish list for the puff trigger
  • 28c3092 Play the sound variant of pigs, cows, chickens, wolves and cats
  • 94e8c85 Roll a natural salmon's size
  • dc75e77 Pick a parent's variant at random for pig, cow and chicken babies
  • 154aaa2 Fix clippy and format the passive mob fixes
  • 58422bc Bred babies keep the classic sound set; allays walk back to within 4 blocks

📊 Changes

10 files changed (+172 additions, -57 deletions)

View changed files

📝 crates/horizon-client/src/game/creatures.rs (+12 -3)
📝 crates/horizon-client/src/mobs/ai.rs (+41 -31)
📝 crates/horizon-client/src/mobs/allay.rs (+15 -2)
📝 crates/horizon-client/src/mobs/aquatic.rs (+8 -2)
📝 crates/horizon-client/src/mobs/equine.rs (+29 -17)
📝 crates/horizon-client/src/mobs/finalize.rs (+40 -0)
📝 crates/horizon-client/src/mobs/goals.rs (+4 -0)
📝 crates/horizon-client/src/mobs/spawning.rs (+17 -0)
📝 crates/horizon-client/src/mobs/species.rs (+2 -0)
📝 crates/horizon-client/src/mobs/tame.rs (+4 -2)

📄 Description

What and why

  • Pigs, cows, chickens, wolves and cats play their sound variant (pig big and mini, cow moody, chicken picky, wolf angry/big/cute/grumpy/puglin/sad, cat royal), and babies play the baby set. Before, every one played the classic adult sounds. Natural spawns, spawn eggs and spawners now get a random sound variant.
  • A tame cat purreows one time in four, as vanilla.
  • Natural donkeys and mules keep jump strength 0.5 (they rolled a horse jump, 0.4 to 1.0). Natural zombie horses use their own jump (0.5 to 0.7) and speed.
  • Mules no longer breed.
  • The skeleton horse swims with a water drag of 0.96, not 0.8.
  • An allay only comes back to its player once it is 16 blocks away, not 4.
  • Turtles, guardians, elder guardians, tadpoles, nautiluses and sulfur cubes no longer make a pufferfish puff; axolotls do.
  • A naturally spawned salmon rolls its size (small 30, medium 50, large 15) instead of always being small.
  • A pig, cow or chicken baby takes either parent's variant with equal odds, not always the initiator's.

Vanilla reference

  • Pig.java:280, Cow.java (getSoundSet), Chicken.java, Wolf.java:174, Cat.java:140 and :257-266; data/minecraft/*_sound_variant.
  • AbstractChestedHorse.java:45-56, ZombieHorse.java:74-91.
  • AbstractHorse.canMate (false), Donkey.java:46, Horse.canMate.
  • SkeletonHorse.java:149.
  • StayCloseToTarget.java:25, AllayAi.java:89.
  • Pufferfish.java (PUFFER_SCARY_MOB), data/minecraft/tags/entity_type/not_scary_for_pufferfish.json.
  • Salmon.java (finalizeSpawn size).
  • Pig.java:248, Cow.java:77, Chicken.java:178 (getBreedOffspring).

Self-check

clippy and fmt pass for horizon-client. 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/2984 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/28/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/passive-mob-parity` --- ### 📝 Commits (10+) - [`482444a`](https://github.com/horizon-rust/horizon/commit/482444afc4bedf8c9a7aee313fd9f7a3393a9d79) Roll vanilla's donkey, mule and zombie horse attributes on spawn - [`6f0d565`](https://github.com/horizon-rust/horizon/commit/6f0d56512d5abae6bfb424a58bbf4c4a7447b7f0) Stop mules from breeding - [`830a9d3`](https://github.com/horizon-rust/horizon/commit/830a9d3d84b3be02ed6893bbb46ef37c423b4ec5) Give the skeleton horse vanilla's water drag - [`b77301b`](https://github.com/horizon-rust/horizon/commit/b77301b6ebe718ef9a595555c5939bfff9710d36) Let an allay wander up to 16 blocks from its player - [`f164427`](https://github.com/horizon-rust/horizon/commit/f164427cba63927719ea17ac73ca688572631a1a) Use the full not_scary_for_pufferfish list for the puff trigger - [`28c3092`](https://github.com/horizon-rust/horizon/commit/28c30923f4d7bc8a2a9dd2ce7fa4edc1bd7c75f3) Play the sound variant of pigs, cows, chickens, wolves and cats - [`94e8c85`](https://github.com/horizon-rust/horizon/commit/94e8c85fd020014cf660800dcad308c941a81a03) Roll a natural salmon's size - [`dc75e77`](https://github.com/horizon-rust/horizon/commit/dc75e77eb1b9caa62224770e273c3668935fff96) Pick a parent's variant at random for pig, cow and chicken babies - [`154aaa2`](https://github.com/horizon-rust/horizon/commit/154aaa2051c76ca90e86cb8ffbab2a3670c6f138) Fix clippy and format the passive mob fixes - [`58422bc`](https://github.com/horizon-rust/horizon/commit/58422bcc19ecf7dd2294a015c3ac897b2d3183bc) Bred babies keep the classic sound set; allays walk back to within 4 blocks ### 📊 Changes **10 files changed** (+172 additions, -57 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/creatures.rs` (+12 -3) 📝 `crates/horizon-client/src/mobs/ai.rs` (+41 -31) 📝 `crates/horizon-client/src/mobs/allay.rs` (+15 -2) 📝 `crates/horizon-client/src/mobs/aquatic.rs` (+8 -2) 📝 `crates/horizon-client/src/mobs/equine.rs` (+29 -17) 📝 `crates/horizon-client/src/mobs/finalize.rs` (+40 -0) 📝 `crates/horizon-client/src/mobs/goals.rs` (+4 -0) 📝 `crates/horizon-client/src/mobs/spawning.rs` (+17 -0) 📝 `crates/horizon-client/src/mobs/species.rs` (+2 -0) 📝 `crates/horizon-client/src/mobs/tame.rs` (+4 -2) </details> ### 📄 Description ## What and why - Pigs, cows, chickens, wolves and cats play their sound variant (pig big and mini, cow moody, chicken picky, wolf angry/big/cute/grumpy/puglin/sad, cat royal), and babies play the baby set. Before, every one played the classic adult sounds. Natural spawns, spawn eggs and spawners now get a random sound variant. - A tame cat purreows one time in four, as vanilla. - Natural donkeys and mules keep jump strength 0.5 (they rolled a horse jump, 0.4 to 1.0). Natural zombie horses use their own jump (0.5 to 0.7) and speed. - Mules no longer breed. - The skeleton horse swims with a water drag of 0.96, not 0.8. - An allay only comes back to its player once it is 16 blocks away, not 4. - Turtles, guardians, elder guardians, tadpoles, nautiluses and sulfur cubes no longer make a pufferfish puff; axolotls do. - A naturally spawned salmon rolls its size (small 30, medium 50, large 15) instead of always being small. - A pig, cow or chicken baby takes either parent's variant with equal odds, not always the initiator's. ## Vanilla reference - Pig.java:280, Cow.java (`getSoundSet`), Chicken.java, Wolf.java:174, Cat.java:140 and :257-266; data/minecraft/*_sound_variant. - AbstractChestedHorse.java:45-56, ZombieHorse.java:74-91. - AbstractHorse.canMate (false), Donkey.java:46, Horse.canMate. - SkeletonHorse.java:149. - StayCloseToTarget.java:25, AllayAi.java:89. - Pufferfish.java (`PUFFER_SCARY_MOB`), data/minecraft/tags/entity_type/not_scary_for_pufferfish.json. - Salmon.java (`finalizeSpawn` size). - Pig.java:248, Cow.java:77, Chicken.java:178 (`getBreedOffspring`). ## Self-check clippy and fmt pass for horizon-client. 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:34 +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#4735
No description provided.