Food Overhaul
这是一个对食物系统的全面重构。食用食物不再恢复饥饿值或提供饱和度。每种食物现在会赋予相应的状态效果。 这些效果可以提供属性修改,例如增加生命值、提升耐力或抵抗寒冷伤害。
这为玩家提供了真正的选择权,让他们决定在特定情况下哪种食物组合最佳,在我看来,这比整天吃金胡萝卜有趣得多。
Food Overhaul 为这个新的食物系统添加了后端支持,但它本身并不添加游戏内容。
这确保了整合包作者能够最大程度地控制其食物物品的平衡方式。
工作原理
Minecraft 中的物品在消耗时可以向玩家施加状态效果。Food Overhaul 利用了这一功能,并简单地检查其中一个状态效果是否为“食物效果”。 如果物品赋予了此类效果,则只有在玩家尚未拥有该食物效果时才能消耗该物品。
当状态效果位于
foodoverhaul:food_effects实体效果标签中时,被视为食物效果。
Food Overhaul 支持两种不同的物品类型:消耗品和药水。它们分别通过特定的数据组件定义,即 minecraft:consumable 和 minecraft:potion_contents。
是什么阻止了玩家吃掉所有可用的食物?
每个玩家同时只能拥有限数量的活跃食物状态效果。达到限制后,无法再食用食物。 该限制由一个名为 foodoverhaul:max_food_effects 的实体属性控制,其默认值在服务端配置中定义。
玩家不必等到效果完全消失才能刷新它。 当食物效果即将结束时,对应的食物物品可以再次被消耗。允许这样做的确切阈值在服务端配置中设置。
Food Overhaul 添加了 foodoverhaul:remove_effects_in_tag 消耗效果类型。它的工作方式与 minecraft:remove_effects 消耗效果非常相似,但也适用于状态效果标签。
这可用于移除所有活跃的食物效果。
自定义
适用于 26.1+
目前,不存在允许修改物品默认数据组件的数据驱动解决方案。
适用于 1.21.1:
可以通过原版方法(主要是命令)或使用第三方模组将食物效果添加到任何物品(包括模组物品)上。
和 都允许通过数据包设置物品的默认组件。
这给了整合包作者/玩家使用自己食物效果的选项。
食物方块
可以与食物方块互动以获得状态效果。当该状态效果是食物效果时,只有在玩家尚未拥有该效果时才能进行互动。
Food Overhaul 为附加模组提供了一个简单的 Java API 来创建食物方块。
食物展示方块
食物展示方块可以持有并显示最多 4 个物品。如果这些物品具有 minecraft:consumable 组件,则可以通过与展示方块互动来消耗它们。通常会应用关于现有食物效果和饥饿值的检查。
创造模式玩家可以通过配置屏幕配置食物展示方块。
只想游玩?
Food Overhaul - Vanilla Foods 为原版物品添加了食物效果。
饥饿与饱和度
Food Overhaul 并未移除这些系统。它们可以与食物效果结合使用。
默认情况下,没有食物效果的食物可以像正常一样食用。这可以在服务端配置中禁用。
如果你的整合包中希望完全移除食物系统,不妨看看我的模组 Health Regeneration Overhaul,它可以完全禁用原版的饥饿系统,包括饱和度和疲惫值。
Food Overhaul
This is an overhaul of the food system. Eating food no longer fills the hunger bar or gives saturation. Each food item now grants a corresponding status effect instead. These effects can grant attribute modifiers like increased health, more stamina or resistance against frost damage.
This gives players a real choice, when they decide what combination of food is the best for a given situation, which in my opinion is much more interesting than eating golden carrots all day.
Food Overhaul adds the back end system for this new food system, but it does not add gameplay content on its own.
This ensures that mod pack authors have the most possible control over how exactly their food items are balanced.
How does it work?
Items in Minecraft can apply status effects to the player when consumed. Food Overhaul uses that functionality and simply checks if one of those status effects is a "food effect". If an item grants such an effect, the item can only be consumed when the player does not already have that food effect.
A status effect is considered a food effect when it is in the "foodoverhaul:food_effects" mob_effect tag.
Food Overhaul supports two different item types, consumables and potions. They are defined by having specific data components, namely "minecraft:consumable" and "minecraft:potion_contents", respectively.
What prevents a player from eating every available food?
Each player can only have a limited amount of food status effects active at a time. It's not possible to eat food when that limit is reached. The limit is controlled by an entity attribute called foodoverhaul:max_food_effects and its default value is defined in the server config.
The player doesn't have to wait until an effect is completely gone to refresh it. When a food effect is running out, it's corresponding food item can be consumed again. The exact threshold after which this is possible is set in the server config.
Food Overhaul adds the "foodoverhaul:remove_effects_in_tag" consume effect typ. It works very similar to the "minecraft:remove_effects" consume effect, but also works with status effect tags.
This can be used to remove all active food effects.
Customization
For 26.1+
Currently, no data-driven solution exists, that would allow modifying default data components of items.
For 1.21.1:
Food effects can be added to any item (even modded) by vanilla methods (mainly commands) or by using third party mods.
and both allow setting the default components of items via data packs.
This gives mod pack authors / players the option to use their own food effects.
Food Blocks
Food blocks can be interacted with to grant a status effect to the player. When that status effect is a food effect, interaction is only possible when the player doesn't already have the effect.
Food Overhaul provides a simple Java API for add-on mods to create food blocks.
Food Display Block
The Food Display Block can hold and display up to 4 items. When these items have the "minecraft:consumable" component, they can be consumed by interacting with the display block. The usual checks for existing food effects and hunger are applied.
The Food Display Block can be configured by creative mode players via a config screen.
Just want to play?
Food Overhaul - Vanilla Foods adds food effects to vanilla items.
Hunger and saturation
Food Overhaul does not remove these systems. They can be used in combination with the food effects.
By default, food items without a food effect can be eaten like normal. This can be disabled in the server config.
If the food system should be completely gone from your mod pack, maybe take a look at my mod Health Regeneration Overhaul, which can completely disable vanillas hunger system including saturation and exhaustion.
下载 Food Overhaul
下载 Food Overhaul
下载 Food Overhaul
下载 Food Overhaul
下载 Food Overhaul
下载 Food Overhaul
下载 Food Overhaul
下载 Food Overhaul
下载 Food Overhaul
下载 Food Overhaul
3.2.0
技术更新
- 通过更改配置、方块等内容的注册方式,提升了模组稳定性
- 新增
AbstractShapedFoodBlock,供插件使用(深受 VectorWing 及其模组 Farmer's Delight 的启发) - 弃用
OverhauledPieBlock
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
新增 50+ 个独特生物群系,为你的世界增添新树木、花卉等更多元素!
模组
添加全屏世界地图,显示你在世界中已探索的区域。与 Xaero's Minimap 搭配使用效果极佳。
模组
让你能够在世界中的任何位置定位结构。
模组
简单的原版生物群系更新,包含有趣的怪物、方块等更多内容!
模组
添加睡袋和吊床,分别用于便携性和昼夜转换,同时不会设置新的出生点。共有16种颜色可选!
评论 0
登录后参与评分
还没有评论,来抢沙发吧