[PR #2382] [MERGED] Let tame parrots follow their owner and sit when told to #4262

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

📋 Pull Request Information

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

Base: main ← Head: fix/parrot-follow-sit


📝 Commits (6)

  • 6145077 Make a tame parrot answer only to its owner
  • 62c5a6d Merge remote-tracking branch 'origin/main' into HEAD
  • 0914229 A parrot saves its owner in main's Variant arm
  • bbd5c1c Merge main into fix/parrot-follow-sit
  • b2fd94f Merge main into fix/parrot-follow-sit
  • b784b15 Merge main into fix/parrot-follow-sit

📊 Changes

2 files changed (+8 additions, -3 deletions)

View changed files

📝 crates/horizon-client/src/game/creatures.rs (+6 -1)
📝 crates/horizon-client/src/game/lan_mobs.rs (+2 -2)

📄 Description

What and why

A tamed parrot did nothing for its owner. It never followed, never sat, and right-clicking it did nothing. Parrots used the plain animal goals (flee when hurt, stroll, look at the player).

Now a parrot gets the goal list of Parrot.registerGoals: it panics only from fire, follows its tame owner from 5 blocks away (stops at 1), and sits when ordered. The owner can click a tame parrot standing on the ground to make it sit or stand (a flying parrot ignores the click, and poisonous food is left to its own handling). The owner and sitting state are now saved with the parrot and sent to guests in the entity data, so the sitting pose also shows on a server-thread or LAN client.

Not covered here: flying navigation. The parrot still walks to its owner (and teleports when 12 or more blocks away, as vanilla does).

Vanilla reference

  • Parrot.registerGoals: TamableAnimalPanicGoal, FloatGoal, LookAtPlayerGoal, SitWhenOrderedToGoal, FollowOwnerGoal(1.0, 5.0, 1.0), wander.
  • Parrot.mobInteract: the !isFlying() && isTame() && isOwnedBy(player) branch toggles setOrderedToSit.
  • TamableAnimal.DATA_FLAGS_ID (sitting 1, tame 4), Owner and Sitting in the save data.

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/2382 **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/parrot-follow-sit` --- ### 📝 Commits (6) - [`6145077`](https://github.com/horizon-rust/horizon/commit/6145077d7e094b19a0940fbf94bd13de10a03a37) Make a tame parrot answer only to its owner - [`62c5a6d`](https://github.com/horizon-rust/horizon/commit/62c5a6d27b9fe3772bde3fd93140dee3540cd369) Merge remote-tracking branch 'origin/main' into HEAD - [`0914229`](https://github.com/horizon-rust/horizon/commit/09142298005c5fe45b1d4883dc5809965d3446eb) A parrot saves its owner in main's Variant arm - [`bbd5c1c`](https://github.com/horizon-rust/horizon/commit/bbd5c1c833098042551dc13d96aefd0c2b251ec4) Merge main into fix/parrot-follow-sit - [`b2fd94f`](https://github.com/horizon-rust/horizon/commit/b2fd94f49f4be50490301b372c7e4b66d3990218) Merge main into fix/parrot-follow-sit - [`b784b15`](https://github.com/horizon-rust/horizon/commit/b784b15b8afa529754b7b16c916567552d2ce049) Merge main into fix/parrot-follow-sit ### 📊 Changes **2 files changed** (+8 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/creatures.rs` (+6 -1) 📝 `crates/horizon-client/src/game/lan_mobs.rs` (+2 -2) </details> ### 📄 Description ## What and why A tamed parrot did nothing for its owner. It never followed, never sat, and right-clicking it did nothing. Parrots used the plain animal goals (flee when hurt, stroll, look at the player). Now a parrot gets the goal list of `Parrot.registerGoals`: it panics only from fire, follows its tame owner from 5 blocks away (stops at 1), and sits when ordered. The owner can click a tame parrot standing on the ground to make it sit or stand (a flying parrot ignores the click, and poisonous food is left to its own handling). The owner and sitting state are now saved with the parrot and sent to guests in the entity data, so the sitting pose also shows on a server-thread or LAN client. Not covered here: flying navigation. The parrot still walks to its owner (and teleports when 12 or more blocks away, as vanilla does). ## Vanilla reference - `Parrot.registerGoals`: `TamableAnimalPanicGoal`, `FloatGoal`, `LookAtPlayerGoal`, `SitWhenOrderedToGoal`, `FollowOwnerGoal(1.0, 5.0, 1.0)`, wander. - `Parrot.mobInteract`: the `!isFlying() && isTame() && isOwnedBy(player)` branch toggles `setOrderedToSit`. - `TamableAnimal.DATA_FLAGS_ID` (sitting 1, tame 4), `Owner` and `Sitting` in the save data. ## 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:15:53 +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#4262
No description provided.