Recruits Skins: Custom Skins & Arm Models
On this page (6)
This guide explains how Recruits Skins reads files from config/recruits_skins/, validates them, detects classic versus slim arms, stabilizes skin assignment per Recruit, and layers player overlays alongside Recruits’ own clothing.
Installing Custom Skins
All custom skins live inside your Minecraft instance’s configuration folder:
<minecraft-instance>/config/recruits_skins/
Run /recruitsskins folder in game to print the exact absolute path on your machine.
Folder & Scanning Rules
- File type: Only regular
.pngfiles (case-insensitive extension) are loaded. - Subfolders: Enabled by default (
recursive = true, up tomaxScanDepth = 8directory levels). In defaultflatmode, subfolders are purely for your own organization; inrulesmode, pools match against each skin’s relative path. - Ignored automatically:
_README.txtin the root folder- Hidden files or directories starting with
. - macOS resource-fork directories (
__MACOSX) - Symbolic links (both symlinked folders and symlinked files are skipped so scans never escape the skin root)
- Non-
.pngfiles
- Reloading without restarting: Press F3+T or run
/recruitsskins reload. Scanning, PNG header checks, and image decoding happen on a background worker thread so large folders do not freeze the game, and textures are uploaded on the client render thread when ready. - Empty folder fallback: If
config/recruits_skins/has zero valid skins, Recruits Skins steps aside completely and Recruits renders with its built-in human textures.
Supported Format & File Diagnostics
Every .png file must pass both header validation and full image decoding:
| Requirement | Rule |
|---|---|
Dimensions |
Exactly 64 × 64 pixels (modern Minecraft skin format) |
Legacy 64 × 32 |
Rejected — convert pre-1.8 skins to 64x64 before adding |
HD / cape / animated skins |
Rejected ( 128x128, 64x128, etc.) |
File size |
Non-empty and at most maxFileSizeKiB (default 1024 KiB = 1 MiB) |
Total skin cap |
Up to maxSkinCount skins (default 512, configurable up to 4096) |
Path normalization |
Unique normalized key (lowercased, / separators, Unicode NFC) |
If a file fails validation, only that file is skipped — all neighboring valid skins still load. Run /recruitsskins status to see the rejection list and exact reason:
| Diagnostic Reason | What triggered it |
|---|---|
INVALID_PATH |
Path could not be normalized cleanly inside config/recruits_skins/ |
DUPLICATE_KEY |
Multiple files normalize to the same lowercase / key (e.g. Guard.png and guard.png on a case-sensitive OS); all conflicting files are skipped until renamed |
EMPTY_FILE |
File size is 0 bytes |
TOO_LARGE |
File size exceeds maxFileSizeKiB |
NOT_A_PNG |
Missing valid PNG signature or malformed IHDR header (e.g. renamed .txt/.jpg) |
LEGACY_DIMENSIONS |
64x32 pre-1.8 skin layout |
WRONG_DIMENSIONS |
Valid PNG whose dimensions are not 64x64 |
DECODE_FAILED |
Header passed, but NativeImage.read threw an error decoding pixel data |
COUNT_LIMIT |
Folder contains more than maxSkinCount valid skins; extras past the limit in sorted key order are skipped |
TEXTURE_FAILED |
OpenGL DynamicTexture upload failed on the client thread |
IO_ERROR |
File or directory could not be read due to permissions or filesystem I/O error |
Classic vs. Slim (Alex) Arm Detection
Recruits Skins supports both classic (4-pixel-wide arms) and slim / Alex (3-pixel-wide arms) player models, and lends the matching geometry to RecruitHumanRenderer for each frame a Recruit is drawn.
Because a PNG file has no metadata flag declaring its arm width, Recruits Skins determines the model in this priority order:
- Filename marker (highest priority): Ending the base filename (before
.png) with_slim,-slim,.slimor_classic,-classic,.classicforces that arm type regardless of parent folders or pixel contents. - Parent folder segment: Any folder segment named
slimorclassicalong the path forces that arm type for every skin inside it. - Config mode (
armModelDetectioninconfig/recruitsskins-client.toml):auto(default) — Checks the arm pixels that only a 4-pixel-wide classic arm uses:- Right arm side (
x: 52–55, y: 20–31) and top/bottom (x: 49–51, y: 16–19) - Left arm side (
x: 44–47, y: 52–63) and top/bottom (x: 41–43, y: 48–51) - If all of those texels are fully transparent (
alpha == 0), the skin is detected asslim; if any texel is non-transparent (including opaque RGB skins without an alpha channel), it is detected asclassic.
- Right arm side (
classic— Treats all unmarked skins as classic.slim— Treats all unmarked skins as slim.
config/recruits_skins/
├── royal_soldier_slim.png -> forced slim (filename suffix wins)
├── city_archer_classic.png -> forced classic (filename suffix wins)
├── slim/
│ ├── frontier_scout.png -> forced slim (folder segment)
│ └── knight_classic.png -> forced classic (filename suffix beats slim/ folder)
└── regional/
└── desert_ranger.png -> resolved by armModelDetection (auto pixel check)
[!TIP] If a slim skin was exported by an editor with solid pixels or background noise in the outer arm column, it will auto-detect as
classicand render with 1-pixel black/colored edges on its arms. Add_slimto the filename or place it in aslim/folder to fix it immediately, then run/recruitsskins reload.
If the slim ModelLayers.PLAYER_SLIM layer cannot be baked (for example, due to a broken resource pack), Recruits Skins logs a warning once and safely falls back to classic arms rather than leaving units unskinned.
Stable Skin Assignment (UUID Hashing)
Recruits Skins never picks skins by list index (skins[i]) and stores no per-entity save file. Instead, StableSkinSelector hashes:
- The Recruit’s UUID combined with
selectionSeed(via SplitMix64avalanche64) - The skin’s normalized relative path key (first 8 bytes of SHA-256 over the lowercased
/path)
This produces rendezvous (highest-random-weight) hashing, which gives you three practical guarantees:
- Persistent identity: A Recruit keeps the same skin across frames, chunk unloads, reconnects, and client restarts.
- Minimal disruption when editing your folder: Adding a new skin only updates the subset of Recruits that the new skin wins; removing a skin only reassigns Recruits who were wearing that deleted file. Everyone else keeps their existing face.
- Repainting vs. renaming:
- Editing pixels in place keeps the exact same filename/path key, so the exact same Recruits wear the updated pixels automatically (the texture resource location includes a content SHA-256 prefix so stale GPU textures are replaced cleanly on reload).
- Renaming or moving a file into another subfolder changes its
stableKey, which changes which Recruits win that skin.
[!NOTE] Promotions: Upstream Recruits promotes a unit by spawning a new entity with a new UUID and removing the old one. Because selection follows the entity UUID, a promoted Recruit is treated as a new unit and usually receives a new skin.
Outer Layers & Recruits’ Clothing Layers
Vanilla HumanoidModel (which Recruits normally uses) renders the head, hat, and base limbs, silently dropping a skin’s jacket, sleeves, and trousers. While a custom skin is active, Recruits Skins lends RecruitPlayerModel (ModelLayers.PLAYER / PLAYER_SLIM) for that draw call and appends RecruitPlayerSkinOuterLayer last so all five overlay parts render with partial-alpha translucency (RenderType.entityTranslucent) aligned with every attack, bow, crossbow, shield, musket, crouch, and mount pose.
At the same time, Recruits renders up to three clothing layers on human units. You control how custom skins coexist with them in [recruitsLayers] of config/recruitsskins-client.toml (and per rule in Contextual Skin Rules):
| Layer | Config Key | Default | What it draws & why the default works |
|---|---|---|---|
Team color layer |
teamOverlayMode |
"TEAM_ONLY" |
Draws team colors for teamed units and generic human_base_cloth.png for unteamed units. TEAM_ONLY keeps faction colors for readability while dropping the generic base outfit over unteamed skins. OFF hides both; UPSTREAM keeps both. |
Biome clothing |
applyBiomeOverlay |
false |
Draws Recruits’ full-body regional uniform. Off by default because it covers your custom skin almost completely. |
Companion cloth |
applyCompanionOverlay |
true |
Draws role markings on messengers, scouts, captains, and siege engineers. On by default so you can still spot specialists in a crowd. |
Player outer layers |
renderPlayerOuterLayers |
true |
Draws the skin’s jacket, sleeves, and trousers ( 0.25px outside the base body). Set false if opaque skin jackets hide team/companion cloth you want unobstructed. (The hat is part of the base model and always renders.) |
[!IMPORTANT] Fallback safety: None of the overlay suppression settings ever affect a Recruit without a custom skin. When the skin folder is empty, the mod is disabled, a rule specifies
action = "upstream", or Recruits renders a Corpse dummy, all three upstream clothing layers render untouched.