Float
Compares two floats.
Type ID: kaya:float
Format
| Field | Type | Default | Description |
|---|---|---|---|
comparator |
Comparator | Determines how the floats are compared. | |
first |
Float Provider | The first float to compare to. | |
second |
Float Provider | The second float to be compared. |
Example
{
"type": "kaya:float",
"comparator": "==",
"first": {
"type": "kaya:power/cooldown/progress",
"power": "example:cooldown",
"entity": "this"
},
"second": 1.0
}
This example compares the cooldown progress of the example:cooldown power to 1.0, essentially checking if it's currently not in the progress of cooling down.
History
| Minecraft | Mod | Changelog |
| 1.21.5 | 0.1.0 | Added the type. |