-
Notifications
You must be signed in to change notification settings - Fork 4
Adding CustomTransform behavior
Dana edited this page Apr 3, 2026
·
5 revisions
Important
Make sure to familiarize yourself with the library's syntax: Attribute‐based Matching
Allows you to set custom transform for attribute-typed item/block.
Add the following behavior:
Note
Everything listed below can only be used in behavior's own properties
transforms
Supported transforms:
- GuiTransform
- TpHandTransform
- TpOffHandTransform
- GroundTransform
Example:
"transforms": {
"guiTransform": {
"key-value": {
"translation": { "x": 1, "y": 0, "z": 0 },
"rotation": { "x": 120, "y": 41, "z": 7 },
"origin": { "x": 0.5, "y": 0.11, "z": 0.5 },
"scale": 2.55
},
"key2-value2": {
"translation": { "x": 2, "y": 1, "z": 0 },
"rotation": { "x": 150, "y": -38, "z": 0 },
"origin": { "x": 0.5, "y": 0.1, "z": 0.5 },
"scale": 3.5
}
}
}extraTransforms
Supported transforms include all vanilla and modded transforms except transforms mentioned above.
Some of those include (the list is not exhaustive):
- onShelfTransform
- onDisplayTransform
- groundStorageTransform
- onTongTransform
- onscrollrackTransform
- inTrapTransform
- inMouthTransform
Example:
"extraTransforms": {
"onshelfTransform": {
"key-value": {
"translation": { "x": -0.03, "y": 0, "z": 0 },
"origin": { "x": 0.5, "y": 0, "z": 0.5 }
}
},
"groundStorageTransform": {
"key-value": {
"translation": { "x": 0, "y": 0.015, "z": 0 },
"rotation": { "x": 0, "y": 33, "z": 0 }
}
}
}