Skip to main content

Module format

Module format 

Source
Expand description

The source formats: .ymodel (a skeleton of bones with cubes) and .yanim (clips of keyframes). Java model space — pixels, y down, as CubeListBuilder and PartPose (what Blockbench’s “Modded Entity” makes); angles in degrees.

Structs§

AnimFile
A .yanim: clips by name.
BoneDef
A bone: a pivot, a rest turn, cubes, and points to follow (locators).
ClipDef
One animation.
CubeDef
A box (addBox), textured box-UV from uv.
KeyDef
A keyframe: [x, y, z], or { "value": [x, y, z], "ease": "smooth" }.
ModelFile
A .ymodel.
TracksDef
A bone’s keyframes: time in seconds ("0.25") → value.

Enums§

Ease
How a keyframe goes to the next one.
Loop
What a clip does when it runs past its end.