Links
Tags
Creators
Details
1.0.0
Compatibility
Changes
Calculator Mod
A simple client-side chat calculator for Minecraft 1.21.1 (NeoForge).
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 |
Show 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)
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:RYnep4FD:CrlJjNXd"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:RYnep4FD:CrlJjNXd"
}
