CalcMod
Plugin · by js802025 · 3.6M downloads · Minecraft 26.3
What is CalcMod?
CalcMod puts a calculator straight into Minecraft chat. Type /calc followed by a sum, for example /calc 3+(28/8)^2, and the answer appears instantly – no alt-tabbing to a browser while you plan a build. Beyond plain maths it knows a lot of Minecraft-specific shortcuts, which is where it really saves time. Any green text in a result can be clicked to copy it to your clipboard.
From CalcMod 1.6.0 you can also bind a key in the vanilla Controls menu to open /calc faster.
The calculator
/calc <expression> understands:
| Symbol | Operation |
|---|---|
+ – | Add, subtract |
* × ∙ | Multiply |
/ : ÷ | Divide |
^ | Power |
^^ | Tetration (repeated powers) |
! | Factorial |
# | Modulo (remainder) |
% | Percentage |
√ ∛ ∜ | Square, cube and fourth root |
The author keeps a spreadsheet of further advanced functions and variables you can use inside expressions. Run /calc variables to list the variables in game.
Variables
Variables work in any number field of any command, so you never have to remember that a double chest of 16-stackable items holds 864.
stack,sb(shulker box) anddub(double chest) are 64, 1,728 and 3,456 by default.- Add
16or1for other stack sizes –stack16= 16,sb16= 432,dub16= 864,sb1= 27,dub1= 54. The64versions are also there. - Without a suffix, the variable uses whatever stack size makes sense for the command.
- Time helpers –
min= 60 andh= 3,600 seconds. - Dynamic variables follow your player –
x,y,zandhealth– which is handy inside custom functions.
Minecraft commands
| Command | What you get |
|---|---|
/calc craft <item> [depth] <amount> | Every ingredient for that many crafts. Depth (1.3.2+, default 1) sets how many levels of sub-recipes to break down |
/calc craftinv <item> | How many you can craft from your inventory, shulker boxes included |
/calc nether / /calc overworld [x y z] | Matching portal coordinates in the other dimension (your position if left blank) |
/calc rates <items> <seconds> | Farm output in items per hour |
/calc storage <items per hour> | Minimum number of item sorters to keep up |
/calc storage <× hopper speed> <items> | Same, for faster-than-hopper sorters |
/calc allaystorage <items per hour> | Allay-based sorters for non-stackables |
/calc signaltoitems <container> <level> | Items needed for a comparator signal strength |
/calc barter togold / toitem | Average gold for a number of items, or average items from an amount of gold, when trading with piglins |
/calc dist [3d] <point> [second point] | Distance between two points, or from you; 3d includes height |
/calc random <max> / random minmax <min> <max> | Random whole number, both ends included (0 to max if only max is given) |
Most number fields accept expressions and variables, so you can type an amount such as sb or 2*stack instead of working the number out first.
Converters
itemtosb/sbtoitem– items ↔ full shulker boxes.itemtostack/stacktoitem– items ↔ stacks.secondstohopperclock– how many items a hopper clock needs for a given time (formula and clock design from hoppertimer.net).secondstorepeater– how many repeaters, at which delays, to reach a given time.
Custom functions
Save a formula once and reuse it anywhere a number is accepted. Parameters go in square brackets when you create it – for instance /calc custom add ingots [blocks]*9 – and you call it as ingots(72), either directly with /calc or inside another command. Manage them with custom run, custom list and custom remove. Avoid numbers, symbols or variable names in parameter names, as they can break the function.
Requirements and compatibility
This listing covers the Paper plugin build for Minecraft 1.21.5 to 26.3. The same project also exists as a mod for Fabric, Quilt, Forge and NeoForge, going back as far as Minecraft 1.12. It is MIT licensed.
Install it on the server so everyone can use /calc, or on your own client to use it anywhere, even on servers that do not have it.
Who will use it
Technical players building farms and sorting systems get the most out of it, but anyone who has ever counted how many blocks fit in shulker boxes will appreciate it. Browse more server tools in our plugin list.
FAQ
Does CalcMod need to be on the server?
No. It works on a client without the server having it, and on a server without clients having it. Install it wherever you want the /calc command.
How do I convert Overworld coordinates to the Nether with CalcMod?
Run /calc nether with the block position, or with no coordinates to use where you are standing. /calc overworld does the reverse.
Why does /calc craft not find some recipes?
Since Minecraft 1.21.3, the craft command in single player can only use recipes unlocked in your recipe book.
What does sb or dub mean in CalcMod?
They are built-in variables. sb is a full shulker box (1,728 items of a 64-stack item) and dub is a full double chest (3,456), with 16 and 1 suffixes for smaller stack sizes.
Gallery




Downloads by version
| Minecraft | Loader | Mod version | File | |
|---|---|---|---|---|
| 26.3 | Paper | 1.6.0+paper.26.3 | 0.4 MB | Download |
| 26.2 | Paper | 1.5.2+paper.26.2 | 0.4 MB | Download |
| 26.1.2 | Paper | 1.5.1+paper.26.1 | 0.4 MB | Download |
| 26.1.1 | Paper | 1.5.1+paper.26.1 | 0.4 MB | Download |
| 26.1 | Paper | 1.5.1+paper.26.1 | 0.4 MB | Download |
| 1.21.11 | Paper | 1.5.0+paper.1.21.9+ | 0.4 MB | Download |
| 1.21.10 | Paper | 1.5.0+paper.1.21.9+ | 0.4 MB | Download |
| 1.21.9 | Paper | 1.5.0+paper.1.21.9+ | 0.4 MB | Download |
| 1.21.7 | Paper | 1.4.2 | 0.4 MB | Download |
| 1.21.6 | Paper | 1.4.2 | 0.4 MB | Download |
| 1.21.5 | Paper | 1.4.2 | 0.4 MB | Download |
How to install this mod
- You need a Paper server (Paper recommended).
- Click “Download” to get the .jar for your server version.
- Copy it into the server’s
pluginsfolder. - Restart the server; config files live in
plugins/./
💬 Comments
✨ You might also like
VeinMiner
by Miraculixx
Mine the whole vein on mining a single ore/block. Make the tedious mining experience to something satisfying and fun! FTB Ultimine alternative
Simple Voice Chat
by henkelmax
A working voice chat in Minecraft!
Chunky
by pop4959
Pre-generates chunks, quickly and efficiently
VeinMiner Enchantment
by Miraculixx
Veinminer Addon - Adds vineminer enchantment to enchanting tables. Only tools with the enchantment can veinmine
JourneyMap
by mysticdrew
Real-time map used for mapping in-game or your browser as you explore.
WorldEdit
by me4502
A Minecraft Map Editor... that runs in-game! With selections, schematics, copy and paste, brushes, and scripting. Use it in creative, or use it temporarily in survival.