跳转至

Transformation

文档版本:1.21.50.25

Supports rotation, scaling, and translation

架构

transformation:
{
  array "rotation" : opt
  {
    number "0..0" : opt
    number "1..1" : opt
    number "2..2" : opt
  }
  array "scale" : opt
  {
    number "0..0" : opt
    number "1..1" : opt
    number "2..2" : opt
  }
  array "translation" : opt
  {
    number "0..0" : opt
    number "1..1" : opt
    number "2..2" : opt
  }
  array "scale_pivot" : opt
  {
    number "0..0" : opt
    number "1..1" : opt
    number "2..2" : opt
  }
  array "rotation_pivot" : opt
  {
    number "0..0" : opt
    number "1..1" : opt
    number "2..2" : opt
  }
}
rotationarray
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.
rotation
0..0number
1..1number
2..2number
scalearray
Amount the block should be scaled along each axis. "scale" is specified as [x, y, z] using floating point values.
scale
0..0number
1..1number
2..2number
translationarray
Amount the block should be translated along each axis. "translation" is specified as [x, y, z] using floating point values.
translation
0..0number
1..1number
2..2number
scale_pivotarray
Offset to the pivot point around which to apply the scale. "scale_pivot" is specified as [x, y, z] using floating point values.
scale_pivot
0..0number
1..1number
2..2number
rotation_pivotarray
Offset to the pivot point around which to apply the rotation. "rotation_pivot" is specified as [x, y, z] using floating point values.
rotation_pivot
0..0number
1..1number
2..2number