Repository navigation
Texture variation

Give a model seasonal skins, change its eye color during an animation, or randomize its appearance when it spawns. A single bone can use several texture groups at once.
Name each texture using namespace:path. The namespace names the group, and the path names one choice within that group. For example, skin:winter selects the winter texture from the skin group.
| Texture name | Group | Behavior |
|---|---|---|
claws or default:claws
|
default |
Stays fixed when dynamic selections change. |
skin:summer, skin:winter
|
skin |
Provides two interchangeable skins. |
eyes:blue, eyes:amber
|
eyes |
Provides two eye colors, independent of the skin. |
Assign a texture from each group to the faces that should use it. For example, assign skin:summer to the head and eyes:blue to the eyes. Keep the same UV layout across alternatives within a group so each face samples the intended part of every texture.
The first texture in each group is its initial selection. With the example above, a single bone supports all four skin-and-eye combinations. Switching to skin:winter keeps the current eye color. The generated variants inherit their geometry from a shared Minecraft parent model, so each combination only needs texture overrides.

Add a script keyframe at the moment the appearance should change. Use texture to select one named texture. For example, put these scripts on two keyframes:
| Keyframe | Script | Result |
|---|---|---|
| First change | texture{texture=skin:winter} |
Switches to the winter skin and keeps the current eye color. |
| Second change | texture{texture=eyes:amber} |
Switches to amber eyes and keeps the winter skin. |
Use updatetexture to change all dynamic groups on the affected bones in one operation:
-
updatetexture{command=init}restores the first texture in each group. -
updatetexture{command=shuffle}picks a texture independently for each group. A group can roll its current texture again.
Use bm:texture for a named selection and bm:updatetexture for init or shuffle. Add part to target a specific bone.
Skills:
- bm:texture{texture=skin:winter;part=head}
- bm:texture{texture=eyes:amber;part=head}These two mechanics give the head bone winter skin and amber eyes, assuming its faces reference both groups. To randomize that bone’s dynamic groups on spawn, use:
Skills:
- bm:updatetexture{command=shuffle;part=head} ~onSpawnTo restore its initial appearance later, use bm:updatetexture{command=init;part=head}.