All Mods Resource Packs Data Packs Shaders Modpacks Plugins
Chat Calc

Chat Calc

by Rime • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

This is a port of ChatCalc by RTTV (which is also a port of ChatCalc by Kokeria) to the newest minecraft versions, because it hasn't been updated in a long time. It's also completely converted from Java to Kotlin, just because I can.

The functionality hasn't changed much, so you can check the original mod's description. There is, however, an additional dependency - Fabric Language Kotlin - which is needed for Kotlin to work.

I do plan on adding some features later, such as better config handling and allowing calculations in text fields other than chat, like signs (done), books, anvils etc. They aren't available yet, though. If there's anything else that you want to see in the mod, please create an issue on github.


Promo banner for bisect hosting. Use code `rime` to get 25% off your first order! Click to open the site.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
1.21.10
Fabric
2d ago 1
1.21.9
Fabric
2d ago 1
1.21.8
Fabric
2d ago 1
1.21.7
Fabric
2d ago 1
1.21.6
Fabric
2d ago 1
1.21.6
Fabric
2d ago 1
1.21.x 1.20.x
Fabric
2d ago 1
1.21.x 1.20.x
Fabric
2d ago 1
1.21.x 1.20.x
Fabric
2d ago 1
1.21.x 1.20.x
Fabric
2d ago 1
1.21.x 1.20.x
Fabric
2d ago 1
1.21.x 1.20.x
Fabric
2d ago 1
1.21 1.20.x
Fabric
2d ago 1
1.21 1.20.x
Fabric
2d ago 1
1.21 1.20.x
Fabric
2d ago 1
1.21 1.20.x
Fabric
2d ago 1
1.20.x
Fabric
2d ago 1
1.20.x
Fabric
2d ago 1
  • Added 1.21.10 support
  • Updated to 1.21.9

  • Updated to 1.21.8
  • Refactored most of the code to use FAPI's events instead of mixins
  • Updated to 1.21.7 (thanks to coredex-source)
  • Some minor bug fixes, config should be more stable now
  • Fixed NoClassDefFoundError with pods4k.
Apparently the main module of pods4k depends on the submodules, and they aren't included transitively by loom. The submodules are now included in the rimelib dependency, so this should fix it.
  • Updated to work with Minecraft 1.21.6.
  • Added more chat messages for actions like adding/removing functions, constants, etc.
  • Added a new dependency, fabric-api. Pretty much every mod uses it, you probably have it installed already.
  • Added another new dependency rimelib, and it's embedded in the mod for now. It's still under review on modrinth, but it's a library mod I've made that provides some utility functions for fabric mods. This is where the new config's backend lies, and chatcalc just implements a class for it.
  • Revamped config system (mostly backend changes):

The config is now strongly typed with a config class, and there's a new config handler that handles all the config operations.

Previously, config was handled with a raw JsonObject, and the encoding was done manually with string concatenation magic.
This made it very hard to add a gui for the config or handle the config in a type-safe way, and there were a lot of checks for each config value to make sure it was valid.

Now, the config is handled with a Config class that has all the config values as properties, and the encoding is done with a codec.
This makes things much easier to handle, and it also allows for a gui to be added in the future. I'm planning on using YACL for the gui, but that's for another time.

The config format was also changed, and the codec should be able to decode both formats while only encoding the new one.
However, I was unable to get a config file in the old format to test this, so please report any issues you encounter.
  • Added support for 1.21.5

This is a metadata change only, no code changes were made.
  • Fix incorrect replacement when multiple expressions are in the same line
  • Add support for Minecraft 1.21.4
  • Add support for Minecraft 1.21.3
  • Fix for crash with Distant Horizons config screen
I didn't actually try it out, but technically it should work.
  • Fixed not being able to remove custom constants or functions.
  • Fixed an issue where an invalid decimal_format config would cause the mod to crash.
  • Fixed an issue where the game would crash when listing custom functions or constants when there are no custom functions or constants.
  • Removed a misleading line from the output of config?.
Fixed an issue where tan(90°) wouldn't return infinity (by [70CentsApple](https://github.com/Emirlol/chatcalc/pull/4))
Fixed custom functions parsing allowing malformed functions that broke the config.

I apologize if this spammed anyone's notifications, I was testing out another way of publishing the mod updates.
Updated to work with 1.21.

Nothing seems to be broken, so all I did was change the mod's metadata to allow 1.21. This should make things easier for those who don't know how to override mod dependencies.
## New Features

## Fixes
  • Trying to fill in the result of an equation will no longer delete the = character.
  • Moving the cursor between the last and second last character of a calculation will no longer ignore the last character. (For example, when the cursor was between 3 and 0 in 5*30, the calculation would result 5*3=15 rather than 5*30=150.)
  • The links this mod provides to other things should now point to the correct pages. Also added the missing few links such as issues and mod homepage. (Example: the Source link in ModMenu was pointing to the upstream repository rather than this fork's.)

Updated for 1.20.5 & 1.20.6
Chat Calc Icon
Download Chat Calc
Select game version
Select platform