Dynamic
Provides a vec3 with dynamic coordinates.
Type ID: kaya:dynamic
Format
| Field | Type | Default | Description |
|---|---|---|---|
x |
Float Provider | The X coordinate of the point. | |
y |
Float Provider | The Y coordinate of the point. | |
z |
Float Provider | The Z coordinate of the point. |
Example
{
"type": "kaya:dynamic",
"x": {
"type": "kaya:vector/component",
"vector": {
"type": "kaya:entity/position",
"entity": "this"
},
"axis": "x"
},
"y": {
"type": "kaya:vector/component",
"vector": {
"type": "kaya:block/position",
"block": "broken_block"
},
"axis": "y"
},
"z": {
"type": "kaya:vector/component",
"vector": {
"type": "kaya:entity/position",
"entity": "this"
},
"axis": "z"
}
}
This example provides a vec3 where the X and Z coordinates are from the entity provided by the kaya:this_entity context parameter, and the Y coordinate is from the block provided by the kaya:broken_block context parameter.
History
| Minecraft | Mod | Changelog |
| 1.21.5 | 0.1.0 | Added the type. |