Functions
Built-in mathematical functions
Important Version Notice
Following Hypixel SkyBlock's Modern Update, only Minecraft 1.21.9 - 1.21.11 are currently supported. Support for 1.21.9 will be removed soon. This mod will not receive updates for older versions. Please ensure you are using a supported version to avoid issues.
Available Functions
| Function | Description | Example | Result |
|---|---|---|---|
| sqrt(x) | Square root | sqrt(144) | 12 |
| abs(x) | Absolute value | abs(-50) | 50 |
| floor(x) | Round down | floor(3.9) | 3 |
| ceil(x) | Round up | ceil(3.1) | 4 |
| round(x) | Round nearest | round(3.6) | 4 |
Combining Functions
Functions can be nested:
sqrt(abs(-144)) = 12
round(sqrt(2500) + abs(-100)) / 2 = 75