[PR #4581] [MERGED] Draw the parrots on the player's shoulders #5708

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4581
Author: @phexuss
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @levzzz5154

Base: main ← Head: fix/shoulder-parrots


📝 Commits (2)

  • bec89a8 Draw the parrots on the player's shoulders
  • a8f57b1 Merge hr/main; sync shoulder parrots through DATA_SHOULDER_PARROT_LEFT/RIGHT

📊 Changes

11 files changed (+175 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/game/lan.rs (+3 -1)
📝 crates/horizon-client/src/game/lan_actions.rs (+1 -0)
📝 crates/horizon-client/src/game/perspective.rs (+31 -1)
📝 crates/horizon-client/src/game/remote.rs (+9 -0)
📝 crates/horizon-client/src/game/remote_mob_data.rs (+7 -0)
📝 crates/horizon-client/src/game/shoulders.rs (+41 -0)
📝 crates/horizon-client/src/lan/guest.rs (+3 -0)
📝 crates/horizon-client/src/lan/hub.rs (+19 -0)
📝 crates/horizon-client/src/mobs.rs (+3 -0)
📝 crates/horizon-client/src/mobs/render.rs (+57 -0)
📝 crates/horizon-client/tests/lan_bot.rs (+1 -0)

📄 Description

🤖 Opened by phexuss's AI agent (Claude Code, Claude Opus 5.5), not by phexuss personally.

What and why

Part of #3518 (row AbstractClientPlayer.getParrotVariantOnShoulder).

Parrots sitting on a player's shoulders weren't drawn. This reads ShoulderEntityLeft / ShoulderEntityRight from the player's data (a minecraft:parrot entry, its Variant defaulting to 0) and draws the parrot model in its on-shoulder pose like ParrotOnShoulderLayer: offset ±0.4 sideways and -1.5 (-1.3 crouching) up, with the variant's texture (an unknown variant falls back to red_blue). It shows in third person and in the inventory player preview.

Kind

  • parity: Horizon now does what vanilla 26.3 does
  • bug: a crash or a breakage
  • perf: faster, or less memory
  • feature: something new for players (listed under New in the release notes)
  • extra: Horizon-only, off by default
  • tooling: tools, CI, tests, harnesses
  • docs

Vanilla reference

AbstractClientPlayer.getParrotVariantOnShoulder, ParrotOnShoulderLayer.submit, ParrotModel (Pose.ON_SHOULDER), ParrotRenderer.getVariantTexture. No harness: unit tests for reading the shoulder slots and the variant textures. Not checked in game against vanilla, and written without the decompiled sources at hand, so a reviewer comparing against them is welcome.

Self-check

pr_ready (tools/pr_ready.py --quick on vm, against origin/main at a3726f4bf, 1 min 59 s)

Check Result
Scope ✅ 2 files, +135 −0
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 481 passed (35 s)
rustfmt ✅ (7 s)
tests: horizon-client ✅ 1087 passed (1 min 2 s)
doc tests ✅ 0 passed (1 s)
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ not run (--quick): CI's parity job picks the affected harnesses

The clippy failure is manual_range_contains from the local toolchain (Rust 1.97) in files this PR doesn't touch (horizon-world/src/worldgen/aquifer/noise_based.rs, game/dragon.rs). With that lint allowed, cargo clippy -p horizon-client --lib --bins --tests -- -D warnings is clean.


🔄 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/4581 **Author:** [@phexuss](https://github.com/phexuss) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `fix/shoulder-parrots` --- ### 📝 Commits (2) - [`bec89a8`](https://github.com/horizon-rust/horizon/commit/bec89a89271e3a33647fb59213581840f636ef96) Draw the parrots on the player's shoulders - [`a8f57b1`](https://github.com/horizon-rust/horizon/commit/a8f57b1997691d8d6742eba4466405b28eecb8ce) Merge hr/main; sync shoulder parrots through DATA_SHOULDER_PARROT_LEFT/RIGHT ### 📊 Changes **11 files changed** (+175 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/lan.rs` (+3 -1) 📝 `crates/horizon-client/src/game/lan_actions.rs` (+1 -0) 📝 `crates/horizon-client/src/game/perspective.rs` (+31 -1) 📝 `crates/horizon-client/src/game/remote.rs` (+9 -0) 📝 `crates/horizon-client/src/game/remote_mob_data.rs` (+7 -0) 📝 `crates/horizon-client/src/game/shoulders.rs` (+41 -0) 📝 `crates/horizon-client/src/lan/guest.rs` (+3 -0) 📝 `crates/horizon-client/src/lan/hub.rs` (+19 -0) 📝 `crates/horizon-client/src/mobs.rs` (+3 -0) 📝 `crates/horizon-client/src/mobs/render.rs` (+57 -0) 📝 `crates/horizon-client/tests/lan_bot.rs` (+1 -0) </details> ### 📄 Description > 🤖 Opened by phexuss's AI agent (Claude Code, Claude Opus 5.5), not by phexuss personally. ## What and why Part of #3518 (row `AbstractClientPlayer.getParrotVariantOnShoulder`). Parrots sitting on a player's shoulders weren't drawn. This reads `ShoulderEntityLeft` / `ShoulderEntityRight` from the player's data (a `minecraft:parrot` entry, its `Variant` defaulting to 0) and draws the parrot model in its on-shoulder pose like `ParrotOnShoulderLayer`: offset ±0.4 sideways and -1.5 (-1.3 crouching) up, with the variant's texture (an unknown variant falls back to red_blue). It shows in third person and in the inventory player preview. ## Kind - [x] parity: Horizon now does what vanilla 26.3 does - [ ] bug: a crash or a breakage - [ ] perf: faster, or less memory - [ ] feature: something new for players (listed under New in the release notes) - [ ] extra: Horizon-only, off by default - [ ] tooling: tools, CI, tests, harnesses - [ ] docs ## Vanilla reference `AbstractClientPlayer.getParrotVariantOnShoulder`, `ParrotOnShoulderLayer.submit`, `ParrotModel` (`Pose.ON_SHOULDER`), `ParrotRenderer.getVariantTexture`. No harness: unit tests for reading the shoulder slots and the variant textures. Not checked in game against vanilla, and written without the decompiled sources at hand, so a reviewer comparing against them is welcome. ## Self-check **pr_ready** (`tools/pr_ready.py --quick` on vm, against origin/main at a3726f4bf, 1 min 59 s) | Check | Result | | --- | --- | | Scope | ✅ 2 files, +135 −0 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 481 passed (35 s) | | rustfmt | ✅ (7 s) | | tests: horizon-client | ✅ 1087 passed (1 min 2 s) | | doc tests | ✅ 0 passed (1 s) | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ not run (--quick): CI's parity job picks the affected harnesses | The clippy failure is `manual_range_contains` from the local toolchain (Rust 1.97) in files this PR doesn't touch (`horizon-world/src/worldgen/aquifer/noise_based.rs`, `game/dragon.rs`). With that lint allowed, `cargo clippy -p horizon-client --lib --bins --tests -- -D warnings` is clean. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:14:27 +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#5708
No description provided.