← Назад к ресурсам

JJCalculator

Clientside /calc command

Modrinth management utility

Описание

# Minecraft /calc Command Mod ## Description The Minecraft `/calc` command mod is a versatile addition to your game that allows you to perform complex mathematical calculations using the `exp4j` Java library. Whether you need to solve simple equations or compute more intricate expressions, this mod provides a convenient way to harness the power of mathematics within the Minecraft world. ## Features - **/calc Command**: The mod introduces the `/calc` command, which enables players to input mathematical expressions and receive immediate results. ## Usage To use the `/calc` command, simply open the in-game chat and type: Replace `` with the mathematical expression you want to calculate. The mod will evaluate the expression and display the result in the chat. ### Examples #### Basic Arithmetic - **Addition**: Calculate the sum of 5 and 3: /calc 5 + 3 Result: `8.0` - **Subtraction**: Calculate the difference between 10 and 4: /calc 10 - 4 Result: `6.0` - **Multiplication**: Calculate the product of 6 and 2: /calc 6 * 2 Result: `12.0` - **Division**: Calculate the quotient of 8 divided by 2: /calc 8 / 2 Result: `4.0` #### Complex Expressions - **Advanced Calculations**: Solve more complex expressions, including parentheses and exponentiation: /calc (3 + 4) * 2^2 Result: `28.0` - **Trigonometric Functions**: Utilize trigonometric functions for calculations: /calc sin(30) + cos(45) Result: -0.4627096352751321