未命名¶
文档版本:1.21.0.24
Defines the area of the block that collides with entities. If set to true, default values are used. If set to false, the block's collision with entities is disabled. If this component is omitted, default values are used.
架构¶
minecraft:collision_box:
{
array "origin" : opt
{
number "<any array element>" : opt
}
array "size" : opt
{
number "<any array element>" : 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
<any array element>
: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
<any array element>
:number