Collision Box¶
文档版本:1.21.50.25
This component can be specified as a Boolean. If this component is omitted, the default value for this component is true, which will give your block the default values for its parameters (a collision box the size/shape of a regular block).
架构¶
collision_box:
{
array "origin" : opt
{
number "0..0" : opt
number "1..1" : opt
number "2..2" : opt
}
array "size" : opt
{
number "0..0" : opt
number "1..1" : opt
number "2..2" : opt
}
}
origin
:array- Minimal position of the bounds of the collision box. origin is specified as [x, y, z] and must be in the range (-8, 0, -8) to (8, 16, 8), inclusive.
origin
0..0
:number
1..1
:number
2..2
:number
size
:array- Size of each side of the collision box. Size is specified as [x, y, z]. origin + size must be in the range (-8, 0, -8) to (8, 16, 8), inclusive.
size
0..0
:number
1..1
:number
2..2
:number