ModTorch
CalcMod

CalcMod

Plugin · by js802025 · 3.6M downloads · Minecraft 26.3

Download ↓

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:

SymbolOperation
+ –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) and dub (double chest) are 64, 1,728 and 3,456 by default.
  • Add 16 or 1 for other stack sizes – stack16 = 16, sb16 = 432, dub16 = 864, sb1 = 27, dub1 = 54. The 64 versions are also there.
  • Without a suffix, the variable uses whatever stack size makes sense for the command.
  • Time helpers – min = 60 and h = 3,600 seconds.
  • Dynamic variables follow your player – x, y, z and health – which is handy inside custom functions.

Minecraft commands

CommandWhat 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 / toitemAverage 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

MinecraftLoaderMod versionFile
26.3Paper 1.6.0+paper.26.30.4 MB Download
26.2Paper 1.5.2+paper.26.20.4 MB Download
26.1.2Paper 1.5.1+paper.26.10.4 MB Download
26.1.1Paper 1.5.1+paper.26.10.4 MB Download
26.1Paper 1.5.1+paper.26.10.4 MB Download
1.21.11Paper 1.5.0+paper.1.21.9+0.4 MB Download
1.21.10Paper 1.5.0+paper.1.21.9+0.4 MB Download
1.21.9Paper 1.5.0+paper.1.21.9+0.4 MB Download
1.21.7Paper 1.4.20.4 MB Download
1.21.6Paper 1.4.20.4 MB Download
1.21.5Paper 1.4.20.4 MB Download

How to install this mod

  1. You need a Paper server (Paper recommended).
  2. Click “Download” to get the .jar for your server version.
  3. Copy it into the server’s plugins folder.
  4. Restart the server; config files live in plugins//.

💬 Comments

✨ You might also like

Supports
1.21.5 – 26.3
License
MIT
Updated
Source code
GitHub ↗