Список изменений
【中文更新日志】
2.6 版本更新 - 表达式解析器升级:
- 重写了数学表达式解析器,现在支持更丰富的函数和更灵活的语法。
- 新增函数支持:
abs(绝对值)、exp(自然指数,#1)、带任意底数的log(base, value)(例如log(2, 8)计算以 2 为底 8 的对数)、以及sqrt(root, value)(求任意次方根,如sqrt(3, 64)计算 64 的 3 次方根)。 - 支持
logN简写形式,例如log2表示以 2 为底的对数,log10表示常用对数。 - 解析器更加健壮,能够正确处理函数嵌套和复杂表达式。
- 所有函数附魔和命令功能均使用新解析器,计算更准确,支持更广泛的数学表达式。
【English Changelog】
Version 2.6 - Expression parser upgrade:
- Rewrote the mathematical expression parser with support for more functions and flexible syntax.
- New functions added:
abs(absolute value),exp(natural exponential, #1),log(base, value)for arbitrary base logarithms (e.g.log(2, 8)computes log base 2 of 8), andsqrt(root, value)for arbitrary roots (e.g.sqrt(3, 64)computes the cube root of 64). - Supports shorthand
logNnotation, e.g.log2for base-2 logarithm,log10for common logarithm. - Parser is now more robust, correctly handling nested functions and complex expressions.
- All function enchantments and command features utilize the new parser for more accurate calculations and broader mathematical expression support.
Файлы
function_math-2.6-neoforge-1.21.1.jar(72.84 KiB)
ОсновнойМетаданные
Канал релиза
Beta
Номер версии
2.6
Загрузчики
NeoForge
Версии игры
1.21.1
Загрузок
11
Дата публикации
08.07.2026

