[PR #3853] [MERGED] Draw a worn elytra on armour stands #5252

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3853
Author: @DUzzL
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/29/2026
Merged by: @levzzz5154

Base: main ← Head: fix/armor-stand-elytra-3843


📝 Commits (1)

📊 Changes

4 files changed (+72 additions, -11 deletions)

View changed files

📝 crates/horizon-client/src/game/armor_stands.rs (+19 -2)
📝 crates/horizon-client/src/game/perspective.rs (+33 -7)
📝 crates/horizon-client/src/mobs.rs (+19 -1)
📝 tools/port_map/client-005.tsv (+1 -1)

📄 Description

What and why

Fixes #3843 for armour stands. A stand wearing an elytra in the chest slot drew no wings, because armor_stand_geometry never drew the WingsLayer.

  • The wings drawing moves out of player_elytra_geometry into wings_geometry; players behave as before.
  • armor_stand_geometry calls it after the armour layers with the chest slot, the stand's model transform and the resting wing angles (ElytraAnimation::RESTING, which the tick already used for a standing wearer).
  • A small stand uses minecraft:elytra_baby#main when the entity model data has it; otherwise it draws no wings.

Not in this PR: humanoid mobs (creatures.rs). Non-player mobs draw no worn armour at all yet, so wings there belong with that larger gap. The port ledger row for WingsLayer.submit notes it.

Vanilla reference

WingsLayer.submit, ArmorStandRenderer (adds WingsLayer), ElytraModel.setupAnim, ElytraAnimationState.tick. Followed from memory of the 26.3 client: I had no prepared vanilla data, so I did not run tools/rea_vanilla.py or a parity harness. Two points to check against the jar: that a small stand uses the baby elytra model, and that a stand's wing angles are the resting ones.

Self-check

tools/pr_ready.py not run (no .local/ vanilla data). Run by hand on Windows:

  • cargo fmt -p horizon-client -- --check: ok
  • cargo clippy -p horizon-client --bins --lib: no warnings in touched code (one existing dead_code warning for log_display in horizon-client-render on Windows)
  • cargo test -p horizon-client --lib elytra_tests: 2 passed, including new resting_wings_are_the_standing_target
  • cargo test -p horizon-client --bins entity_model_loading: passed
  • Not checked in game; parity harnesses left to CI.

Screenshots

Not taken (no vanilla data to start the game). Repro from the issue: /item replace entity @n[type=armor_stand] armor.chest with elytra, look at the stand from behind.


🔄 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/3853 **Author:** [@DUzzL](https://github.com/DUzzL) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `fix/armor-stand-elytra-3843` --- ### 📝 Commits (1) - [`5f931e3`](https://github.com/horizon-rust/horizon/commit/5f931e36597be63f2e536c87502421057358875e) Draw a worn elytra on armour stands (#3843) ### 📊 Changes **4 files changed** (+72 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/armor_stands.rs` (+19 -2) 📝 `crates/horizon-client/src/game/perspective.rs` (+33 -7) 📝 `crates/horizon-client/src/mobs.rs` (+19 -1) 📝 `tools/port_map/client-005.tsv` (+1 -1) </details> ### 📄 Description ## What and why Fixes #3843 for armour stands. A stand wearing an elytra in the chest slot drew no wings, because `armor_stand_geometry` never drew the `WingsLayer`. - The wings drawing moves out of `player_elytra_geometry` into `wings_geometry`; players behave as before. - `armor_stand_geometry` calls it after the armour layers with the chest slot, the stand's model transform and the resting wing angles (`ElytraAnimation::RESTING`, which the tick already used for a standing wearer). - A small stand uses `minecraft:elytra_baby#main` when the entity model data has it; otherwise it draws no wings. Not in this PR: humanoid mobs (`creatures.rs`). Non-player mobs draw no worn armour at all yet, so wings there belong with that larger gap. The port ledger row for `WingsLayer.submit` notes it. ## Vanilla reference `WingsLayer.submit`, `ArmorStandRenderer` (adds `WingsLayer`), `ElytraModel.setupAnim`, `ElytraAnimationState.tick`. Followed from memory of the 26.3 client: I had no prepared vanilla data, so I did not run `tools/rea_vanilla.py` or a parity harness. Two points to check against the jar: that a small stand uses the baby elytra model, and that a stand's wing angles are the resting ones. ## Self-check `tools/pr_ready.py` not run (no `.local/` vanilla data). Run by hand on Windows: - `cargo fmt -p horizon-client -- --check`: ok - `cargo clippy -p horizon-client --bins --lib`: no warnings in touched code (one existing `dead_code` warning for `log_display` in `horizon-client-render` on Windows) - `cargo test -p horizon-client --lib elytra_tests`: 2 passed, including new `resting_wings_are_the_standing_target` - `cargo test -p horizon-client --bins entity_model_loading`: passed - Not checked in game; parity harnesses left to CI. ## Screenshots Not taken (no vanilla data to start the game). Repro from the issue: `/item replace entity @n[type=armor_stand] armor.chest with elytra`, look at the stand from behind. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:11:17 +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#5252
No description provided.