Distance Between Vectors
Provides the distance between two vectors.
Type ID: kaya:distance_between_vectors
Format
| Field | Type | Default | Description |
|---|---|---|---|
first |
Vec3 Provider | The first vector. | |
second |
Vec3 Provider | The second vector. |
Example
{
"type": "kaya:distance_between_vectors",
"first": {
"type": "kaya:entity/position",
"entity": "this"
},
"second": {
"type": "kaya:block/position",
"block": "broken_block"
}
}
This example provides the distance between the entity provided by the kaya:this_entity context parameter and the block provided by the kaya:broken_block context parameter.
History
| Minecraft | Mod | Changelog |
| 1.21.5 | 0.1.0 | Added the type. |