[PR #2722] [CLOSED] Untamed horses rear when shown an item and throw off a server player #4565

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2722
Author: @kacpherek
Created: 10/27/2026
Status: ❌ Closed

Base: main ← Head: fix/2697-horse-taming


📝 Commits (1)

  • ff46f48 Untamed horses rear when shown an item, and throw off a server player riding them

📊 Changes

1 file changed (+43 additions, -0 deletions)

View changed files

📝 crates/horizon-client/src/game/mounts.rs (+43 -0)

📄 Description

What and why

Two parts of taming an untamed horse were missing:

  • Right-clicking an untamed horse, donkey or mule with an item that is not its food did nothing special, so the player simply mounted it. In vanilla the animal rears and plays its angry sound and takes no rider.
  • When an untamed horse bucks (the ride-taming roll in the run-around goal), it only threw off the player that sits at the window. A server player riding it was never thrown off, so the horse never got rid of its rider.

The fix: the interaction now calls the existing make_mad for an untamed, non-baby horse, donkey or mule shown a non-food item, and returns without mounting. The Buck event now also takes a server player off the animal it rides, using the same dismount a sneaking rider gets.

The temper increase when fed, the ride-taming roll itself, and the hearts and smoke events are already handled by the existing code and by open PRs: taming hearts and smoke for server-thread clients are in #2125, and the rear animation flags are synced in #2685. This PR changes only the missing server logic.

Fixes #2697.

Vanilla reference

Horse.mobInteract and AbstractChestedHorse.mobInteract (food goes to fedFood, otherwise an untamed animal calls makeMad), AbstractHorse.makeMad, and RunAroundLikeCrazyGoal.tick (ejectPassengers, makeMad).

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/2722 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/27/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/2697-horse-taming` --- ### 📝 Commits (1) - [`ff46f48`](https://github.com/horizon-rust/horizon/commit/ff46f4859bb6062e3bf51292a58228751f5e891d) Untamed horses rear when shown an item, and throw off a server player riding them ### 📊 Changes **1 file changed** (+43 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/mounts.rs` (+43 -0) </details> ### 📄 Description ## What and why Two parts of taming an untamed horse were missing: - Right-clicking an untamed horse, donkey or mule with an item that is not its food did nothing special, so the player simply mounted it. In vanilla the animal rears and plays its angry sound and takes no rider. - When an untamed horse bucks (the ride-taming roll in the run-around goal), it only threw off the player that sits at the window. A server player riding it was never thrown off, so the horse never got rid of its rider. The fix: the interaction now calls the existing `make_mad` for an untamed, non-baby horse, donkey or mule shown a non-food item, and returns without mounting. The `Buck` event now also takes a server player off the animal it rides, using the same dismount a sneaking rider gets. The temper increase when fed, the ride-taming roll itself, and the hearts and smoke events are already handled by the existing code and by open PRs: taming hearts and smoke for server-thread clients are in #2125, and the rear animation flags are synced in #2685. This PR changes only the missing server logic. Fixes #2697. ## Vanilla reference `Horse.mobInteract` and `AbstractChestedHorse.mobInteract` (food goes to `fedFood`, otherwise an untamed animal calls `makeMad`), `AbstractHorse.makeMad`, and `RunAroundLikeCrazyGoal.tick` (`ejectPassengers`, `makeMad`). ## 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:18:06 +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#4565
No description provided.