Absolute
Provides the absolute value of a number value. If the number is negative, the negation of the number is provided.
Type ID: kaya:absolute
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 |
|---|---|---|---|
value |
Number Provider | The number to get its absolute value of. |
Example
This example is an int provider that will provide $25$ since the integer value is negative.
History
| Minecraft | Mod | Changelog |
| 1.21.5 | 0.1.0 | Added the type. |