Dynamic
Provides a box with dynamic bounds.
Type ID: kaya:dynamic
Format
| Field | Type | Default | Description |
|---|---|---|---|
min |
Vec3 Provider | Determines the minimum bounds of the box. | |
max |
Vec3 Provider | Determiens the maximum bounds of the box. |
Example
{
"type": "kaya:dynamic",
"min": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"max": {
"type": "kaya:dynamic",
"x": {
"type": "kaya:nbt",
"source": {
"type": "kaya:storage",
"id": "example:data"// (1)!
},
"path": "stuff[0]"
},
"y": {
"type": "kaya:nbt",
"source": {
"type": "kaya:storage",
"id": "example:data"// (2)!
},
"path": "stuff[1]"
},
"z": {
"type": "kaya:nbt",
"source": {
"type": "kaya:storage",
"id": "example:data"// (3)!
},
"path": "stuff[2]"
}
}
}
-
An example data storage with the following contents:
-
An example data storage with the following contents:
-
An example data storage with the following contents:
This example provides a box whose maximum bounds depend on the values of the first, second, and last elements from the stuff NBT of the example:data data storage.
History
| Minecraft | Mod | Changelog |
| 1.21.5 | 0.1.0 | Added the type. |