Animation
A cosmetic always moves with the part of the body it’s attached to: a hat turns with the head, boots walk with the legs, a cape swings. Animation clips add movement inside the model, such as wings that flap or a tail that wags. A cosmetic doesn’t need any.
Clips are made in Blockbench or your 3D tool and saved with the model. In the Package Builder you choose which clip plays in which state.
States
The game picks one state for each player, from what they’re doing:
| State | When | Schema |
|---|---|---|
idle |
Standing still | 1 |
walk |
Moving on the ground | 1 |
sprint |
Sprinting | 1 |
sneak |
Sneaking, moving or not | 1 |
swim |
Swimming | 1 |
fly |
Flying in creative mode | 1 |
fall |
In the air and moving down | 1 |
sit |
Riding something | 1 |
jump |
In the air and moving up | 2 |
glide |
Gliding with an elytra | 2 |
attack |
One swing of the arm, played over the current state | 2 |
Sneaking, swimming and riding win over moving: a player sneaking forward is in sneak, not walk.
Fallbacks
A state without a clip of its own plays another state’s clip:
sprintuseswalk,jumpusesfallandglideusesfly; each of those, and every other state, usesidle.attackhas no fallback: without a clip, whatever is playing carries on.- With no
idleclip either, the model holds its rest pose and only moves with the player.
So a cosmetic with just idle and walk already reacts to every state. Add the others where they make a difference.
Clips
Each state names a clip and, in schema 2, how it plays:
| Setting | Default | Range |
|---|---|---|
| Clip | A clip in the model | |
| Plays | Loop | Loop repeats it; Once plays it to the end and holds the last frame while the state lasts. On attack, a clip that plays once runs to the end even when the swing is over. |
| Speed | 1 | 0.25 to 4 |
Playing once and speeds other than 1 need schema 2. The Package Builder sets the schema for you.
Blending and timing
- Blend (
playback.crossfade): when the state changes, the old pose blends into the new one over this many seconds. 0.2 is the default; 0 cuts straight over. Up to 1. - Timing (
playback.phase):- In step for every wearer (
shared, the default): the game works out one pose per state for the cosmetic, and everyone wearing it shows that pose. Two players walking side by side wag their tails in sync. A state that borrows another state’s clip plays it in step too; it doesn’t start a timing of its own. This is the cheapest choice. - Each wearer starts on their own (
per_wearer): each wearer’s clip starts when their own state starts, so nobody is in step.
- In step for every wearer (
Clients that don’t know these settings play everything in step.
Limits
- Up to 16 clips per model, each up to 10 seconds long.
- Up to 64 joints, if you use a skinned mesh.
- Clips can move, turn and scale any part of the model, and change morph targets. Linear, step and cubic spline keyframes all work.
- The size box is measured in the rest pose. Keep animated parts inside it too: moderators look at every state.
Blockbench step by step
Set up the bones
Put each part that moves on its own in a group: a wing, the head of a pet, each segment of a tail. Set each group’s pivot point where the part bends (a wing at the shoulder, a tail segment where it joins the one before). Groups inside groups move with their parent.
Make an animation
Open the Animate tab and add an animation. Name it after the state it’s for, such as idle or walk; names like animation.fox.walk work too. The builder maps clips named after a state for you.
Set the loop mode
Choose Loop for idle, walk, sprint, sneak, swim, fly, fall and sit. Choose Play once or Hold on last frame for jump and attack; the builder reads both as Once.
Add keyframes
Select a group, move the time marker and rotate, move or scale the group: Blockbench adds keyframes. For a smooth loop, make the last keyframe the same as the first, at the very end of the animation. Keep idle loops slow and small (2 to 4 seconds); match walk loops to a normal walking pace (about 1 second per step cycle).
Save and build
Save the model and add the .bbmodel to the builder. Its clips show up under Animations; check each state with the buttons under the preview and change the speed if a loop feels too fast or too slow.
What the conversion keeps: linear and step keyframes as they are, smooth (catmull-rom) curves sampled 24 times a second, and bezier keyframes as linear. Molang expressions such as math.sin(q.anim_time * 360) aren’t evaluated (they read as 0, or 1 for scale): type numbers instead. Sound, particle and timeline keyframes are left out. The builder lists anything it had to skip.
Other 3D tools
Each animation in the exported glTF file is a clip, under the name it has there. In Blender, each action you export becomes a clip with the action’s name. Bake constraints and drivers into keyframes before exporting.