本模组并非 Spice of Life 的分支,但内容相似。不同于常见的奖励和鼓励进食的策略,它通过施加负面效果来鼓励玩家多样化饮食。
概览
本模组通过引入机制增加了管理 Minecraft 食物的难度:随着你重复食用同一种食物,其恢复值会逐渐降低。它同时加入了短期和长期的食物负面效果,使食物选择更具策略性。此外,还添加了可以携带多种食物的篮子。
短期食物负面效果
如果在最近 5 次进食中吃了相同的食物,将触发以下负面效果:
- 第 1 次:100% 恢复(正常)
- 第 2 次:90% 恢复
- 第 3 次:75% 恢复
- 第 4 次:50% 恢复
- 第 5 次:5% 恢复
这被视为短期负面效果。
长期食物负面效果
随着时间的推移,你食用特定食物的次数越多,其恢复值每次会降低 1%,历史记录上限为 100 次进食。这模拟了长期负面效果。
新增物品
篮子应包含多种食物。右键点击可打开。
篮子:可容纳 9 组食物。

大篮子:可容纳 9 组食物。右键点击可直接食用其中的食物。兼容 AppleSkin。

可配置设置
所有负面效果的数值,以及历史记录追踪的进食次数,均可通过配置文件进行自定义。这些设置是特定于世界的,因此你可以针对每个存档文件进行调整。
模组兼容性
- AppleSkin:本模组与 AppleSkin 完全兼容。食物恢复值的更改将在 HUD 中显示。它还会显示柳条篮子的恢复量。
- Farmer's Delight:虽然已测试并可在 Farmer's Delight 下正常工作,但不保证完全兼容。
反馈与使用
这是我的第一个模组,非常欢迎提出任何建议或改进意见!
- 欢迎将此模组加入整合包。
- 欢迎在视频中进行展示。
- 无需通知,但如果你告知我,我将不胜感激!
在此更改之前,名称为 "FoodVariation"。
This mod is not a fork of Spice of Life, but the content is similar. Instead of a policy of rewarding and encouraging eating, which is common, it encourages eating by debuffing.
Overview
This mod increases the difficulty of managing food in Minecraft by introducing mechanics that decrease food recovery values the more you consume the same item. It adds both short-term and long-term food debuffs, making food choices more strategic. Also, add a basket that can carry more than one food item.
Short-Term Food Debuff
If you eat the same food within the last 5 meals, the following debuffs will occur:
- 1st time: 100% recovery (normal)
- 2nd time: 90% recovery
- 3rd time: 75% recovery
- 4th time: 50% recovery
- 5th time: 05% recovery
This is considered the short-term debuff.
Long-Term Food Debuff
Over time, the more you consume a specific food, its recovery will decrease by 1% per consumption, up to a history of 100 meals. This simulates a long-term debuff.
Items added
Baskets should contain multiple food items. It can be opened by right-clicking.
Basket:It can hold 9 stacks of food.

Large Basket:It can hold 9 stacks of food. Right click to eat the food inside. Compatible with AppleSkin.

