Mathematical calculation commands
A mod that provides some math functions that can be more easily used in the game. (Good for Datapack makers)
About this Mod
Minecraft Math Lib
A mod that provides some math functions that can be used in-game more easily. (suitable for datapack makers)
Futures
Commands
Math
Usage:
/math <name1> <objective1> <operation> <name2> <objective2>
perform operations.
The following operations are currently supported:
- Plus (
+) - Minus (
-) - Multiplication (
"*") - Division (
"/") - Max (
max) - Min (
min) - Average (
middle) =cos/=sin/=tan/=sqrt
Please note: these will change the value of the first provided scoreboard- Mod (
"%") - Power (
"^")
The output result will be output in the chat bar. If the value of the scoreboard has not been modified, you can store it with execute store result.
If the value is modified this value will remain constant.
Note that all operations are rounded up, as the Minecraft scoreboard doesn't support decimals!
Random
Usage:
/random <min> <max> or /random <min_name> <min_objective> <max_name> <max_objective>
Get a random integer between the minimum and maximum values.
Support Languages
- English
- Simplified Chinese
Translations are welcome: https://github.com/wifi-left/Minecraft-Math-Lib/tree/master/src/main/resources/assets/mathlib/lang
Available Versions
How to Install Mathematical calculation commands on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set fabric Loader
In the panel under "Egg", select the fabric loader and matching Minecraft version (1.19.2).
Install Mod
Open the mod browser in the dashboard and search for "Mathematical calculation commands". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.19.2, 1.19.1, 1.19
Server-side
~ OptionalRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
Mathematical calculation commands server crashes on startup – what to do?
Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.19.2). You can switch loaders with one click in the panel.
Is Mathematical calculation commands compatible with fabric and quilt?
Mathematical calculation commands officially supports fabric, quilt for Minecraft 1.19.2, 1.19.1, 1.19. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with Mathematical calculation commands – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Mathematical calculation commands consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install Mathematical calculation commands with just one click on your server.