Building a Model
Make a mannequin model in Blockbench for ModelEngine. A mannequin file puts it in the picker.
The steps
- Copy
mannequin.bbmodelfrom the download'sModelEngine/blueprints/ArmorStand/folder. - In project settings, set a new File Name, such as
mannequin_gold, and save under that name. The File Name is the model id. - Change cubes and textures freely. Keep the pivots of the posed bones, as in the table below.
- Put the
.bbmodelin ModelEngine's blueprints folder and run this command:/meg reload models - Put the model id in a mannequin file's
model:, then run/boxstand reload.templatetakes another variant's name, and copies what this variant leaves out from it:# mannequins/mannequin.yml variants: gold: model: mannequin_gold # the File Name from step 2 template: wooden # copies wooden's icon, defaults and animations - Put the model on a stand. Console lines that start with
[bones]name any posed bones that are missing. They show once for each model, the first time a stand wears it after the server starts.
| Bone | Pivot (x, y, z) |
|---|---|
head, body |
0, 23, 0 |
left_arm, right_arm |
-5, 22, 0 and 5, 22, 0 |
left_leg, right_leg |
-1.9, 13, 0 and 1.9, 13, 0 |
The model faces north: the figure's own left is -X.
Bones
The bone names are set in mannequin.bones. If your model names a bone in another way, write that name there:
# config.yml
mannequin:
bones:
left-arm: arm_l # your model calls its left arm arm_l
| Bone | BoxStand |
|---|---|
head, body |
Head and body poses turn them |
left_arm, right_arm |
Arm poses turn them. Arms off hides them |
left_leg, right_leg |
Leg poses turn them |
baseplate |
Never turns. Base Plate off hides it |
hitbox |
The one-cube hitbox players click and punch |
- Never nest posed bones. A posed bone inside another turns twice and leaves its armor behind.
- Plain bones may hold posed ones. Children of a posed bone move with it.
- Any bone may be left out, and BoxStand then skips that part.
- Put arm and base plate cubes directly in their bones, so the Arms and Base Plate buttons hide them.
headneeds noh_orhi_tags.
Animations
| Animation | Named in | Loop mode | Override |
|---|---|---|---|
| Rest pose | pose.default-animation, default idle |
Loop | Off |
| Slot animation, any name | The mannequin file's animations: |
Play Once | Off |
A slot animation is named in the mannequin file, under the slot it plays for:
# mannequins/mannequin.yml
variants:
gold:
model: mannequin_gold
animations:
helmet: wear_helmet # an animation of your model, set to Play Once
- Set Loop mode and Override by right-clicking the animation in Blockbench.
- The rest pose has one keyframe per bone, at time 0. Posed bones without a keyframe use
pose.default. - On posed bones, use rotation only, because armor ignores moves and scales.
- Other Loop mode and Override settings break the animation: a Play Once rest pose wears off, Override drops the pose, and a slot animation on Loop never stops.
- Slot animations have keyframes only on the bones they move.
Borrowing animations
model:animation, such as mannequin:wear_helmet, plays another model's slot animation:
# mannequins/mannequin.yml
variants:
gold:
model: mannequin_gold
animations:
helmet: mannequin:wear_helmet # wear_helmet of the shipped mannequin model
- Bones are matched by their Blockbench id, so borrowing works on copies of that model. A bone that was deleted and made again no longer moves.
- Each model needs its own rest pose. Which animation plays when both models have one of that name: Animation names.
Models for the head, wear and balloon slots
These models need no mannequin bones. Build head and wear models on a player-sized figure at the origin, facing north.
| Bone | Slot | BoxStand |
|---|---|---|
h_ or hi_ head bones |
Wear | Turn with the head pose |
h_ or hi_ head bones |
Head | Stay at rest. The whole model turns |
l_handle |
Balloon | Ties the lead (balloon.model.leash-bone) |
hitbox |
Balloon | Bumps other balloons |
If your balloon model ties its lead to a bone with another name, write that name without l_:
# config.yml
balloon:
model:
leash-bone: "string" # the lead ties to the bone l_string
- The origin sits at the feet, plus the slot's
model.offset. - On Minecraft's Mannequin entity, head and wear models are drawn at 15/16 size, as the game draws the figure itself. On armor stands, head models sit a pixel lower, like a helmet.
- On a Mannequin entity of another plugin, the head bones of a wear model follow its head while it stands upright.
- These models play
model.animations. Bones whose name contains the word inmodel.emissive-bone,emissiveas shipped, glow in every model.