Skip to content

mochi-753/Calculator

Repository files navigation

Calculator Mod

A simple client-side chat calculator.

Overview

Calculator Mod allows you to evaluate mathematical expressions directly from the chat.
Simply start your message with @ followed by a formula, and the result will be displayed in your chat.

Features:

  • Evaluate arithmetic expressions using double precision.
  • Optional inline or multi-line result display (configurable).
  • Client-side only: does not require server installation.
  • Configurable warnings and display options.

Usage

Type a calculation in the chat starting with @


Configuration

The mod provides a client-side configuration file (config/calculator-client.toml) with the following options:

Option Description Default
suppressWarning Suppress a warning on login about possible rounding errors false
resultInline Display calculation results in the same line as input false

Note: This calculator uses double precision. Results may contain rounding errors.


License

Calculator Mod: MIT License

Third-party libraries:

  • exp4j — Apache License 2.0
    (Source code included with license header preserved)

About

A simple mod that lets you calculate math expressions directly in chat using the @ prefix.

Resources

License

MIT, Apache-2.0 licenses found

Licenses found

MIT
LICENSE.txt
Apache-2.0
LICENSE_exp4j.txt

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages