跳到正文

Mathematical calculation commands

作者:wifi-left

A mod that provides some math functions that can be more easily used in the game. (Good for Datapack makers)

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Minecraft Math Lib

A mod that provides some math functions that can be used in-game more easily. (suitable for datapack makers)

Futures

Commands

Math

Usage:

/math <name1> <objective1> <operation> <name2> <objective2>
perform operations.
The following operations are currently supported:

  • Plus (+)
  • Minus (-)
  • Multiplication ("*")
  • Division ("/")
  • Max (max)
  • Min (min)
  • Average (middle)
  • =cos / =sin / =tan / =sqrt Please note: these will change the value of the first provided scoreboard
  • Mod ("%")
  • Power ("^")

The output result will be output in the chat bar. If the value of the scoreboard has not been modified, you can store it with execute store result.
If the value is modified this value will remain constant.
Note that all operations are rounded up, as the Minecraft scoreboard doesn’t support decimals!

Random

Usage:

/random <min> <max> or /random <min_name> <min_objective> <max_name> <max_objective>

Get a random integer between the minimum and maximum values.

Support Languages

  • English
  • Simplified Chinese

Translations are welcome: https://github.com/wifi-left/Minecraft-Math-Lib/tree/master/src/main/resources/assets/mathlib/lang

常见问题

Mathematical calculation commands 支持哪些 Minecraft 版本?

Mathematical calculation commands 支持 Minecraft Java 版 1.19–1.19.2,共 3 个版本,可用的加载器:Fabric / Quilt。下载时注意选择和你游戏版本一致的文件。

Mathematical calculation commands 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Quilt,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端 / 服务端。

评论

登录后评论和评分

wifi-left 的其他作品

查看全部 →