2.0 版本之后需要 Architectury!Fabric 版本目前可能不稳定。
已发布兼容 1.21.1 的版本。
1.20.1 版本支持 Forge (NeoForge) 和 Fabric,而 1.21.1 版本支持 NeoForge 和 Fabric。
本模组并非 Spice of Life 的分支,但内容相似。与常见的奖励和鼓励进食的策略不同,它通过施加负面效果来鼓励玩家多样化饮食。
概述
本模组通过引入机制,使重复食用同一种食物时食物恢复值降低,从而增加 Minecraft 中食物管理的难度。它添加了短期和长期的食物负面效果,使食物选择更具策略性。此外,还添加了一个可以携带多种食物的篮子。
短期食物负面效果
如果在最近 5 次进食中吃了同样的食物,将会出现以下负面效果:
- 第 1 次:100% 恢复(正常)
- 第 2 次:90% 恢复
- 第 3 次:75% 恢复
- 第 4 次:50% 恢复
- 第 5 次:5% 恢复
这被视为短期负面效果。
长期食物负面效果
随着时间的推移,你食用某种特定食物的次数越多,其恢复值将每次减少 1%,历史记录最多追踪 100 次进食。这模拟了长期负面效果。
新增物品
篮子应包含多种食物。右键点击即可打开。
篮子:可容纳 9 组食物。
柳条篮:可容纳 9 组食物。右键点击可直接食用其中的食物。兼容 AppleSkin。
可配置设置
所有负面效果的数值以及用于历史记录追踪的进食次数,均可通过 config 文件进行配置。这些设置是世界特定的,因此你可以针对每个存档进行调整。
模组兼容性
- AppleSkin:本模组与 AppleSkin 完全兼容。食物恢复值的更改将在 HUD 中反映出来。它还会显示柳条篮的食物恢复量。
- Farmer's Delight:虽然已与 Farmer's Delight 测试并正常工作,但不保证完全兼容。
- Diet/Nutritional Balance:已完全兼容 Diet/Nutritional Balance。
营养值会受到本模组负面效果的影响。 - Sophisticated Backpacks:与自动进食功能兼容。食用后不恢复饥饿度的食物不会被消耗。如果背包中有柳条篮,将优先从中消耗食物。
命令
/resetfoodhistory <targets>
此命令允许你重置一个或多个玩家的食物食用历史。如果你想消除与重复食用食物相关的任何负面效果并重新开始,此命令非常有用。
示例:
/resetfoodhistory @p
此命令将重置离你最近的玩家的食物食用历史。
整合包创作者信息
整合包创作者可以通过全局配置文件配置生成新世界时使用的服务器配置。默认情况下不会生成全局配置文件。你可以使用 /solclassic generatedefaults 命令生成它。
全局配置文件仅在创建新世界时被引用。它不会影响已经生成的世界。在世界创建后更改全局配置文件不会应用任何更改。要修改现有世界的设置,请编辑存档中的 serverconfig/solclassic-server.toml。
反馈与使用
这是我的第一个模组,非常欢迎提供任何建议或改进意见!
- 欢迎将此模组包含在整合包中。
- 欢迎在视频中展示它。
- 无需通知,但如果你告知我,我将不胜荣幸!
更改前的名称为 "FoodVariation"。
Architectury is now required after version 2.0! The Fabric version may currently be unstable.
A version compatible with 1.21.1 has been released.
Version 1.20.1 supports Forge (NeoForge) and Fabric, while 1.21.1 supports NeoForge and Fabric.
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.
Wicker 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.
- Diet/Nutritional Balance: Full compatibility with Diet/Nutritional Balance has been added.
Nutrition is affected by the debuffs from this mod. - Sophisticated Backpacks: Compatibility with the auto-eat feature. Food that does not restore hunger when eaten will not be consumed. If a Wickerbasket is in the backpack, food will be consumed from it with priority.
Command
/resetfoodhistory <targets>
This command allows you to reset the food consumption history of one or more players. This command is useful if you want to remove any debuffs related to repetitive food consumption and start fresh.
Example:
/resetfoodhistory @p
This command will reset the food consumption history of the player nearest to you.
Information for Modpack Creators
Modpack creators can configure the server config used when generating a new world through the global config. The global config is not generated by default. You can generate it using /solclassic generatedefaults.
The global config is only referenced when creating a new world. It does not affect worlds that have already been generated. Changing the global config after a world has been created will not apply any changes. To modify settings for an existing world, edit serverconfig/solclassic-server.toml in the save file.
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
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Spice of Life: Classic Edition
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Spice of Life: Classic Edition
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Spice of Life: Classic Edition
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Spice of Life: Classic Edition
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Spice of Life: Classic Edition
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Spice of Life: Classic Edition
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Spice of Life: Classic Edition
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Spice of Life: Classic Edition
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Spice of Life: Classic Edition
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
新增
- 添加了中文(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。 - 修复了
FoodEventHandlerForge.countFoodEatenRecent()中的NullPointerException,该异常在空值检查之前解引用了.consumedItems。运行/resetfoodhistory会移除映射条目而不重新同步,所以下一餐会在 Forge 上崩溃。 - 恢复了
FoodHistoryComponentFabric.setFood()中的防御性副本,并添加了自赋值保护。如果没有它,使用组件自身的历史记录调用setFood()会导致其clear()并清除玩家的食物历史记录。 FoodHistory不再在队列和计数缓存不一致时抛出IllegalStateException。现在它会记录不一致情况并重建缓存,而不是在Player.eat()内部崩溃。- 修复了
FoodHistory.toString()使用%b格式说明符的问题,该说明符在诊断日志中打印的是true而不是实际内容。 - 修复了在现有
solclassic-server.toml中缺少数组键时 Fabric 配置加载器中的NullPointerException。TomlTable#getArray对于缺失的键返回null,而之前的代码在空值检查之前调用了.toList(),因此添加任何新的数组键都会导致每次加载时破坏所有现有的配置文件。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