Box Component
Provides the component (min/max values) of a box from a specific side.
Type ID: kaya:box/component
Box components and sides
Each direction returns a specific component of a box:
| Direction | Component |
|---|---|
down |
The minimum Y component of the box. |
up |
The maximum Y component of the box. |
north |
The minimum Z component of the box. |
south |
The maximum Z component of the box. |
west |
The minimum X component of the box. |
east |
The maximum X component of the box. |
Format
| Field | Type | Default | Description |
|---|---|---|---|
box |
Box Provider | The box to get its component of. | |
side |
Direction Provider | The side of the box to get the component from. |
Example
{
"type": "kaya:box/component",
"box": {
"type": "kaya:entity/bounds",
"entity": "this"
},
"side": "up"
}
This example provides the maximum Y component of the bounding box of the entity provided by the kaya:this_entity context parameter.
History
| Minecraft | Mod | Changelog |
| 1.21.5 | 0.1.0 | Added the type. |