[PR #2529] [MERGED] Use vanilla's head turn limits for some mobs and show a parrot in water as flying #4399

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

📋 Pull Request Information

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

Base: main ← Head: fix/head-rotation-limits


📝 Commits (1)

  • c05dc8a Use vanilla's head turn limits for guardian, shulker, ravager, camel and sitting wolf, and draw a parrot in water as flying

📊 Changes

5 files changed (+20 additions, -15 deletions)

View changed files

📝 crates/horizon-client/src/mobs/body_anim.rs (+2 -1)
📝 crates/horizon-client/src/mobs/control.rs (+10 -2)
📝 crates/horizon-client/src/mobs/goals.rs (+2 -2)
📝 crates/horizon-client/src/mobs/species.rs (+4 -0)
📝 crates/horizon-client/src/mobs/tame.rs (+2 -10)

📄 Description

What and why

Some mobs used the default head turn limits (40 up and down, 75 sideways) where vanilla has their own, and a parrot floating in water was drawn standing.

  • Guardian and elder guardian: up and down limit 180 (Guardian.getMaxHeadXRot).
  • Shulker: both limits 180 (Shulker.getMaxHeadXRot and getMaxHeadYRot).
  • Ravager: sideways limit 45 (Ravager.getMaxHeadYRot).
  • Camel and camel husk: sideways limit 30 (Camel.getMaxHeadYRot).
  • Sitting wolf: up and down limit 20 (Wolf.getMaxHeadXRot). This was already done for two goals in tame.rs, but also for sitting cats, and not for the plain look or the tempt and breed goals. It is now one Mob::max_head_x_rot that every look call uses, and only for wolves.
  • Parrot: Parrot.isFlying is !onGround, so a parrot in water now flaps its wings instead of showing the standing legs.

Vanilla reference

  • Mob.getMaxHeadXRot / getMaxHeadYRot and the overrides in Guardian, Shulker, Ravager, Camel, Wolf
  • Parrot.isFlying, ParrotModel.getPose

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/2529 **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/head-rotation-limits` --- ### 📝 Commits (1) - [`c05dc8a`](https://github.com/horizon-rust/horizon/commit/c05dc8af22482a04f7a692e5f289d5edca0e4d83) Use vanilla's head turn limits for guardian, shulker, ravager, camel and sitting wolf, and draw a parrot in water as flying ### 📊 Changes **5 files changed** (+20 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/mobs/body_anim.rs` (+2 -1) 📝 `crates/horizon-client/src/mobs/control.rs` (+10 -2) 📝 `crates/horizon-client/src/mobs/goals.rs` (+2 -2) 📝 `crates/horizon-client/src/mobs/species.rs` (+4 -0) 📝 `crates/horizon-client/src/mobs/tame.rs` (+2 -10) </details> ### 📄 Description ## What and why Some mobs used the default head turn limits (40 up and down, 75 sideways) where vanilla has their own, and a parrot floating in water was drawn standing. - Guardian and elder guardian: up and down limit 180 (`Guardian.getMaxHeadXRot`). - Shulker: both limits 180 (`Shulker.getMaxHeadXRot` and `getMaxHeadYRot`). - Ravager: sideways limit 45 (`Ravager.getMaxHeadYRot`). - Camel and camel husk: sideways limit 30 (`Camel.getMaxHeadYRot`). - Sitting wolf: up and down limit 20 (`Wolf.getMaxHeadXRot`). This was already done for two goals in `tame.rs`, but also for sitting cats, and not for the plain look or the tempt and breed goals. It is now one `Mob::max_head_x_rot` that every look call uses, and only for wolves. - Parrot: `Parrot.isFlying` is `!onGround`, so a parrot in water now flaps its wings instead of showing the standing legs. ## Vanilla reference - `Mob.getMaxHeadXRot` / `getMaxHeadYRot` and the overrides in `Guardian`, `Shulker`, `Ravager`, `Camel`, `Wolf` - `Parrot.isFlying`, `ParrotModel.getPose` ## 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:16:52 +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#4399
No description provided.