Перейти к содержимому
Mineforgian

ChatCalc

A NeoForge port of ChatCalc. Perform mathematical calculations directly in chat!

Загрузки
2K
Подписчики
1
Обновлён
12 ноября 2025 г.
Лицензия
MPL-2.0

Опубликован 10 ноября 2025 г.

ChatCalc (NeoForge Port)

Perform **mathematical calculations directly in chat** – no commands or external tools needed. Supports custom functions, constants, and real-time evaluation.

demo

✨ 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

GitHub Repository

Ченджлог

1.0.0Релиз1.21.1 · 12 ноября 2025 г.

Backport of ChatCalc to NeoForge / Minecraft 1.21.1.

  • 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.
1.0.0Релиз1.21.10 · 10 ноября 2025 г.

[1.0.0] - 2025-11-10

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.chatcalc to de.smallinger.chatcal
  • Updated Mixin injections for Minecraft 1.21.10
  • Adapted key event handling from primitive parameters to KeyEvent objects
  • Changed chat message API from sendSystemMessage to displayClientMessage
  • Updated ClickEvent and HoverEvent to use new interface-based implementations
  • Changed tooltip rendering from drawTooltip to setTooltipForNextFrame
  • Updated EditBox rendering from renderButton to renderWidget

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)

NeoForge Port

  • First Release: 1.0.0 (2025-11-10)
  • Platform: NeoForge
  • Minecraft: 1.21.10

Комментарии

Загружаем…