Math expressions - mchorse/chameleon GitHub Wiki
Besides setting different easing type and using keyframes, Blockbench animated models support math expressions using MoLang. MoLang supports besides basic arithmetic operations different math functions, ternary operators, logical operators, and so much more. See MoLang's documentation for more information.
There are also some variables that are available. GeckoLib provides following variables.
Chameleon exclusive variables
Beside that, Chameleon provides some unique variables of its own. See the table below.
Name | Description |
---|---|
query.head_yaw |
Horizontal rotation of entity's head. |
query.head_pitch |
Vertical rotation of entity's head. |
query.velocity |
Velocity of the entity in block units. |
query.limb_swing |
Overall limb swing of the entity. This variable is practically the distance entity traveled over its lifetime. You can use it for wheel rotation. |
query.limb_swing_amount |
Factor between 0 and 1 that signify the limb swing during walking. 0 no limb swing (i.e. standing still), 1 full on limb swing (i.e. moving). |
query.age |
Current age of the entity in ticks, i.e. for how many ticks did this entity exist. |