Resize
Resizes a box by adding the minimum and maximum bounds of another box.
Type ID: kaya:resize
Format
| Field | Type | Default | Description |
|---|---|---|---|
box |
Box Provider | The box to resize. | |
offset |
Box Provider | The other box to use for resizing the box. |
Example
{
"type": "kaya:resize",
"box": {
"type": "kaya:entity/bounds",
"entity": "this"
},
"offset": [
0.0,
0.0,
0.0,
1.0,
1.0,
1.0
]
}
This example provides the bounding box of the entity provided by the kaya:this_entity context parameter and expands it towards the positive X, Y, and Z axes by 1 block.
History
| Minecraft | Mod | Changelog |
| 1.21.5 | 0.1.0 | Added the type. |