Bones, pivots and keyframes
A Bedrock model is made of bones. Each bone holds one or more cubes and has a pivot, the point it turns around. An animation is a list of keyframes: at this time, this bone is rotated, moved or scaled by this much. Minecraft fills in the movement between keyframes.
The pivot matters more than anything else. A leg with its pivot at the hip swings like a leg. The same leg with its pivot in the middle of the body swings around the whole mob. When a part moves strangely, look at the pivot first.
Looping and one-shot animations
An animation can loop, like breathing or a tail that keeps swaying, or play once, like an attack swing. In the animation file that is the loop setting. Which one plays at a given moment is not decided in the animation file at all. That is the job of the client entity and the animation controllers.
Animating by hand
The usual route is a model editor with a timeline, such as Blockbench. You select a bone, set keyframes and export a .animation.json file. Then you wire it up yourself:
- Give the animation a short name in the client entity.
- Start it under
scripts.animate, or list it in a state of an animation controller. - Write the Molang condition that says when it should play.
If a short name is missing or misspelled, nothing plays and Minecraft may not show an error on screen. Bedrock animation controllers explained walks through the wiring.
Animating in Mobloom
- Pick a block. Open the Move tab and choose the part you want to move. It can be any block, not only legs, tails or wings.
- Make it movable. Mobloom turns the block into a moving part with its own turning point.
- Choose a motion. Start from a ready-made one such as Wave, Sway, Curl or Snap, or make your own.
- Snap poses or record. For your own motion, move the part and snap each pose, or record live while you move it yourself.
- Choose when it plays. All the time, while traveling, while resting, or once when the mob appears.
- Preview and export. Watch the motion in the maker, then make the .mcaddon from the Minecraft tab.
A motion you make from poses needs at least two of them. The travel between poses can be smooth or snappy. On export, your motions become the animation file, and the "when it plays" choices become animation controllers. You do not write keyframes, short names or Molang.
Common problems
- A part swings around the wrong point. That is a pivot problem. By hand, move the bone's pivot to the joint. In Mobloom, move the part's turning point in Advanced.
- The animation does not play. By hand, this is usually a short name that was never declared, or a controller that was never started.
- The motion plays all the time when it should not. The condition is missing or always true. A controller with two states fixes it.
- The motion looks different in Minecraft. The maker shows the motion itself. Swimming, chasing and taming happen in Minecraft, so always check there too.
Night and special moments
In Mobloom a motion can also be played by a rule. Add a rule such as "when it's night, play motion" in the Code tab and the export gets a small night controller that switches the motion on after dark and off again in the morning. The same works for day, for rain and for every so often.
New to the file side of this? What files does a custom Bedrock mob need? lists every file, and Make a Bedrock mob without writing JSON shows the whole route from first block to spawn egg.
Questions
Why does my mob's leg rotate from the wrong place?
The bone's pivot is in the wrong spot. Put the pivot where the joint should be, such as the hip, and the leg will swing from there.
Do I need Molang to animate?
Not for simple keyframes. You need it once you want conditions or maths, such as playing a motion only at night. Mobloom writes those conditions for you.
Can I animate on an iPad?
In Mobloom, yes. You pose and record motions by touch in the browser.