Modrinth · Minecraft mod
Mathematical calculation commands
A mod that provides some math functions that can be more easily used in the game. (Good for Datapack makers)
Quick answer
Which Mathematical calculation commands release should I use?
Mathematical calculation commands 1.0.1 targets 1.19, 1.19.1, 1.19.2 with Fabric, Quilt. Installation on the client is optional. Installation on the dedicated server is optional. 1 required mod needs a matching file.
Where it goes
Is Mathematical calculation commands required on the client, server, or both?
Installation on the client is optional. Installation on the dedicated server is optional.
The source marks this as usable on both the client and server.
What else does Mathematical calculation commands 1.0.1 need?
1.0.1. Change the file and its required mods may change too.
Install Fabric API first, but 1 required mod has no matching file for this setup. Do not mix loader builds to force a match.
We only count dependency files that match this setup. A file for another loader does not fill the gap.
Before you install it
Add Mathematical calculation commands without breaking your instance.
Built for Mathematical calculation commands 1.0.1. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use 1.0.1. It targets 1.19, 1.19.1, 1.19.2 with Fabric, Quilt; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
Install Fabric API first, but 1 required mod has no matching file for this setup. Do not mix loader builds to force a match.
- 03
Put it on the correct side
Installation on the client is optional. Installation on the dedicated server is optional.
- 04
Pick the file you checked
Use the “Get this file” button beside 1.0.1. It opens that exact file at the source.
About this project
What does Mathematical calculation commands add?
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
Project description from Modrinth.
Pick your setup
Mathematical calculation commands by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
1.19.2
2 loader builds1.19.1
2 loader builds1.19
2 loader buildsCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
Mathematical calculation commands versions and loaders
1.0.1
MinecraftMathLib-1.0.1.jar
23 Aug 2022
1.0.0
MinecraftMathLib-1.0.0.jar
21 Aug 2022
Looking for an older file? The official Modrinth project page is in Resources.