[PR #3955] [MERGED] Animals behave like vanilla: turtles, goats, foxes, bees, axolotls, camels and horses #5319

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3955
Author: @kacpherek
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @levzzz5154

Base: main ← Head: fix/split-animals


📝 Commits (10+)

  • 713b277 Swim turtles with their own water travel
  • e94f191 Give bred goats their cooldowns and screaming inheritance
  • 0554db3 Calm neutral mobs when the player who angered them dies
  • 4fcaff9 Give a water bucket back for a tropical fish bucket fed to an axolotl
  • c7440b7 Hang a bee's lead at half its eye height
  • 48efd53 Breed axolotl babies with a random parent's colour and a rare blue
  • 80b68ba Hold a sitting camel's rotation under its rider
  • 9f3cba3 Send a flap game event from a flying bee every other tick
  • 1139057 Play the camel saddle sound when a camel is saddled by hand
  • 4049220 Make a horse thud when it lands instead of the generic fall sound

📊 Changes

19 files changed (+341 additions, -18 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+6 -0)
📝 crates/horizon-client/src/game/creatures.rs (+79 -0)
📝 crates/horizon-client/src/game/lan_actions.rs (+6 -0)
📝 crates/horizon-client/src/game/mounts.rs (+6 -1)
📝 crates/horizon-client/src/game/potions.rs (+27 -0)
📝 crates/horizon-client/src/game/remote.rs (+7 -0)
📝 crates/horizon-client/src/game/sculk.rs (+25 -2)
📝 crates/horizon-client/src/mobs/ai.rs (+12 -0)
📝 crates/horizon-client/src/mobs/bee.rs (+6 -0)
📝 crates/horizon-client/src/mobs/equine.rs (+12 -5)
📝 crates/horizon-client/src/mobs/finalize.rs (+30 -4)
📝 crates/horizon-client/src/mobs/fox.rs (+25 -0)
📝 crates/horizon-client/src/mobs/goals.rs (+24 -0)
📝 crates/horizon-client/src/mobs/leash.rs (+3 -0)
📝 crates/horizon-client/src/mobs/living.rs (+29 -1)
📝 crates/horizon-client/src/mobs/polar_bear.rs (+7 -0)
📝 crates/horizon-client/src/mobs/spawning.rs (+10 -1)
📝 crates/horizon-client/src/mobs/tame.rs (+6 -0)
📝 crates/horizon-client/src/mobs/turtle.rs (+21 -4)

📄 Description

What and why

  • Turtles swim with their own water movement (0.1 speed, 0.9 drag, slow sinking) instead of the generic fluid travel.
  • Bred baby goats get their ram and long jump cooldowns and take screaming from a random parent or a 2 percent roll.
  • With forgive_dead_players on, neutral mobs (wolves, bees, polar bears and others) calm down when the player who angered them dies.
  • Feeding an axolotl a tropical fish bucket gives back a water bucket.
  • A leashed bee's lead hangs at half its eye height.
  • Axolotl babies take a random parent's colour, with a one in 1200 chance of blue.
  • A camel that refuses to move (sitting or changing pose) keeps its rotation under its rider.
  • A flying bee sends the flap game event every other tick, so sculk sensors hear it.
  • Saddling a camel by hand plays the camel saddle sound.
  • A landing horse plays its own land thud (baby variant for babies) instead of the generic fall sound.
  • A splashed water potion refills nearby axolotls' air.
  • A tamed skeleton horse without a saddle no longer takes steering from its rider.
  • When a tamed mob is hurt, only pets of the same owner are called to help, not other owners' wolves or the attacker's own pets.
  • Natural and spawner goats get screaming, a possible lost horn and ram cooldowns.
  • Natural and spawner foxes can hold food or a feather in their mouth.
  • Another player's main and off hand items swap when it swaps hands (entity event 55).
  • Natural and spawner foxes from snowy biomes are snow foxes.
  • Bred baby foxes and goats do not get the spawn extras: the baby fox has an empty mouth, the baby goat keeps both horns.

Vanilla reference

  • Turtle travel: Turtle.travelInWater, Turtle.java
  • Bred goat: Goat.getBreedOffspring, Goat.java; GoatAi.initMemories
  • Dead player: ServerPlayer.tellNeutralMobsThatIDied, ServerPlayer.java; NeutralMob.playerDied, NeutralMob.java
  • Axolotl bucket: Axolotl.usePlayerItem, Axolotl.java
  • Bee lead: Bee.getLeashOffset, Bee.java
  • Axolotl breeding: Axolotl.getBreedOffspring, Axolotl.java
  • Sitting camel: Camel.getRiddenRotation, Camel.java
  • Bee flap: Entity.processFlappingMovement, Entity.java; Bee.isFlapping, Bee.java
  • Camel saddle sound: Camel.getSaddleSound, Camel.java
  • Horse landing: AbstractHorse.causeFallDamage, AbstractHorse.java
  • Water potion on axolotls: AbstractThrownPotion.affectEntitiesAround, AbstractThrownPotion.java
  • Skeleton horse steering: AbstractHorse.getControllingPassenger, AbstractHorse.java; SkeletonTrapGoal
  • Pet help: HurtByTargetGoal.alertOthers, HurtByTargetGoal.java; TamableAnimal.getOwner, TamableAnimal.java
  • Natural goats: Goat.finalizeSpawn, Goat.java; GoatAi.initMemories
  • Fox mouth item: Fox.populateDefaultEquipmentSlots, Fox.java
  • Hand swap: LivingEntity.handleEntityEvent (event 55) and swapHandItems, LivingEntity.java
  • Snow foxes: Fox.Variant.byBiome, Fox.java
  • Bred baby fox and goat: Fox.getBreedOffspring, Fox.java; Goat.getBreedOffspring, Goat.java

Self-check

rustfmt on changed files; built by CI; not run in game.

Split out of #3926.


🔄 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/3955 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `fix/split-animals` --- ### 📝 Commits (10+) - [`713b277`](https://github.com/horizon-rust/horizon/commit/713b2774aaef0c525706f14a3c2f7df064906c29) Swim turtles with their own water travel - [`e94f191`](https://github.com/horizon-rust/horizon/commit/e94f1917a74e4d53641c220fd306d2fd1870090a) Give bred goats their cooldowns and screaming inheritance - [`0554db3`](https://github.com/horizon-rust/horizon/commit/0554db39062ffda1529e6e2f06aee3e03983d8ff) Calm neutral mobs when the player who angered them dies - [`4fcaff9`](https://github.com/horizon-rust/horizon/commit/4fcaff99356a5cbbbd4ac12c7df690473764aa7a) Give a water bucket back for a tropical fish bucket fed to an axolotl - [`c7440b7`](https://github.com/horizon-rust/horizon/commit/c7440b78d54d31181076e9dba6fbbc9548c3c0a3) Hang a bee's lead at half its eye height - [`48efd53`](https://github.com/horizon-rust/horizon/commit/48efd53e00b8fb39b2092fe31c0993c8be050632) Breed axolotl babies with a random parent's colour and a rare blue - [`80b68ba`](https://github.com/horizon-rust/horizon/commit/80b68bae0cf64eab20d5a35a16f0e1097dd0a0ee) Hold a sitting camel's rotation under its rider - [`9f3cba3`](https://github.com/horizon-rust/horizon/commit/9f3cba308c714ad0075b4f7f2301daceb10d0cd5) Send a flap game event from a flying bee every other tick - [`1139057`](https://github.com/horizon-rust/horizon/commit/1139057d3e584546cb272a65e1a1b2d24955ecea) Play the camel saddle sound when a camel is saddled by hand - [`4049220`](https://github.com/horizon-rust/horizon/commit/40492207150aeae27954f95e5285578869b66d69) Make a horse thud when it lands instead of the generic fall sound ### 📊 Changes **19 files changed** (+341 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+6 -0) 📝 `crates/horizon-client/src/game/creatures.rs` (+79 -0) 📝 `crates/horizon-client/src/game/lan_actions.rs` (+6 -0) 📝 `crates/horizon-client/src/game/mounts.rs` (+6 -1) 📝 `crates/horizon-client/src/game/potions.rs` (+27 -0) 📝 `crates/horizon-client/src/game/remote.rs` (+7 -0) 📝 `crates/horizon-client/src/game/sculk.rs` (+25 -2) 📝 `crates/horizon-client/src/mobs/ai.rs` (+12 -0) 📝 `crates/horizon-client/src/mobs/bee.rs` (+6 -0) 📝 `crates/horizon-client/src/mobs/equine.rs` (+12 -5) 📝 `crates/horizon-client/src/mobs/finalize.rs` (+30 -4) 📝 `crates/horizon-client/src/mobs/fox.rs` (+25 -0) 📝 `crates/horizon-client/src/mobs/goals.rs` (+24 -0) 📝 `crates/horizon-client/src/mobs/leash.rs` (+3 -0) 📝 `crates/horizon-client/src/mobs/living.rs` (+29 -1) 📝 `crates/horizon-client/src/mobs/polar_bear.rs` (+7 -0) 📝 `crates/horizon-client/src/mobs/spawning.rs` (+10 -1) 📝 `crates/horizon-client/src/mobs/tame.rs` (+6 -0) 📝 `crates/horizon-client/src/mobs/turtle.rs` (+21 -4) </details> ### 📄 Description ## What and why - Turtles swim with their own water movement (0.1 speed, 0.9 drag, slow sinking) instead of the generic fluid travel. - Bred baby goats get their ram and long jump cooldowns and take screaming from a random parent or a 2 percent roll. - With forgive_dead_players on, neutral mobs (wolves, bees, polar bears and others) calm down when the player who angered them dies. - Feeding an axolotl a tropical fish bucket gives back a water bucket. - A leashed bee's lead hangs at half its eye height. - Axolotl babies take a random parent's colour, with a one in 1200 chance of blue. - A camel that refuses to move (sitting or changing pose) keeps its rotation under its rider. - A flying bee sends the flap game event every other tick, so sculk sensors hear it. - Saddling a camel by hand plays the camel saddle sound. - A landing horse plays its own land thud (baby variant for babies) instead of the generic fall sound. - A splashed water potion refills nearby axolotls' air. - A tamed skeleton horse without a saddle no longer takes steering from its rider. - When a tamed mob is hurt, only pets of the same owner are called to help, not other owners' wolves or the attacker's own pets. - Natural and spawner goats get screaming, a possible lost horn and ram cooldowns. - Natural and spawner foxes can hold food or a feather in their mouth. - Another player's main and off hand items swap when it swaps hands (entity event 55). - Natural and spawner foxes from snowy biomes are snow foxes. - Bred baby foxes and goats do not get the spawn extras: the baby fox has an empty mouth, the baby goat keeps both horns. ## Vanilla reference - Turtle travel: Turtle.travelInWater, Turtle.java - Bred goat: Goat.getBreedOffspring, Goat.java; GoatAi.initMemories - Dead player: ServerPlayer.tellNeutralMobsThatIDied, ServerPlayer.java; NeutralMob.playerDied, NeutralMob.java - Axolotl bucket: Axolotl.usePlayerItem, Axolotl.java - Bee lead: Bee.getLeashOffset, Bee.java - Axolotl breeding: Axolotl.getBreedOffspring, Axolotl.java - Sitting camel: Camel.getRiddenRotation, Camel.java - Bee flap: Entity.processFlappingMovement, Entity.java; Bee.isFlapping, Bee.java - Camel saddle sound: Camel.getSaddleSound, Camel.java - Horse landing: AbstractHorse.causeFallDamage, AbstractHorse.java - Water potion on axolotls: AbstractThrownPotion.affectEntitiesAround, AbstractThrownPotion.java - Skeleton horse steering: AbstractHorse.getControllingPassenger, AbstractHorse.java; SkeletonTrapGoal - Pet help: HurtByTargetGoal.alertOthers, HurtByTargetGoal.java; TamableAnimal.getOwner, TamableAnimal.java - Natural goats: Goat.finalizeSpawn, Goat.java; GoatAi.initMemories - Fox mouth item: Fox.populateDefaultEquipmentSlots, Fox.java - Hand swap: LivingEntity.handleEntityEvent (event 55) and swapHandItems, LivingEntity.java - Snow foxes: Fox.Variant.byBiome, Fox.java - Bred baby fox and goat: Fox.getBreedOffspring, Fox.java; Goat.getBreedOffspring, Goat.java ## Self-check rustfmt on changed files; built by CI; not run in game. Split out of #3926. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:11:45 +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#5319
No description provided.