Configurable Settings
All debuff values, as well as the number of meals tracked for the history, are configurable through the config file. These settings are world-specific, so you can adjust them per save file.
Mod Compatibility
- AppleSkin: This mod is fully compatible with AppleSkin. Changes to the food recovery will be reflected in the HUD. It also displays the amount of Wicker Basket recovery.
- Farmer's Delight: While tested and working with Farmer's Delight, full compatibility is not guaranteed.
Feedback and Usage
This is my first mod, so I would love to hear any suggestions or improvements you have!
- You are welcome to include this mod in modpacks.
- Feel free to showcase it in videos.
- No notification is required, but I would be delighted to hear about it if you do!
Prior to the change, the name was "FoodVariation".
下载 Spice of Life: Classic Edition [1.20.1]
下载 Spice of Life: Classic Edition [1.20.1]
下载 Spice of Life: Classic Edition [1.20.1]
下载 Spice of Life: Classic Edition [1.20.1]
下载 Spice of Life: Classic Edition [1.20.1]
下载 Spice of Life: Classic Edition [1.20.1]
下载 Spice of Life: Classic Edition [1.20.1]
下载 Spice of Life: Classic Edition [1.20.1]
下载 Spice of Life: Classic Edition [1.20.1]
下载 Spice of Life: Classic Edition [1.20.1]
新增
- 新增
preventEatingFullyDecayedFood配置项(默认值:true)。当食物的饥饿值恢复衰减至 0 时,将无法再食用,因此玩家不能再反复食用金苹果等物品以获取其效果。该检查在左右键点击时均会运行,并显示操作栏消息。黑名单中的食物、创造模式、从不恢复饥饿值的食物以及guaranteeMinimumNutrition = true的情况不受影响。由 #57 提出请求。
修复
- 柳条篮(Wicker Basket)曾在玩家饥饿值已满时仍可被食用,从而让玩家将饱和度拉满。现在它遵循与普通食物相同的规则:仅当玩家可以进食时才可使用,除非所选食物是始终可食用的(例如金苹果)。由 #58 报告。
- 在 Fabric 专用服务器上,服务器配置值从未发送给客户端,导致工具提示、AppleSkin 数值、柳条篮的食物选择以及客户端的篮子槽位验证均使用默认值进行计算。这使得配置更改看起来对服务器没有效果。现在,服务器配置会在玩家登录时同步给每位玩家(新增
SyncConfigPacket,在所有平台发送)。 - Fabric 配置加载器不再在世界的配置文件不包含某个键时,将上一个世界的
basketBlacklist/新键值保留在内存中。
新增
- 添加了简体中文(zh_cn)本地化。感谢 @pyf6trb (#53)。
- 新增
basketBlacklist配置选项,用于列出无法放入篮子或藤编篮子的食物物品。已经放在篮子里的物品永远不会被删除——它们仍然可以被取出,而藤编篮子在选择最有营养的食物食用时会跳过这些物品。这与foodBlacklist不同,后者会从腐烂追踪中排除物品。此功能在 #52 中被请求。
更改
- 食物历史记录现在使用
Map<Item, Integer>缓存每个物品的消耗计数,并与ItemStack队列一起存储,因此countFoodEaten()(用于长期腐烂计算)的时间复杂度为 O(1),而不是扫描整个历史记录。感谢 @DaPlumer (#55)。
修复
- 蛋糕现在像其他食物一样失去饥饿恢复效果。
CakeBlock.eat()直接调用FoodData.eat(int, float),而不是通过Player.eat(Level, ItemStack),因此PlayerMixin重定向从未触发,吃蛋糕既不会导致腐烂也不会记录在食物历史中。已在两个平台添加CakeBlockMixin。蛋糕是唯一走这条路径的原版食物方块——蜡烛蛋糕也通过相同的CakeBlock.eat()处理。问题报告于 #3。 - 修复了 Forge 的
FoodEventHandlerForge.countFoodEatenRecent()中的一个NullPointerException,该异常在空值检查之前解引用了.consumedItems。运行/resetfoodhistory会移除地图条目但不同步,所以下一顿饭会在 Forge 上崩溃。 - 恢复了 Fabric 的
FoodHistoryComponentFabric.setFood()中的防御性副本,并添加了自赋值保护。如果没有它,使用组件自己的历史记录调用setFood()会导致clear()并清除玩家的食物历史记录。 FoodHistory不再在队列和计数缓存不一致时抛出IllegalStateException。它现在记录不一致并重建缓存,而不是在Player.eat()内部崩溃。- 修复了
FoodHistory.toString()使用%b格式说明符的问题,该说明符在诊断日志中打印的是true而不是实际内容。 - 修复了 Fabric 配置加载器中的一个
NullPointerException,当现有的solclassic-server.toml中缺少数组键时发生。TomlTable#getArray对于不存在的键返回null,而之前的代码在空值检查之前调用了.toList(),因此添加任何新的数组键都会导致所有现有配置文件在加载时损坏。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
让你能够在世界中的任何位置定位结构。
模组
简单的原版生物群系更新,包含有趣的怪物、方块等更多内容!
模组
为你的终界增添新生物群系、神秘仪式和全新生物
模组
TerraFirmaCraft (TFC) 是一个全面转换模组,对生存模式进行了彻底的改造与重新设计。
模组
更多生物群系,更多生物,更多工具,为炽热的维度
模组
一堆修复
评论 0
登录后参与评分
还没有评论,来抢沙发吧