122 lines
3.0 KiB
JSON
122 lines
3.0 KiB
JSON
{
|
|
"$id": "blockception.minecraft.behavior.blocks.minecraft.transformation",
|
|
"title": "Transformation",
|
|
"description": "Supports rotation, scaling, and translation",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"rotation": {
|
|
"title": "Rotation",
|
|
"description": "Amount in degrees the block should be rotated on each axis. \"rotation\" is specified as [x, y, z] using floating point values and must be axis aligned, otherwise the value will be rounded to the nearest axis-aligned value.",
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"title": "X",
|
|
"type": "number",
|
|
"default": 0
|
|
},
|
|
{
|
|
"title": "Y",
|
|
"type": "number",
|
|
"default": 0
|
|
},
|
|
{
|
|
"title": "Z",
|
|
"type": "number",
|
|
"default": 0
|
|
}
|
|
]
|
|
},
|
|
"scale": {
|
|
"title": "Scale",
|
|
"description": "Amount the block should be scaled along each axis. \"scale\" is specified as [x, y, z] using floating point values.",
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"title": "X",
|
|
"type": "number",
|
|
"default": 1
|
|
},
|
|
{
|
|
"title": "Y",
|
|
"type": "number",
|
|
"default": 1
|
|
},
|
|
{
|
|
"title": "Z",
|
|
"type": "number",
|
|
"default": 1
|
|
}
|
|
]
|
|
},
|
|
"translation": {
|
|
"title": "Translation",
|
|
"description": "Amount the block should be translated along each axis. \"translation\" is specified as [x, y, z] using floating point values.",
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"title": "X",
|
|
"type": "number",
|
|
"default": 0
|
|
},
|
|
{
|
|
"title": "Y",
|
|
"type": "number",
|
|
"default": 0
|
|
},
|
|
{
|
|
"title": "Z",
|
|
"type": "number",
|
|
"default": 0
|
|
}
|
|
]
|
|
},
|
|
"scale_pivot": {
|
|
"title": "Scale Pivot",
|
|
"description": "Offset to the pivot point around which to apply the scale. \"scale_pivot\" is specified as [x, y, z] using floating point values.",
|
|
"type": "array",
|
|
"default": [0, 0, 0],
|
|
"items": [
|
|
{
|
|
"title": "X",
|
|
"type": "number",
|
|
"default": 0
|
|
},
|
|
{
|
|
"title": "Y",
|
|
"type": "number",
|
|
"default": 0
|
|
},
|
|
{
|
|
"title": "Z",
|
|
"type": "number",
|
|
"default": 0
|
|
}
|
|
]
|
|
},
|
|
"rotation_pivot": {
|
|
"title": "Rotation Pivot",
|
|
"description": "Offset to the pivot point around which to apply the rotation. \"rotation_pivot\" is specified as [x, y, z] using floating point values.",
|
|
"type": "array",
|
|
"default": [0, 0, 0],
|
|
"items": [
|
|
{
|
|
"title": "X",
|
|
"type": "number",
|
|
"default": 0
|
|
},
|
|
{
|
|
"title": "Y",
|
|
"type": "number",
|
|
"default": 0
|
|
},
|
|
{
|
|
"title": "Z",
|
|
"type": "number",
|
|
"default": 0
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|