Defines the area of the block that is selected by the player's cursor (the outline shown when looking at the block). If set to true, default values are used (a full 16x16x16 block). If set to false, this block is not selectable by the player's cursor. If this component is omitted, default values are used.
Note
This item requires a format version of at least 1.19.60.
Alternate Simple Representations
This item can also be represented as a Boolean true/false.
Selection Box Properties
| Name | Default Value | Type | Description | Example Values |
|---|---|---|---|---|
| origin | [-8, 0, -8] | x, y, z coordinate array | 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. | Block Red Shrub: [-8,0,-8] |
| size | [16, 16, 16] | x, y, z coordinate array | 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. | Block Red Shrub: [16,16,16] |
Samples
Block Fabricator
"minecraft:selection_box": true
Block Red Shrub
"minecraft:selection_box": {
"origin": [
-8,
0,
-8
],
"size": [
16,
16,
16
]
}