[PR #1566] [MERGED] Baby villagers wear their biome's clothes again #3594

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/1566
Author: @ludovic111
Created: 10/24/2026
Status: ✅ Merged
Merged: 10/24/2026
Merged by: @ludovic111

Base: main ← Head: fix/baby-villager-type-texture


📝 Commits (1)

  • e1052e1 Baby villagers wear their biome's clothes again

📊 Changes

1 file changed (+45 additions, -4 deletions)

View changed files

📝 crates/horizon-client/src/mobs/render.rs (+45 -4)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

What

Baby villagers and baby zombie villagers wear their biome's clothes again (desert, snow, taiga, and the rest).

Why

In 26.3, VillagerProfessionLayer takes a baby's type texture from getIdentifier(state.isBaby ? "baby" : "type", type), which is textures/entity/villager/baby/<type>.png (and entity/zombie_villager/baby/<type>.png). Horizon asked for entity/villager/type/baby/<type>. No such texture exists, so the atlas lookup failed and the type layer was skipped for every baby.

How

  • mobs/render.rs layers: the type layer's folder is baby for a baby and type otherwise.
  • The hat-visibility lookup in render_visible recognises the baby/ layer as the type layer too. Vanilla reads the hat metadata from type/ for both, and VillagerHats::apply already does that.
  • New test villager_layers_name_textures_that_exist: for villagers and zombie villagers, adult and baby, every type × profession at level 5, each layer layers names must be a PNG in the prepared resources, and a type (or baby) layer must be there. With the old path it fails: missing …/textures/entity/villager/type/baby/plains.png.

Tested

In-game on the Mac mini, server thread: baby zombie villagers (desert, taiga, snow) and baby villagers. Before: plain green or bare. After: their biome clothes. Screenshots: ~/code/horizon-parity/screenshots/villager-skins-1/{before,after}-server-thread-4-babies.png. Adults are unchanged.

pr_ready (tools/pr_ready.py --quick on ludovics-mac-mini, against origin/main at 535f2d2a0, 4 min 1 s)

Check Result
Scope ✅ 1 files, +45 −4
Cargo.lock ✅ unchanged
Public tree ✅ (1 s)
Python tests ➖ no Python change
rustfmt ✅ (4 s)
clippy ✅ (41 s)
tests: horizon-client ✅ 1206 passed (2 min 57 s)
doc tests ✅ 0 passed (1 s)
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ 104 affected, to run in CI (--quick): ambient_sound, arrow, audio_attributes, auto_jump, block_entity_anim, block_entity_render, block_entity_tickers, block_particles, block_removal, block_transformer, breaking_model, camera and 92 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

Parity: tools/parity.py --changed on one integration commit of both villager PRs (#1565 and #1566): 107 harnesses, 107 passed, 0 failed (16 min, Mac mini).

🤖 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/1566 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/24/2026 **Status:** ✅ Merged **Merged:** 10/24/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/baby-villager-type-texture` --- ### 📝 Commits (1) - [`e1052e1`](https://github.com/horizon-rust/horizon/commit/e1052e1bd37c7418879908fc0f23b80fc8a9f32e) Baby villagers wear their biome's clothes again ### 📊 Changes **1 file changed** (+45 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/mobs/render.rs` (+45 -4) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What Baby villagers and baby zombie villagers wear their biome's clothes again (desert, snow, taiga, and the rest). ## Why In 26.3, `VillagerProfessionLayer` takes a baby's type texture from `getIdentifier(state.isBaby ? "baby" : "type", type)`, which is `textures/entity/villager/baby/<type>.png` (and `entity/zombie_villager/baby/<type>.png`). Horizon asked for `entity/villager/type/baby/<type>`. No such texture exists, so the atlas lookup failed and the type layer was skipped for every baby. ## How - `mobs/render.rs` `layers`: the type layer's folder is `baby` for a baby and `type` otherwise. - The hat-visibility lookup in `render_visible` recognises the `baby/` layer as the type layer too. Vanilla reads the hat metadata from `type/` for both, and `VillagerHats::apply` already does that. - New test `villager_layers_name_textures_that_exist`: for villagers and zombie villagers, adult and baby, every type × profession at level 5, each layer `layers` names must be a PNG in the prepared resources, and a type (or baby) layer must be there. With the old path it fails: `missing …/textures/entity/villager/type/baby/plains.png`. ## Tested In-game on the Mac mini, server thread: baby zombie villagers (desert, taiga, snow) and baby villagers. Before: plain green or bare. After: their biome clothes. Screenshots: `~/code/horizon-parity/screenshots/villager-skins-1/{before,after}-server-thread-4-babies.png`. Adults are unchanged. **pr_ready** (`tools/pr_ready.py --quick` on ludovics-mac-mini, against origin/main at 535f2d2a0, 4 min 1 s) | Check | Result | | --- | --- | | Scope | ✅ 1 files, +45 −4 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ (1 s) | | Python tests | ➖ no Python change | | rustfmt | ✅ (4 s) | | clippy | ✅ (41 s) | | tests: horizon-client | ✅ 1206 passed (2 min 57 s) | | doc tests | ✅ 0 passed (1 s) | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ 104 affected, to run in CI (--quick): ambient_sound, arrow, audio_attributes, auto_jump, block_entity_anim, block_entity_render, block_entity_tickers, block_particles, block_removal, block_transformer, breaking_model, camera and 92 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | Parity: `tools/parity.py --changed` on one integration commit of both villager PRs (#1565 and #1566): **107 harnesses, 107 passed, 0 failed** (16 min, Mac mini). 🤖 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 04:10:40 +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#3594
No description provided.