跳转至

Selection Box

文档版本:1.21.0.24

Defines the area of the block that is selected by the player's cursor. If set to true, default values are used. If set to false, this block is not selectable by the player's cursor. If this component is omitted, default values are used.

架构

selection_box:
boolean
selection_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
  }
}
originarray
Minimal position of the bounds of the selection box. "origin" is specified as [x, y, z] and must be in the range (-8, 0, -8) to (8, 16, 8), inclusive.
origin
0..0number
1..1number
2..2number
sizearray
Size of each side of the selection 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..0number
1..1number
2..2number