Repository navigation
Bend JSON Format
kltyton edited this page Dec 1, 2026
·
1 revision
Language: English | 中文
Place animation JSON files at:
assets/<namespace>/player_animations/<file>.json
The runtime animation ID is <namespace>:<key inside animations>.
All bend channels belong directly on real player bones (torso, right_arm, left_arm, right_leg, left_leg). Do not keep virtual *_bend helper bones in runtime JSON files.
Fully backwards compatible with Player Animation Library / playerAnimator. Equivalent to [x, 0, 0]:
{
"bones": {
"right_arm": {
"bend": 35
}
}
}If a bend object does not define rotation, position, scale, or pivot, it is parsed as the bend.rotation timeline:
{
"bones": {
"torso": {
"bend": [35, 10, -15]
},
"right_arm": {
"bend": {
"0.0": { "post": [0, 0, 0] },
"0.5": { "post": [35, 20, -15] },
"1.0": { "post": [0, 0, 0] }
}
}
}
}{
"bones": {
"left_arm": {
"bend": {
"pivot": [0, -4, 0],
"rotation": {
"0.0": { "post": [0, 0, 0] },
"0.5": { "post": [95, 60, -50] },
"1.0": { "post": [0, 0, 0] }
},
"position": {
"0.0": { "post": [0, 0, 0] },
"0.5": { "post": [2, 1, 0] },
"1.0": { "post": [0, 0, 0] }
},
"scale": {
"0.0": { "post": [1, 1, 1] },
"0.5": { "post": [1.25, 0.8, 1] },
"1.0": { "post": [1, 1, 1] }
}
}
}
}
}| Channel | Units | Default | Notes |
|---|---|---|---|
bend.rotation |
Degrees [x, y, z]
|
[0, 0, 0] |
X flows through native bend path; Y/Z layer seamlessly with continuous seam vertices & normal recalculation. |
bend.position |
Model pixels (16 px = 1 block) | [0, 0, 0] |
Offsets the lower bend segment without moving the upper limb joint. |
bend.scale |
Multiplier [sx, sy, sz]
|
[1, 1, 1] |
1 is original size. Negative scale automatically preserves triangle winding. |
bend.pivot |
Model pixels [px, py, pz]
|
Bone default | Custom pivot override for the bend deformation origin (1.3.0). |
- Keyframe formats supported:
[x, y, z],{"post": ...},{"pre": ..., "post": ...},{"vector": ...}, and{"value": ...}. - Keyframes are automatically sorted by timestamp on load.
- Molang string expressions (such as
"math.sin(query.anim_time * 360) * 25") are evaluated dynamically at runtime via PAL Molang 6.2 (1.21.1/26.x) or built-inPalMoreMolang(1.20.1).