作者:rebot | 分类:模组
Minecraft 版本: 1.20.1 1.20.2 1.20.3 1.20.4
平台: fabric
标签: game-mechanics
本mod旨在通过增加血量上限奖励玩家食用新的食物,以加强玩家对整合包食物系统的动力,并平衡整合包的游戏难度。
该指南的config和GUI说明部分为最新版本(3.2.0)维护,其他版本呢详情请参考游戏内配置页面提示。
这些配置存放于 /config/spice-of-life-fabric-flavor.json。
这些配置在服务端生效,本地游戏版本的配置影响本地游戏存档。
所有配置项以health计算,2health=1heart(红心)
maxHealth | 最大血量 - 类型: int - 默认值: 5000 - 取值范围: 2~5000 - 说明: 设置本 Mod 能提供的最大额外生命值(玩家最终血量 = 原版血量 + 其他 Mod 增益 + 本 Mod 增益。此选项仅限制“本 Mod 增益”的上限,防止数值无限膨胀) healthGain | 生命值增益 - 类型: int - 默认值: 2 - 取值范围: 0~20 - 说明: 每发现一个食物的生命值增益(设置此为0则等于禁用) resetOnDeath | 死亡重置 - 类型: boolean - 默认值: false - 说明: 启用后,玩家死亡时血量将重置为默认值,且删除所有已发现记录 healthToMaxOnIncrease | 增益时恢复血量 - 类型: int - 默认值: 0 - 取值范围: 任意 - 说明: 每次生命值增益时恢复血量数值,若大于上限则恢复到上限 healthIncreaseOnIncrease | 增益时恢复满血 - 类型: boolean - 默认值: false - 说明: 每次生命值增益时恢复血量至上限 Expression | 生命值增益计算函数 - 类型: string - 默认值: 0 - 说明: 写法详见下文[函数编写指南](#ExpU)在修改血量配置后,食用未发现食物,或重生(未开启死亡重置配置)以重新计算血量增益值
机制: 在每次食用新食物、死亡重生时会按照最新配置计算血量增益值
所有配置项以FoodLevel(饱食度)计算,2 FoodLevel=1 小鸡腿图标
EnableNaturalHunger | 启用自然饥饿 - 类型: boolean - 默认值: false - 说明: 启用后,玩家会随时间损失饥饿值 NaturalHungerPeriod | 自然饥饿周期 - 类型: int - 默认值: 1200 - 说明: 配置值代表tick(游戏刻 [↗ 游戏刻-Minecraft Wiki](https://zh.minecraft.wiki/w/%E5%88%BB?variant=zh-cn#%E6%B8%B8%E6%88%8F%E5%88%BB)),每达到一定配置的游戏刻,按照函数计算衰减 NaturalHungerExpression | 自然饥饿衰减计算函数 - 类型: string - 默认值: "1" - 说明: 用于计算每次自然衰减值的函数(将玩家的饱食度减少此函数的结果,而非设置为此函数的结果),写法详见下文[函数编写指南](#ExpU)函数编写指南 - 你可以使用`e`和`pi`代表`e`和`π` **运算** - 普通四则运算(加+减-乘*除/),用括号表示的优先级(例如 `( 1 + 2 ) * 3`) - 幂运算 `pow(底数, 指数)` - 约数: - 向下取整数:`floor(num)` - 四舍五入数:`round(num)` - 向上取整数:`ceil(num)` - 取大小值 - 取大值:`max(num1, num2)` - 取小值:`min(num1, num2)` - 对数:`log(底数, 真数)` **逻辑** - 判断:`if(condition, A, B)` ,如果 condition > 0 返回 A ,否则返回 B - 逻辑与:`and(A, B)` ,两者都大于 0 返回 1 ,否则返回 0 - 逻辑或:`or(A, B)` ,A或B任意一个超过 0 返回 1 ,否则返回 0 - 逻辑非:`not(A)` ,大于 0 返回 0 ,否则返回 1 **比较逻辑** - 大于:`gt(A, B)` ,如果 A > B ,返回 1 ,否则返回 0 - 小于:`lt(A, B)` ,如果 A
这些配置存放于 /config/spice-of-life-fabric-flavor-client.json。
这些配置仅影响本地客户端显示,服务端的该配置无效。
在修改配置后请使用命令同步数据以确保GUI显示的数据为最新数据。
食物簿页面  - 使用鼠标滚轮翻页。 概述页面  - 血量概述:当前获得的mod增益 / 最大可获得的mod增益。 按键绑定 打开GUI的快捷键在minecraft的按键绑定中配置 本mod(Spice of Life: Fabric Flavor)默认状态下由作者保留所有权力。
任何用户拥有自由的获取和使用mod的权利,任何机构或个人对mod的权利由以下细则约束。
关于在整合包和对外分发的Minecraft游戏(以下简称游戏)版本或基于游戏作品的二次创作(以下统称为整合包)、以及在公开的服务器或在线游戏(以下统称在线游戏)中引用本mod
本mod被允许在任何公开或私人分发的整合包、在线游戏中被引用。
关于分发本mod和二次创作分发
分发是被允许的。二次创作中,mod的元数据和代码收到保护。
关于二次创作(即基于本mod的任何版本进行任何形式的修改)
任何修改基于不修改mod元数据。
*限制的定义:包括但不限于下载前看广告、下载需要积分或代币、下载需要登陆或用户分级和等级等。
Notice: The translation is completed by AI and may be not correct.
This mod encourages players to try a variety of foods by rewarding them with a permanent maximum health bonus for each new food they eat. It's designed to give mod packs a reason to expand their food systems and provides a new way to balance game difficulty.
Note: The configuration and GUI sections below are accurate for mod version 3.2.0. For other versions, please refer to in-game tooltips and config screens.
All health-related values are in health points. 2 health points = 1 heart.
/config/spice-of-life-fabric-flavor.json)These settings are controlled by the server. In a single-player world, they affect your local save.
maxHealth - Maximum Bonus Cap
- **Type:** `int`
- **Default:** `5000`
- **Range:** `2` ~ `5000`
- **What it does:** Sets the absolute maximum bonus this mod can add to a player's health.
- Final player health = (Base Health + Bonuses from other mods) + **This Mod's Bonus**.
- This setting only caps **"This Mod's Bonus"** to prevent runaway scaling.
healthGain - Bonus per New Food
- **Type:** `int`
- **Default:** `2`
- **Range:** `0` ~ `20`
- **What it does:** The amount of health (in HP) granted for each *new* food discovered. Set to `0` to disable the base gain.
resetOnDeath - Reset on Death
- **Type:** `boolean`
- **Default:** `false`
- **What it does:** If `true`, dying resets your bonus to zero and erases your entire food discovery history. This is a hardcore option.
healthToMaxOnIncrease - Heal to Max on Gain
- **Type:** `boolean`
- **Default:** `false`
- **What it does:** If `true`, whenever you gain a health bonus (by eating a new food), your current health is instantly filled to your new maximum.
- **Note:** If this is `true`, the `healthIncreaseOnIncrease` setting below is ignored.
healthIncreaseOnIncrease - Heal Amount on Gain
- **Type:** `int`
- **Default:** `0`
- **Range:** Any positive integer
- **What it does:** Heals you by a specific amount whenever you gain a health bonus. If the heal amount would exceed your new max, it heals you to full instead.
- **Note:** This only applies if `healthToMaxOnIncrease` is set to `false`.
Expression - Custom Bonus Formula
- **Type:** `string`
- **Default:** `"0"`
- **What it does:** A custom formula for calculating your health bonus. The result is **added** to the `healthGain` value.
- **Variable:** `uniqueFoods` (the total number of unique foods you've eaten).
- **Syntax:** See the Function Guide below.
blacklist - Food Blacklist
- **Type:** `List`
- **Default:**
```json
["minecraft:rotten_flesh", "minecraft:spider_eye"]
```
- **What it does:** Foods in this list will not be counted towards your discovery progress.
- **How it works:**
- **Existing data:** Foods you *already ate* before they were added to the blacklist remain in your history (the mod doesn't erase your past meals).
- **New data:** Foods on the blacklist that you haven't eaten yet will never count.
- **After changing the list:** You **must** run `/sol2f sync AllFoodList` to update the client GUI and tooltips. This ensures the display matches the new blacklist.
- **GUI Display:** The overview screen shows `Discovered Foods / Total Non-Blacklisted Foods`.
Applying config changes: After changing health-related settings, the new values will apply the next time you eat a new food or respawn (if
resetOnDeathisfalse). The mod recalculates your bonus whenever youruniqueFoodscount changes or on death/respawn.
Note: Values here use the vanilla Food Level, where 2 Food Level = 1 chicken drumstick.
EnableNaturalHunger - Time-Based Hunger
- **Type:** `boolean`
- **Default:** `false`
- **What it does:** If `true`, the player will passively lose hunger over time.
NaturalHungerPeriod - Decay Interval
- **Type:** `int`
- **Default:** `1200`
- **What it does:** How often (in game ticks, 20 ticks = 1 second) the "Natural Hunger" decay triggers. Each time it triggers, it subtracts the amount calculated by `NaturalHungerExpression`.
NaturalHungerExpression - Decay Formula (Time-Based)
- **Type:** `string`
- **Default:** `"1"`
- **What it does:** A custom formula that determines how much hunger (Food Level) is subtracted each decay interval.
- **Variables:**
- **Actions:** `isSprinting`, `isSwimming`, `isSneaking`, `isCrawling`
- **Environment:** `isTouchingWater`, `isBeingRainedOn`, `isWet`, `BrightnessAtEyes` (render brightness at eye level, `0.0` - `1.0`)
- **Status:** `FoodLevel` (current hunger), `Saturation`, `Exhaustion`
- *Note: Boolean variables return `1.0` (true) or `0.0` (false).*
- **Syntax:** See the Function Guide below.
- **Example:**
- **Basic fixed cost:** Lose 0.5 hunger every period.
```json
"NaturalHungerExpression": "0.5"
```
- **Dynamic cost:** Lose 4 if sprinting/swimming, 2 if in rain/water, otherwise 1.
```json
"NaturalHungerExpression": "if(or(isSprinting, isSwimming), 4, if(or(isBeingRainedOn, isTouchingWater), 2, 1))"
```
EnableSleepHunger - Wake-Up Hunger
- **Type:** `boolean`
- **Default:** `false`
- **What it does:** If `true`, the player loses hunger upon waking up after sleeping.
SleepHungerExpression - Decay Formula (Wake-Up)
- **Type:** `string`
- **Default:** `"SleepDuration / 3000"`
- **What it does:** A custom formula that determines how much hunger (Food Level) is subtracted when you wake up.
- **Variables:**
- **Sleep:** `SleepDuration` (time skipped in ticks)
- **Status:** `FoodLevel`, `Saturation`, `Exhaustion`
- **Syntax:** See the Function Guide below.
MinFoodLevel - Minimum Hunger Floor
- **Type:** `int`
- **Default:** `1`
- **What it does:** The lowest your food level can be reduced to by this mod's hunger systems (both time-based and wake-up). Decay will stop when you hit this value.
/config/spice-of-life-fabric-flavor-client.json)These settings only affect your local display. The server doesn't care about them.
ShowConsumedTooltips - Show "Eaten" Tooltips
- **Type:** `boolean`
- **Default:** `true`
- **What it does:** Shows a tooltip on foods you've already discovered.
ShowUnconsumedTooltips - Show "New" Tooltips
- **Type:** `boolean`
- **Default:** `true`
- **What it does:** Shows a tooltip on foods you haven't discovered yet.
/sol2f clearhealthy - Reset Player
- **Usage:** `/sol2f clearhealthy`
- **What it does:** Resets *your* health bonus and food discovery list. Requires operator privileges. (Added in v2.0+)
/sol2f getlist - View Discovered Foods
- **Usage:** `/sol2f getlist `
- **What it does:** Shows the list of foods a specific player has discovered.
/sol2f sync - Sync Data
- **Usage:**
- `/sol2f sync PlayerData` - Syncs player discovery lists. Use this if GUI tooltips seem wrong.
- `/sol2f sync AllFoodList` - Syncs the global food list. **You must run this after changing the blacklist** to update the GUI and client displays.
After changing any config, run the appropriate /sol2f sync command to make sure the GUI shows the correct information.
This mod (Spice of Life: Fabric Flavor) is All Rights Reserved by default, but the following specific permissions are granted:
You ARE allowed to:
You ARE NOT allowed to:
If you distribute a modified version:
请登录后举报
暂无评论,抢个沙发吧~