CalcMod
Modby jsa2025
A calculator in your chat with shortcuts designed for Minecraft.
Type
Mod
CurseForge Downloads
39,484
CurseForge ID
655772
Modrinth Downloads
2,886,021
Modrinth ID
XoHTb2Ap
Last Updated
Jul 26, 2026
Description
|/calc 3+(28/8)^2| |:-:| |
|
|/calc craft piston 3 sb|
|:-:|
|
|
|/calc nether ~ ~ ~|
|:-:|
|
|
Click any green text to copy it to your clipboard! # ๐ Compatibility CalcMod supports [Fabric](https://fabricmc.net), [Forge](https://files.minecraftforge.net/net/minecraftforge/forge/), [Quilt](https://quiltmc.org/en), and [Paper](https://papermc.io/) 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.) # โ Features: See a few examples in [gallery](https://modrinth.com/mod/calcmod/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 ``` ### โก๏ธ Converters: Shulker Boxes โ Items When given an amount of full shulker boxes *(expressions allowed)*, returns the number of items they contain, or vice versa. >Usage: ```/calc itemtosb ``` >Usage: ```/calc sbtoitem ``` Items โ Stacks: When given an amount of stacks *(expressions allowed)*, returns the number of items in those stacks, or vice versa. >Usage: ```/calc itemtostack ``` >Usage: ```/calc stacktoitem ``` Seconds โ Hopper Clock Items When given a time in seconds *(expressions allowed)* returns the number of items to put in a hopper clock to achieve that time. *Uses formula and hopper clock from [hoppertimer.net](https://hoppertimer.net/).*  >Usage: ```/calc secondstohopperclock ``` Seconds โ Repeater Delay When given a time in seconds *(expressions allowed)*, returns the number of repeaters and their delays to achieve that time. > Usage: ```/calc secondstorepeater ``` # โ Variables 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. Constant Variables | **Name** | **Value** | |----------|---------------| | dub | 3456 (default)| | dub64 | 3456 | | dub16 | 864 | | dub1 | 54 | | sb | 1728 (default)| | sb64 | 1728 | | sb16 | 432 | | sb1 | 27 | | stack | 64 (default) | | stack64 | 64 | | stack16 | 16 | | stack1 | 1 | | min | 60 | | h | 3600 | > There are some extra less Minecraft specific variables listed in [this spreadsheet](https://docs.google.com/spreadsheets/d/1L3jCFO6ZiUymXbRJKOJIWGpcOQjfvU3TpCcFPeUJDNA/edit?usp=sharing) Dynamic Variables Dynamic variables change depending on an in-game status. These can be particularly useful inside custom functions. | **Name** | **Value** | |----------|----------------| | x | player x coord | | y | player y coord | | z | player z coord | | health | player health |
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. **(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 ``` ### โก๏ธ Converters: Shulker Boxes โ Items When given an amount of full shulker boxes *(expressions allowed)*, returns the number of items they contain, or vice versa. >Usage: ```/calc itemtosb ``` >Usage: ```/calc sbtoitem ``` Items โ Stacks: When given an amount of stacks *(expressions allowed)*, returns the number of items in those stacks, or vice versa. >Usage: ```/calc itemtostack ``` >Usage: ```/calc stacktoitem ``` Seconds โ Hopper Clock Items When given a time in seconds *(expressions allowed)* returns the number of items to put in a hopper clock to achieve that time. *Uses formula and hopper clock from [hoppertimer.net](https://hoppertimer.net/).*  >Usage: ```/calc secondstohopperclock ``` Seconds โ Repeater Delay When given a time in seconds *(expressions allowed)*, returns the number of repeaters and their delays to achieve that time. > Usage: ```/calc secondstorepeater ``` # โ Variables 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. Constant Variables | **Name** | **Value** | |----------|---------------| | dub | 3456 (default)| | dub64 | 3456 | | dub16 | 864 | | dub1 | 54 | | sb | 1728 (default)| | sb64 | 1728 | | sb16 | 432 | | sb1 | 27 | | stack | 64 (default) | | stack64 | 64 | | stack16 | 16 | | stack1 | 1 | | min | 60 | | h | 3600 | > There are some extra less Minecraft specific variables listed in [this spreadsheet](https://docs.google.com/spreadsheets/d/1L3jCFO6ZiUymXbRJKOJIWGpcOQjfvU3TpCcFPeUJDNA/edit?usp=sharing) Dynamic Variables Dynamic variables change depending on an in-game status. These can be particularly useful inside custom functions. | **Name** | **Value** | |----------|----------------| | x | player x coord | | y | player y coord | | z | player z coord | | health | player health |
Compatibility
Mod Loaders
Game Versions
Screenshots
Similar Mods
Glassential
Various types of glass to aid in your building.
TexTrue's Embeddium Options
Unofficial port of Reese's Sodium Options to work with Embeddium on MinecraftForge/NeoForge.
ItemPhysic Lite
#spinning
Angel Ring
This mod adds an angel ring, which allows you to fly like in creative mode for 1.14+. Inspired by Extra Utilities.
FastQuit
Lets you return to the Title Screen early while your world is still saving in the background!
AIOT Botania
This mod adds AIOTs to Botania.
Included in Modpacks
Sodium Plus
Re-Console+
LebaneseMC
nClient
Dark's simple QoL
Refined Vanilla
Trusted Modded
Adaptive
Pibblecraft
Sestain's Optimizations
Builders Essentials
Wxrlds's Optimisations
Mihuco's Modpack
Farwater: Create Basics
EMF
Vanilla QOL Improved
Ultra Turbio
Redstone Witch [Lite]
pseudofred's Vanilla+
Core Enhancements
The True Vanilla
Client+
Schleichi's Mods
Steve Fans
Smolder's Ultimatum
OptiCore
HCT - Hexandcube's Client Tweaks
Ekaii Plus
Aura
Vital Modpack
Smooth Journey (Lite Version)
Smooth Journey
Skyblock essentials (SE)
JS Life+
Vanilla Boosted
Jannes Modpack
andrzejczakpack
Unstable SMP Recreation
Youtubers Essentials
Fabulous
Modded Bridge
iAstra17's Vision
Optimal Survival
NixoCraft 5
Additive
BasicCraft
Console Refined
Ultimately Optimized - Vanilla but Better!
Cherry Vanilla
VanillaEnhanced
DragLed Optimized
SurShield Everyone
BetterVanilla SMP ModPack