Bring the power of calculation to your Minecraft chat with CalcMod! Enjoy features from simple calculations to advanced tools for optimizing gameplay.
| /calc 3+(28/8)^2 |
|---|
![]() |
| /calc craft piston 3 sb |
|---|
![]() |
| /calc nether ~ ~ ~ |
|---|
![]() |
Click any green text to copy it to your clipboard!
CalcMod supports Fabric, Forge, Quilt, Paper, and NeoForge mod loaders, down to Minecraft version 1.12.
CalcMod can be installed on both the client and server, and also works on clients without requiring servers to have the mod (and vice versa.)
See a few examples in gallery
🔢 Simple Calculator An intuitive calculator with some handy variables. To see a list of variables run /calc variables. Supported Operators | **Symbol(s)** | **Syntax** | **Operation** | |:-------------:|:----------:|:----------------------:| | + | a+b | Addition | | – | a–b | Subtraction | | * , × , ∙ | a*b | Multiplication | | / , : , ÷ | a/b | Division | | ^ | a^b | Exponentiation (power) | | ! | n! | Factorial | | # | a#b | Modulo | | % | x% | Percentage | | ^^ | a^^b | Tetration | | √ | √x | Square root | | ∛ | ∛x | Cube root | | ∜ | ∜x | Fourth root | > CalcMod has some more advanced functions and variables that can be used within expressions in [this spreadsheet](https://docs.google.com/spreadsheets/d/1L3jCFO6ZiUymXbRJKOJIWGpcOQjfvU3TpCcFPeUJDNA/edit?usp=sharing). >Usage: ```/calc ``` 📦 Storage Utils When given a rate of items per hour *(expressions allowed)*, returns the minimum number of item sorters needed to sort in time. Additional input for multiple times hopper speed sorters, and a separate command for Allay based non stackable sorters. >Usage: ```/calc storage ``` >Usage: ```/calc storage ``` >Usage: ```/calc allaystorage ``` 🛠️ Crafting Utils* When given an amount of a recipe to craft *(expressions allowed)*, returns all the items required to craft that quantity of the recipe. **(CalcMod 1.3.2+)** The optional depth argument specifies how many levels of recursive crafting to perform on the recipe. Default depth is 1. >Usage: ```/calc craft ``` >Usage: ```/calc craft ``` (New!) When the craftinv command is given an item, it returns the maximum number of that item the player can craft using their current inventory *(including items in shulker boxes)*. >Usage: ```/calc craftinv ``` **(Minecraft 1.21.3+)** Due to Minecraft's crafting system updates, CalcMod's craft command can now only use recipes unlocked in the user's recipe book in single player mode. 🌐 Portal Linking Coords When given a block position, returns the dimension in the command's corresponding coordinates. If no coordinates are given, command assumes current player position. >Usage: ```/calc nether ``` >Usage: ```/calc overworld ``` 🌾 Farm Rates Calculator When given an amount of items and a farm run time in seconds *(expressions allowed)*, returns the items per hour of the farm. >Usage: ```/calc rates ``` 🎲 Generate Random Number When given a maximum and/or minimum value, returns a random number between those values (inclusive). If just a maximum value is entered, picks a random number from 0 to the max value (inclusive). >Usage:```/calc random ``` >Usage: ```/calc random minmax ``` 💪 Comparator Power Level Finder When given a container and a desired comparator power level *(expressions allowed)*, returns the number of items needed to achieve that power level. >Usage: ```/calc signaltoitems ``` 🐷 Piglin Bartering Utils Calculates the average number of gold ingots needed to barter for a specific quantity of a desired item *(togold)*, or the average number of a desired item received when bartering a specific number of gold ingots *(toitem)*. >Usage: ```/calc barter togold ``` >Usage: ```/calc barter toitem ``` 🧭 Travel Distance Evaluator When given two block positions, returns the distance between them. If only one position is given, uses player's location. The 3D mode provides distance including height *(y coord)*. >Usage: ```/calc dist ``` >Usage: ```/calc dist ``` >Usage: ```/calc dist 3d ``` >Usage: ```/calc dist 3d ``` 🧮 Custom Functions Custom functions are reusable commands that perform a specific computation. Custom functions can be run in any number field formatted with the function name and its parameters in parentheses ```functionName(, ...,)```. **Creating a Function:** Custom functions can have any number of parameters, specified in [square] brackets when adding a function. |⚠️ Using any numbers, special characters, or variables in a parameter may result in a broken function.| |:-:| e.g. ```/calc custom add blockstoingots [numBlocks]*9``` | /calc blockstoingots(72) | |:-:| |  | >Usage: ```/calc custom add ``` >Usage: ```/calc custom run ``` >Usage: ```/calc ()``` >Usage: ```/calc custom list``` >Usage: ```/calc custom remove ```Variables can be used inside commands in any number field. They act as shortcuts instead of having to remember that "a double chest full of 16 stackable items is 864."
If no stack size is given, variables default to the contextualized stack size in each command.
📦 Storage Utils When given a rate of items per hour *(expressions allowed)*, returns the minimum number of item sorters needed to sort in time. Additional input for multiple times hopper speed sorters, and a separate command for Allay based non stackable sorters. >Usage: ```/calc storage ``` >Usage: ```/calc storage ``` >Usage: ```/calc allaystorage ``` 🛠️ Crafting Utils When given an amount of a recipe to craft *(expressions allowed)*, returns all the items required to craft that quantity of the recipe. **(CalcMod 1.3.2+)** The optional depth argument specifies how many levels of recursive crafting to perform on the recipe. Default depth is 1. **(Minecraft 1.21.3+)** Due to Minecraft's crafting system updates, CalcMod's craft command can now only use recipes unlocked in the user's recipe book in single player mode. >Usage: ```/calc craft ``` >Usage: ```/calc craft ``` 🌐 Portal Linking Coords When given a block position, returns the dimension in the command's corresponding coordinates. If no coordinates are given, command assumes current player position. >Usage: ```/calc nether ``` >Usage: ```/calc overworld ``` 🌾 Farm Rates Calculator When given an amount of items and a farm run time in seconds *(expressions allowed)*, returns the items per hour of the farm. >Usage: ```/calc rates ``` 🎲 Generate Random Number When given a maximum and/or minimum value, returns a random number between those values (inclusive). If just a maximum value is entered, picks a random number from 0 to the max value (inclusive). >Usage:```/calc random ``` >Usage: ```/calc random minmax ``` 💪 Comparator Power Level Finder When given a container and a desired comparator power level *(expressions allowed)*, returns the number of items needed to achieve that power level. >Usage: ```/calc signaltoitems ``` 🐷 Piglin Bartering Utils Calculates the average number of gold ingots needed to barter for a specific quantity of a desired item *(togold)*, or the average number of a desired item received when bartering a specific number of gold ingots *(toitem)*. >Usage: ```/calc barter togold ``` >Usage: ```/calc barter toitem ``` 🧭 Travel Distance Evaluator (New!) When given two block positions, returns the distance between them. If only one position is given, uses player's location. The 3D mode provides distance including height *(y coord)*. >Usage: ```/calc dist ``` >Usage: ```/calc dist ``` >Usage: ```/calc dist 3d ``` >Usage: ```/calc dist 3d ``` 🧮 Custom Functions Custom functions are reusable commands that perform a specific computation. Custom functions can be run in any number field formatted with the function name and its parameters in parentheses ```functionName(, ...,)```. **Creating a Function:** Custom functions can have any number of parameters, specified in [square] brackets when adding a function. |⚠️ Using any numbers, special characters, or variables in a parameter may result in a broken function.| |:-:| e.g. ```/calc custom add blockstoingots [numBlocks]*9``` | /calc blockstoingots(72) | |:-:| |  | >Usage: ```/calc custom add ``` >Usage: ```/calc custom run ``` >Usage: ```/calc ()``` >Usage: ```/calc custom list``` >Usage: ```/calc custom remove ```Usage:
/calc <expression>
Variables can be used inside commands in any number field. They act as shortcuts instead of having to remember that "a double chest full of 16 stackable items is 864."
If no stack size is given, variables default to the contextualized stack size in each command.
Optional
Optional
Terms for using, modifying and redistributing this product.
14.07.2026 · Modrinth
Screenshots and images from the original Modrinth page.














