Description
Chat Client-Side Calculator
A simple, powerful and lightweight calculator mod for use in modern Minecraft. Do quick maths in-game without wasting time and energy, using custom variables and functions for even more speed.
Features
- Easy to Use
-
- To perform a calculation, simply prefix a chat message with '='.
- Pressing '=' will automatically open the chat ready to calculate.
-
- Custom Variables and Functions
-
- Save any commonly used numbers and write your own reusable functions.
- Perfect for planning projects, like builds or even redstone.
- You can even use the last calculation result with the 'ans' variable for extra speed.
-
- Instant Portability
-
- Your saved variables and functions are stored in your config folder, allowing you to use them anywhere.
- This allows your calculator setup to follow you across all singleplayer world and multiplayer servers.
-
- Client-Side Only
-
- Safe to use on any server, modded or otherwise with no server interaction ever.
-
Why use this mod?
Whether you're:
- Designing complex redstone contraptions
- Calculating resource costs for a building project
- Or just need a nifty little calculator for occasional use
... this mod can help you save time and stay accurate.
Example Usage
How much cobblestone is 16 stacks + 43 items?

How deep do I need to make a 3x3 hole to gather at least 2598 cobblestone?
How do I use the custom variables and functions?

As an example of how helpful the custom functions can be, a very simple distance function can be made with the command below, which can take two sets of coordinates and find the distance between them. By either directly modifying the function, or creating another that uses it, players can have an easy way to tell how far they are from important landmarks, like their base, a nether fortress or a stronghold, which is a helpful feature when travelling.
/calc func set dist sqrt(abs(a-d) ^ 2 + abs(b-e) ^ 2 + abs(c-f) ^ 2)
What variables / functions are built in for me to use?

Help
Using the /calc command, you can easily list, set and remove both variables and functions with minimal effort. There is a picture that documents each command and its function for easy reference.
You can also manually edit both variables and functions in the "chat-calc.toml" file in your installations config folder. You can swap out this file to allow for instant copying of variables and functions between installations as well.
I hope to keep this mod updated with different minecraft versions so I can use this mod in my own modpacks. As such, I will try to keep on top of any bugs and will not update the mod to a new version or another modding framework unless I have a personal interest in doing so. Feel free to fork the project to update to a missing version.


