[PR #3004] [MERGED] feat(client): slim skins wear the slim player model #4751

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3004
Author: @feeldev12
Created: 10/27/2026
Status: ✅ Merged
Merged: 10/28/2026
Merged by: @rdbtCVS

Base: main ← Head: feat/slim-skins


📝 Commits (2)

  • 78c0283 fix(client): the first-person arm and the player models wear the player's own skin
  • 9fe3ddf feat(client): slim skins wear the slim player model

📊 Changes

7 files changed (+105 additions, -22 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+19 -7)
📝 crates/horizon-client/src/game/perspective.rs (+4 -1)
📝 crates/horizon-client/src/game/remote.rs (+50 -12)
📝 crates/horizon-client/src/mobs.rs (+3 -0)
📝 crates/horizon-client/src/mobs/render.rs (+4 -2)
📝 crates/horizon-client/src/mobs/species.rs (+1 -0)
📝 crates/horizon-client/src/skins.rs (+24 -0)

📄 Description

What and why

Fixes #2926: every player drew with the wide (classic) model, even with a slim skin.

Builds on #2980 (the first-person arm and the player models use the player's own skin). Its commit is the first one here. Once #2980 merges, this PR's own change is the last commit.

  • skins::Textures.slim: the SKIN texture's metadata.model is slim.
  • Mob.slim: PlayerSkin.model. render::body picks player_slim#main for a slim avatar. The slim layer is already in the prepared entity models; it's now loaded for players (player_type) and mannequins (layer_prefixes).
  • update_remote_skins: each player's skin comes with its model. Without a downloaded skin, the profile's default skin (DefaultPlayerSkin.get) keeps its own model, so Alex, Ari and the other slim defaults are slim again. That also drops #2980's default_model_skin, which only forced them wide because the model had no slim arms.
  • Mannequins: slim when their resolved skin is.
  • First-person arm: the slim model's right_arm for a slim local player.
  • humanoid_armor skips players and mannequins, whose armour the game's armour layers already draw. The slim key would otherwise have added a second set.

Vanilla reference

  • PlayerSkin.Model / SkinManager (MinecraftProfileTexture.getMetadata("model") → SLIM for "slim", else WIDE).
  • DefaultPlayerSkin.get(UUID): each default skin with its model.
  • EntityRenderers.createAvatarRenderers / AvatarRenderer: PlayerModel built from ModelLayers.PLAYER_SLIM for SLIM.
  • PlayerRenderer.renderRightHand: the arm of the skin's model.

Test: skins::tests::a_skins_model_comes_from_its_metadata. Checked in game on Windows with a slim account skin in single player: the third-person model, the inventory model and the first-person arm all show the 3-pixel arms.

Self-check

cargo fmt, cargo check -p horizon-client --all-targets and the new test pass. I didn't run the full pr_ready.py locally (it is slow on this machine); CI's verify covers it.


🔄 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/3004 **Author:** [@feeldev12](https://github.com/feeldev12) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/28/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `feat/slim-skins` --- ### 📝 Commits (2) - [`78c0283`](https://github.com/horizon-rust/horizon/commit/78c028321c740defe18db6ccd111fc542f4d2c0b) fix(client): the first-person arm and the player models wear the player's own skin - [`9fe3ddf`](https://github.com/horizon-rust/horizon/commit/9fe3ddfec3490907dbe1e7acf5b82f3ac03019f4) feat(client): slim skins wear the slim player model ### 📊 Changes **7 files changed** (+105 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+19 -7) 📝 `crates/horizon-client/src/game/perspective.rs` (+4 -1) 📝 `crates/horizon-client/src/game/remote.rs` (+50 -12) 📝 `crates/horizon-client/src/mobs.rs` (+3 -0) 📝 `crates/horizon-client/src/mobs/render.rs` (+4 -2) 📝 `crates/horizon-client/src/mobs/species.rs` (+1 -0) 📝 `crates/horizon-client/src/skins.rs` (+24 -0) </details> ### 📄 Description ## What and why Fixes #2926: every player drew with the wide (classic) model, even with a slim skin. **Builds on #2980** (the first-person arm and the player models use the player's own skin). Its commit is the first one here. Once #2980 merges, this PR's own change is the last commit. - `skins::Textures.slim`: the SKIN texture's `metadata.model` is `slim`. - `Mob.slim`: `PlayerSkin.model`. `render::body` picks `player_slim#main` for a slim avatar. The slim layer is already in the prepared entity models; it's now loaded for players (`player_type`) and mannequins (`layer_prefixes`). - `update_remote_skins`: each player's skin comes with its model. Without a downloaded skin, the profile's default skin (`DefaultPlayerSkin.get`) keeps its own model, so Alex, Ari and the other slim defaults are slim again. That also drops #2980's `default_model_skin`, which only forced them wide because the model had no slim arms. - Mannequins: slim when their resolved skin is. - First-person arm: the slim model's `right_arm` for a slim local player. - `humanoid_armor` skips players and mannequins, whose armour the game's armour layers already draw. The slim key would otherwise have added a second set. ## Vanilla reference - `PlayerSkin.Model` / `SkinManager` (`MinecraftProfileTexture.getMetadata("model")` → `SLIM` for `"slim"`, else `WIDE`). - `DefaultPlayerSkin.get(UUID)`: each default skin with its model. - `EntityRenderers.createAvatarRenderers` / `AvatarRenderer`: `PlayerModel` built from `ModelLayers.PLAYER_SLIM` for `SLIM`. - `PlayerRenderer.renderRightHand`: the arm of the skin's model. Test: `skins::tests::a_skins_model_comes_from_its_metadata`. Checked in game on Windows with a slim account skin in single player: the third-person model, the inventory model and the first-person arm all show the 3-pixel arms. ## Self-check `cargo fmt`, `cargo check -p horizon-client --all-targets` and the new test pass. I didn't run the full `pr_ready.py` locally (it is slow on this machine); CI's `verify` covers it. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:07: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#4751
No description provided.