ChatCalc (NeoForge Port)
Perform **mathematical calculations directly in chat** – no commands or external tools needed. Supports custom functions, constants, and real-time evaluation.
✨ Features
- 💬 Calculate directly in chat (press TAB to evaluate)
- 🔢 Live result preview above chat
- ⚙️ Custom functions & constants
- 🧮 Supports
+ - * / ^ %, trigonometry, logs, sqrt, and more - 🚀 Client-side only – works everywhere
💡 Usage
Type:
2+2 → TAB → 4
sin(pi/2) → TAB → 1
myFunc(x;y)=x^2+y^2
myFunc(3;4) → TAB → 25
🧾 License
Licensed under MPL-2.0
Original Fabric Mod by RealRTTV
NeoForge Port by Smallinger
🔗 More Info
How to Install ChatCalc (Mod)
ChatCalc by Smallinger is verified for Neoforge across Minecraft versions 1.21.1, 1.21.10 (latest release: 1.0.0, file size: 88 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.21.1, 1.21.10) and platform (Neoforge).
- Make sure you have the compatible loader or environment installed for Neoforge.
- Move the downloaded ChatCalc file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add Version- Supported Minecraft: 1.21.1 only.
- Key fixes:
- Mixin input-signature backport (avoids KeyEvent).
- Click/Hover event compatibility restored for older mappings.
- Tooltip fallback for EditBox (Reflection-based).
- Built and dev-client tested on NeoForge 21.1.215.
### Added - Initial NeoForge Port
- Complete port of ChatCalc from Fabric 1.20.2 to NeoForge 1.21.10
- All mathematical calculation features from original mod
- In-chat calculations with TAB key
- Live preview tooltip above chat input
- Custom function and constant definitions
- Click-to-copy functionality for functions and constants
- Hover tooltips on function/constant listings
- Configuration file support (chatcal.json)
- All mathematical operations: basic arithmetic, trigonometry, logarithms, etc.
- Summation and product operators
- Test cases command for verification
### Changed - API Adaptations
- Updated from Fabric API to NeoForge API
- Changed package structure from
ca.rttv.chatcalctode.smallinger.chatcal - Updated Mixin injections for Minecraft 1.21.10
- Adapted key event handling from primitive parameters to
KeyEventobjects - Changed chat message API from
sendSystemMessagetodisplayClientMessage - Updated ClickEvent and HoverEvent to use new interface-based implementations
- Changed tooltip rendering from
drawTooltiptosetTooltipForNextFrame - Updated EditBox rendering from
renderButtontorenderWidget
### Technical Details
- Minecraft Version**: 1.21.10
- NeoForge Version**: 21.10.49-beta
- Java Version**: 21
- Gradle Version**: 9.2.0
- Mappings**: Parchment 2025.10.12
### Documentation
- Added comprehensive README.md with usage instructions
- Created DEVELOPMENT.md with porting notes and API changes
- Added NOTICE.md with copyright and attribution information
- Added MPL 2.0 license headers to all source files
- Added this CHANGELOG.md
### Credits
- Original ChatCalc Mod by RealRTTV
- NeoForge Port by Smallinger
## [Unreleased]
### Planned Features
- Configuration GUI
- Additional mathematical functions
- Localization support for multiple languages
- Performance optimizations for complex expressions
## Version History
### Fabric Original (Reference)
- Version**: 1.20.2
- Author**: RealRTTV
- Repository**: https://github.com/RealRTTV/chatcalc
### NeoForge Port
- First Release**: 1.0.0 (2025-11-10)
- Platform**: NeoForge
- Minecraft**: 1.21.10