[PR #2240] [MERGED] Let goats breed, follow wheat and be milked #4133

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

📋 Pull Request Information

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

Base: main ← Head: fix/goat-breed-milk


📝 Commits (1)

  • c418034 Let goats breed, follow wheat and be milked

📊 Changes

2 files changed (+24 additions, -0 deletions)

View changed files

📝 crates/horizon-client/src/game/creatures.rs (+10 -0)
📝 crates/horizon-client/src/mobs/ai.rs (+14 -0)

📄 Description

What and why

Goats were treated like a generic animal: they only strolled and panicked. Wheat put them in love but they never found a partner, they ignored held wheat, babies did not follow adults, and a bucket on a goat did nothing.

Goats now get the parts of GoatAi that Horizon can run with its goal system: panic at 2.0, breeding at 1.0, tempting with goat_food at 1.25, a baby following an adult at 1.25, then strolling at 1.0. A bucket on an adult goat now gives a milk bucket with the goat or screaming goat milk sound, through the same code path as milking a cow, so it also works for a guest on the in-process server.

Not done: the goat's ram and long jump activities, which need new AI.

Vanilla reference

  • GoatAi.initCoreActivity and GoatAi.initIdleActivity (speed modifiers, AnimalMakeLove, FollowTemptation, BabyFollowAdult)
  • Goat.mobInteract and Goat.getMilkingSound

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/2240 **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/goat-breed-milk` --- ### 📝 Commits (1) - [`c418034`](https://github.com/horizon-rust/horizon/commit/c418034f10e15eb6dccba6e4d9a18365eb08a3f0) Let goats breed, follow wheat and be milked ### 📊 Changes **2 files changed** (+24 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/creatures.rs` (+10 -0) 📝 `crates/horizon-client/src/mobs/ai.rs` (+14 -0) </details> ### 📄 Description ## What and why Goats were treated like a generic animal: they only strolled and panicked. Wheat put them in love but they never found a partner, they ignored held wheat, babies did not follow adults, and a bucket on a goat did nothing. Goats now get the parts of `GoatAi` that Horizon can run with its goal system: panic at 2.0, breeding at 1.0, tempting with `goat_food` at 1.25, a baby following an adult at 1.25, then strolling at 1.0. A bucket on an adult goat now gives a milk bucket with the goat or screaming goat milk sound, through the same code path as milking a cow, so it also works for a guest on the in-process server. Not done: the goat's ram and long jump activities, which need new AI. ## Vanilla reference - `GoatAi.initCoreActivity` and `GoatAi.initIdleActivity` (speed modifiers, `AnimalMakeLove`, `FollowTemptation`, `BabyFollowAdult`) - `Goat.mobInteract` and `Goat.getMilkingSound` ## 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:55 +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#4133
No description provided.