minecraft:transformation for you with a switch.Get GodCraftOverview
minecraft:transformation is a block component: it goes in the components object of a custom block. Moves, turns or resizes how the block looks, around the center of its space. Use it to face blocks in different directions with block states.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
translation | vec3 | [0,0,0] | How far to move the block on x, y and z. |
scale | vec3 | [1,1,1] | How much to stretch or shrink the block on each axis. 1 is normal size. |
scale_pivot | vec3 | [0,0,0] | The point the block grows or shrinks around. |
rotation | vec3 | [0,0,0] | Rotation on each axis in steps of 90 degrees, like [0, 90, 0]. |
rotation_pivot | vec3 | [0,0,0] | The point the block turns around. |
Example
Inside the components object of BP/blocks/<name>.json (values are the defaults or placeholders):
BP/blocks/<name>.json
{
"minecraft:transformation": {
"translation": [
0,
0,
0
],
"scale": [
1,
1,
1
],
"scale_pivot": [
0,
0,
0
],
"rotation": [
0,
0,
0
],
"rotation_pivot": [
0,
0,
0
]
}
}