Download Chat Calc — Minecraft Mods — MetaMods
Chat Calc

Chat Calc

Active

Downloads

0

Last update

1 year ago

Versions

1.19 — 1.20.4
Client
Fabric
Quilt
Utils

Chat Calc - Calculator Right in Minecraft Chat

Chat Calc is a complete overhaul of the original mod by Kokeria, which is no longer maintained. This tool provides virtually all the calculator functions you might need, and if something's missing - you can always request it!

Using the mod is extremely simple: just type a mathematical expression in chat, and the result will immediately appear in a tooltip. To copy the answer as text, press Tab. If you need both the expression and result - add an equals sign before pressing Tab.

Tooltip example More complicated tooltip example Lots of functions Unfinished parenthesis

Usage Examples

1+2 (shows tooltip =3) 1+2 → TAB → 3 1+2= → TAB → 1+2=3

Important: Chat Calc analyzes text in the block where the cursor is located (separated by spaces). This allows you to enter multiple expressions side by side, and the mod will process them correctly.

Creating Custom Functions and Constants

The mod allows you to define custom functions and constants: f(z)=2z-1 → TAB → <code>(empty - function creation confirmed) </code>f(4)<code>→ TAB →</code>7

c=sqrt(2)/2 → TAB → <code>(empty - constant creation confirmed) </code>arcsin(c)<code>→ TAB →</code>45

Deleting functions and constants: f(z)= → TAB → (empty - function deleted) c= → TAB → (empty - constant deleted)

Functions support any number of parameters separated by semicolons (commas are used for number formatting, e.g. 1,0002 → TAB → 2,000).

Complex Function Example

angle(a;b)=round((((arctan((b-(z-0.5))/(a-(x-0.5)))+90+(min(1;cmp(a;(x-0.5))+1)180)+180)%360)-180)*10)/10 (author: thecolonel63) This function takes block coordinates and calculates the camera rotation angle for moving toward that block.

Viewing Lists

To view defined functions and constants, type functions? or constants? in chat and press TAB.

Configuration Settings

All settings are changed through chat: radians → TAB → false (default) radians= → TAB → radians=false radians=true → TAB (empty - value set)</p> <p>To change number output format, use <code>decimal_format</code>: <code>decimal_format</code> → TAB → <code>#,##0.##</code> (default) <code>decimal_format=#0.##</code> → TAB → <code>(remove commas) `decimal_format=#,###.##` → TAB →</code> (remove leading 0 for values like 0.23) <code>decimal_format=#,##0.####</code> → TAB → (4 decimal places accuracy)

By default, Chat Calc saves evaluated expressions in chat history (chat_history). You can change copy_type to none or clipboard. To disable tooltips, set display_above to false.

Appendix A: Function List

  • sqrt
  • cbrt
  • sin
  • cos
  • tan
  • csc
  • sec
  • cot
  • arcsin
  • asin
  • arccos
  • acos
  • arctan
  • atan
  • arccsc
  • acsc
  • arcsec
  • asec
  • arccot
  • acot
  • floor
  • ceil
  • round
  • abs
  • log
  • ln
  • exp
  • sgn
  • min
  • max
  • gcf
  • lcm
  • clamp
  • cmp

Appendix B: Constant List

  • random
  • rand
  • rad
  • deg
  • yaw
  • pitch
  • pi
  • tau
  • e
  • phi
  • x
  • y
  • z
Project members
realrttv

realrttv

Developer

Created: 1 Jul 2022

ID: 3371