Published versions and original Modrinth files.
14.07.2026 · 127 downloads
14.07.2026 · 31 downloads
17.06.2026 · 95 694 downloads
-Updated to 26.2
- Other loaders coming soon!
17.05.2026 · 3 561 downloads
Updated to Minecraft 26.1
17.05.2026 · 257 downloads
17.05.2026 · 209 downloads
17.05.2026 · 59 970 downloads
28.03.2026 · 158 342 downloads
10.03.2026 · 7 181 downloads
10.03.2026 · 158 696 downloads
10.10.2025 · 7 467 downloads
10.10.2025 · 596 954 downloads
22.06.2025 · 610 downloads
Ported to Forge 1.21.6
17.06.2025 · 162 008 downloads
Updated to 1.21.6
17.06.2025 · 3 702 downloads
Ported to Paper 1.21.5
17.06.2025 · 259 downloads
Ported to Forge 1.21.5
17.06.2025 · 365 downloads
Ported to Forge 1.21.4
17.06.2025 · 112 217 downloads
Fixed an issue where recipes showed wrong variant.
27.04.2025 · 94 787 downloads
16.12.2024 · 142 952 downloads
Updated to 1.20.3 and 1.20.4
Due to Minecraft's crafting system updates, CalcMod's craft command can now only use recipes unlocked in the user's recipe book in single player mode.
13.06.2024 · 693 335 downloads
31.05.2024 · 9 919 downloads
04.10.2023 · 153 037 downloads
23.09.2023 · 4 352 downloads
23.09.2023 · 274 downloads
23.09.2023 · 281 downloads
23.09.2023 · 217 downloads
23.09.2023 · 1 432 downloads
23.09.2023 · 218 downloads
23.09.2023 · 1 336 downloads
23.09.2023 · 669 downloads
23.09.2023 · 49 963 downloads
23.09.2023 · 1 224 downloads
23.09.2023 · 656 downloads
23.09.2023 · 18 120 downloads
23.09.2023 · 889 downloads
23.09.2023 · 1 137 downloads
23.09.2023 · 1 765 downloads
23.09.2023 · 1 451 downloads
23.09.2023 · 296 800 downloads
11.06.2023 · 953 downloads
Added Signal to Items Command.
10.06.2023 · 18 080 downloads
Fixed some Craft command issues from 1.1.0.
Added Signal to Items Command
14.08.2022 · 333 downloads
04.08.2022 · 210 downloads
Made mod!