BoxBreakShape
Breaks a solid rectangular cuboid of blocks oriented to the user's view direction.
Id
This field controls the type, it must be set to the constant value "Box" to function as this type.
Type information: Constant value: Box
Width
The size of the shape along the user's horizontal view axis (right).
Type information: Integer defaults to: 1
Height
The size of the shape along the user's vertical view axis (up).
Type information: Integer defaults to: 1
Depth
How many blocks deep the shape extends into the targeted surface. Defaults to 1.
Type information: Integer defaults to: 1
Centered
Whether the shape's width/height are centered on the targeted block. Defaults to true.
Type information: Boolean defaults to: true
Offset
Shifts the shape's center off the targeted block, in the view basis (x = right, y = up, z = into the surface). Rounded to whole blocks.
Type information:
Vector3d with the following properties:
| Key | Type | Description |
|---|---|---|
| X | Number defaults to: 0.0 | |
| Y | Number defaults to: 0.0 | |
| Z | Number defaults to: 0.0 |
Orientation
How the shape is oriented: 'View' (the dominant axis of the look direction, the default) or 'Surface' (into the targeted block face that the look ray hits).
Type information:
Any one of the following String (defaults to View):
| Name | Description |
|---|---|
"View" | |
"Surface" |
