
Spice of Life: Fabric Flavor
Encourage players to consume food by increasing maximum health, balancing game.通过增加血量上限鼓励玩家食用食物,平衡游戏难度。
Оцените первым
39.6K
10
Список изменений
函数支持
该版本内置了exp4j作函数解析,在配置中即可找到函数选项 !function
函数使用文档:
你可以在函数中使用这些变量:
uniqueFoods食用过的食物数currentHealth当前血量(不包含本mod添加的血量,包含别的mod添加的血量和基础血量)
你可以使用这些运算:
- 普通四则运算(加+减-乘*除/),用括号表示的优先级(例如( 1 + 2 ) * 3)
- 幂运算
pow(底数, 指数) - 约数:
- 向下取整数:
floor(num) - 四舍五入数:
round(num) - 向上取整数:
ceil(num)
- 向下取整数:
- 比较大小
- 取大值:
max(num1, num2) - 取小值:
min(num1, num2)
- 取大值:
- 对数:
log(底数, 真数) - 你可以使用
e和pi代表e和π
杂项
- 删除了文言文i18n
- 做了一些优化和小型改动
- 调整了配置项名称,具体参考简介,为最新版本内容
兼容性改进
- 该版本移除了默认血量配置项,将兼容其他修改血量的MOD,不会覆盖其血量设置
GUI改动
- 修改了配置GUI !configui
- 将提示由物品id改为物品名称 !foodtip
English
This text was translated by AI and may contain errors.
Function Support
This version includes exp4j for function parsing—you can find the function option in the configuration.
!function
Function Usage Documentation:
You can use the following variables in functions:
uniqueFoods: number of unique foods eatencurrentHealth: current health (does not include health added by this mod, but includes health from other mods and base health)
You can use the following operations:
- Basic arithmetic (
+,-,*,/), with parentheses for precedence (e.g.,(1 + 2) * 3) - Exponentiation:
pow(base, exponent) - Rounding functions:
- Floor:
floor(num) - Round:
round(num) - Ceiling:
ceil(num)
- Floor:
- Comparisons:
- Maximum:
max(num1, num2) - Minimum:
min(num1, num2)
- Maximum:
- Logarithm:
log(base, argument) - You can use
eandpito represent Euler’s number and π, respectively.
Other Improvements
- This version removes the default health configuration option and now respects health values set by other mods—it will not override them.
- Removed Classical Chinese(or called Acient Chinese,文言) i18n
- Made some optimizations and minor changes
- Adjusted configuration item names; refer to the README for details, as this reflects the latest version
GUI Changes
- Updated the configuration GUI
!configui - Changed tooltips from item IDs to item names
!foodtip
Файлы
sol2f-2.5.0.jar(104.03 KiB)
ОсновнойМетаданные
Канал релиза
Release
Номер версии
2.5.0
Загрузчики
Fabric
Версии игры
1.20.1–1.20.4
Загрузок
824
Дата публикации
17.12.2025
