[PR #6166] [CLOSED] A worn dragon head opens its jaw as its wearer walks #6690

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6166
Author: @breachato
Created: 11/1/2026
Status: ❌ Closed

Base: main ← Head: fix/6111-worn-head-animation


📝 Commits (1)

  • c0e972c A worn dragon head opens its jaw as its wearer walks

📊 Changes

1 file changed (+12 additions, -1 deletions)

View changed files

📝 crates/horizon-client/src/game/mob_blocks.rs (+12 -1)

📄 Description

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

What and why

Fixes #6111.

A dragon head worn by a walking player kept its jaw shut; in vanilla it opens and closes as the wearer walks, as a placed one does on a powered block.

CustomHeadLayer draws a worn skull with SkullBlockRenderer.submitSkull(state.wornHeadAnimationPos, ..), and LivingEntityRenderer.extractRenderState sets wornHeadAnimationPos to the living vehicle's walkAnimation.position(partialTicks) when the entity rides one, else to its own walkAnimationPos (26.3 bytecode, offsets 144–186). Horizon's head_item_geometry passed animation: 0.0.

It now passes that value: the vehicle's limb_position - limb_speed * (1 - alpha) when the mob's extra.mount is a tracked mob, else mobs::anim::state(mob, alpha).pos (the same walkAnimationPos the mob's own model uses, already 0 for a passenger or a dead mob). skull_pose already turns it into the dragon's jaw and the piglin's ears.

Armour stands (armor_stands.rs) still pass 0: they have no walk animation in Horizon.

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

  • net.minecraft.client.renderer.entity.LivingEntityRenderer.extractRenderState: wornHeadAnimationPos.
  • net.minecraft.client.renderer.entity.layers.CustomHeadLayer.submit: SkullBlockRenderer.submitSkull(state.wornHeadAnimationPos, ..).

No harness or unit test: a render input taken from values the model already uses.

Other projects' code

none

Self-check

pr_ready (tools/pr_ready.py --quick --base upstream/main on DESKTOP-G0M27UC, against upstream/main at abbfe4996, 13 min 17 s)

Check Result
Scope ✅ 1 files, +12 −1
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 584 passed (3 min 6 s)
rustfmt ✅ (18 s)
clippy ✅ (2 min 14 s)
tests: horizon-client ✅ 1767 passed (7 min 31 s)
doc tests ✅ 0 passed (5 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
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

Not checked in game on this machine: the vanilla data isn't prepared here.

🤖 Generated with Claude Code


🔄 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/6166 **Author:** [@breachato](https://github.com/breachato) **Created:** 11/1/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/6111-worn-head-animation` --- ### 📝 Commits (1) - [`c0e972c`](https://github.com/horizon-rust/horizon/commit/c0e972c734a9fd7bac74eb54f50deffe853aed8f) A worn dragon head opens its jaw as its wearer walks ### 📊 Changes **1 file changed** (+12 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/mob_blocks.rs` (+12 -1) </details> ### 📄 Description > 🤖 Opened by breachato's AI agent (Claude Code, Claude Opus 5.5), not by breachato personally. ## What and why Fixes #6111. A dragon head worn by a walking player kept its jaw shut; in vanilla it opens and closes as the wearer walks, as a placed one does on a powered block. `CustomHeadLayer` draws a worn skull with `SkullBlockRenderer.submitSkull(state.wornHeadAnimationPos, ..)`, and `LivingEntityRenderer.extractRenderState` sets `wornHeadAnimationPos` to the living vehicle's `walkAnimation.position(partialTicks)` when the entity rides one, else to its own `walkAnimationPos` (26.3 bytecode, offsets 144–186). Horizon's `head_item_geometry` passed `animation: 0.0`. It now passes that value: the vehicle's `limb_position - limb_speed * (1 - alpha)` when the mob's `extra.mount` is a tracked mob, else `mobs::anim::state(mob, alpha).pos` (the same `walkAnimationPos` the mob's own model uses, already 0 for a passenger or a dead mob). `skull_pose` already turns it into the dragon's jaw and the piglin's ears. Armour stands (`armor_stands.rs`) still pass 0: they have no walk animation in Horizon. ## 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 - `net.minecraft.client.renderer.entity.LivingEntityRenderer.extractRenderState`: `wornHeadAnimationPos`. - `net.minecraft.client.renderer.entity.layers.CustomHeadLayer.submit`: `SkullBlockRenderer.submitSkull(state.wornHeadAnimationPos, ..)`. No harness or unit test: a render input taken from values the model already uses. ## Other projects' code none ## Self-check **pr_ready** (`tools/pr_ready.py --quick --base upstream/main` on DESKTOP-G0M27UC, against upstream/main at abbfe4996, 13 min 17 s) | Check | Result | | --- | --- | | Scope | ✅ 1 files, +12 −1 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 584 passed (3 min 6 s) | | rustfmt | ✅ (18 s) | | clippy | ✅ (2 min 14 s) | | tests: horizon-client | ✅ 1767 passed (7 min 31 s) | | doc tests | ✅ 0 passed (5 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 | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | Not checked in game on this machine: the vanilla data isn't prepared here. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:24:57 +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#6690
No description provided.