此模组允许你通过在聊天栏中输入表达式来计算一些数值。该模组在客户端和服务端均可使用,你可以在单人游戏、多人游戏中使用,或者当服务器安装了该模组时,仅使用原版客户端也能使用。
| 客户端 |
服务端 |
是否可用 |
| 是 |
否 |
是 |
| 否 |
是 |
是 |
| 是 |
是 |
是 |
功能特性
每个表达式都以 = 符号开头。之后你可以编写包含不同运算符和数字的表达式。
加法

减法

乘法

除法

乘方(指数运算)

运算优先级
各运算符的优先级值如下:
- 加法 - 1
- 减法 - 1
- 乘法 - 2
- 除法 - 2
- 乘方 - 3
数值越大,优先级越高。如果优先级值相同,则从左到右进行计算。

使用括号
通过括号可以改变运算优先级。括号内的运算会优先计算。

浮点数
你可以使用 .(点)或 ,(逗号)来表示浮点数。

结果

错误信息
如果你的表达式存在任何错误,你将收到一条错误提示,帮助你理解出错的位置。
公式不完整
当你的表达式输入不完整时,会显示此消息。

括号错误
当括号使用不正确时,会显示此消息。

字符错误
当表达式中使用了不正确的符号(例如字母)时,会显示此消息。

其他错误
在其他任何情况下,会显示此消息。

This mod allows you to calculate some numbers throught writing expressions in chat. Mod works on both sides, you can use it in singleplayer, multiplayer and in vanilla client if mod installed on server.
| Client |
Server |
Works |
| Yes |
No |
Yes |
| No |
Yes |
Yes |
| Yes |
Yes |
Yes |
Features
Every expression start with = symbol. After that you write your expression included differect operatorc and numbers.
Addition

Subtraction

Multiplication

Division

Exponentiation

Operation priority
Operation priority value:
- Addition - 1
- Substraction - 1
- Multiplication - 2
- Division - 2
- Exponentiation - 3
More value mean more prioroty. If priority values is equals then it calculate from left to right.

Using brackets
Using brackets you can change operation priority. Operation in brackets calculte first.

Float numbers
You can use float numbers using . (dot) or , (comma).

Result

Errors messages
If your expression has any error you will get error message that can help you to understand where you make a mistake.
Wrong Formula
This message shows when in your expression not complete.

Wrong brackets
This message shows when brackets uses in not propper way.

Wrong Character
This message shows when incorrect symbols uses in your expression such as letters.

Error
This message shows in any other situation.

评论 0
登录后参与评分
还没有评论,来抢沙发吧