Max
Gets the highest number from all the number values and uses it as the provided number value.
Type ID: kaya:max
Note
This number meta type can only provide the same kind of value of the field where it was used. (e.g: if the field is a float provider, the number provider to specify should be a float provider or if the field is an int provider, the number provider to specify should be an int provider)
Format
| Field | Type | Default | Description |
|---|---|---|---|
values |
Array of Number Providers | The numbers to get the highest number from. |
Example
This example is an int provider that will get the highest integer between the food level of the player provided by the kaya:this_entity context parameter and $1$.
History
| Minecraft | Mod | Changelog |
| 1.21.5 | 0.1.0 | Added the type. |