Mathematical calculation commands

Mathematical calculation commands

Mod

A mod that provides some math functions that can be more easily used in the game. (Good for Datapack makers)

Client or server Utility

115 downloads
3 followers
Created2 years ago
Updated2 years ago

Follow Save
Host your Minecraft server on BisectHosting - get 25% off your first month with code MODRINTH.

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

External resources



Project members

wifi-left

Owner


Technical information

License
CC0-1.0
Client side
optional
Server side
optional
Project ID