Box Size
Provides the size of a box.
Type ID: kaya:box/size
Info
The size of the box is calculated by the following formula: $(Size = ((Max_x - Min_x) + (Max_y - Min_y) + (Max_z - Min_z)) \div 3.0)$
Format
| Field | Type | Default | Description |
|---|---|---|---|
box |
Box Provider | The box to get the size of. |
Example
This example provides the size of the bounding box from the entity provided by the kaya:projectile_entity context parameter.
History
| Minecraft | Mod | Changelog |
| 1.21.5 | 0.1.0 | Added the type. |