FoodAttributes 使得每种食物在被食用后都能提供临时的属性加成。吃一块牛排可以让你在一段时间内造成更高的伤害,吃一个苹果可以获得自然吸收效果,吃鱼则能提升游泳速度。2.0 版本在此基础上增加了大量内容:一套完整的烹饪系统、带有战斗效果的食物(而不仅仅是基础属性),以及一个可选模式,该模式下移除饥饿值,改为随时间通过食物恢复生命值。
属性、数值和持续时间完全由数据驱动,因此仅使用 JSON 即可轻松调整数值并添加新食物。更多信息请查阅 文档。
属性会通过配方传播,这意味着本模组将与许多烹饪模组兼容。这也使得添加对其他模组的兼容性变得非常简单:只需设置模组添加的基础食材(例如“番茄”)的属性,那么需要该食材制作的任何食物(例如“汉堡”)都将自动获得相应的属性。此外,左上角有一个小型 HUD,显示你当前激活的食物增益及其剩余时间,因为大多数增益在默认情况下是不可见的。
食物现在还可以赋予特定类型的效果,而不仅仅是基础属性修改器。有许多命中触发的效果(使敌人着火、冻结他们、生命窃取、护甲破坏、基于缺失生命的处决、后续打击、伤害放大),或者你可以让它命中时施加任何状态效果或滞留云。还有受到攻击时触发的效果,允许你在被击中时以状态效果反击、点燃攻击者、击退他们或减少所受伤害(这意味着你可以制作一种基本上提供火焰抗性的食物)。此外,食物也可以在食用时给予普通的状态效果,如夜视或水下呼吸。还有一些新的属性,如爆炸和弹射物抗性、伤害反射、被动回血、第二春、物品磁铁、减少冲刺耐力消耗,以及没有难看闪烁效果的渐进式夜视。
Farmer's Delight 现在是必需的依赖项,因为 FoodAttributes 接管了其平底锅并将其变成一个自由形式的烹饪站,类似于 Cuisine's Delight 但完全由数据驱动。你将食材扔进锅里,并在任何热源上烹饪(每个食材的烹饪速度不同),可以放置在方块上或仅拿在手中。空手右键搅拌和翻面,潜行 + 空手擦拭平底锅。每种食材都有一个烹饪窗口,其质量从 0% 生到 100% 完美再到 0% 烧焦,标签分别为 Raw/Undercooked/Perfect/Overcooked/Burnt。有些食物需要不断搅拌,有些需要翻面,有些(香料)无论怎么做都没问题。
完成后,你将菜肴盛入碗中,得到一个菜肴物品,其饥饿值、饱和度和食物属性都是根据锅中实际成分计算的,并根据每种食材的烹饪程度进行缩放。盘子的外观借鉴了它最相似的 Vanilla 或 Farmer's Delight 食物的外观,并且可以在几口内吃完。此外还有协同效应,这是数据包规则,允许食材在共同烹饪时相互影响,适用于香料、芳香物和多阶段菜肴。你可以将盘子倒出并稍后倒入另一个锅中,它会记住之前的烹饪程度和静置时间,因此像煮米饭、让其静置然后加入生鱼以制作寿司这样的操作是可行的。默认数据包提供了许多这些示例(糖釉、盐腌、寿司、灯笼炖菜、血布丁、徒步混合零食、法吉塔、河豚,以及用于糟糕组合的“冲突”规则)。
热源、烹饪配置文件、协同效应、盘子纹理,全部由数据包 JSON 控制,内置支持 Vanilla、Farmer's Delight、My Nether's Delight、No Man's Land、Diversity Delight、Biomes O' Plenty 和 The Undergarden。如果你不需要其中任何功能,可以在配置文件中关闭整个烹饪系统,此时平底锅将恢复为正常的 Farmer's Delight 行为。
还有一些可选开关(全部从服务器同步),改变生存玩法。饥饿替换隐藏饥饿条并移除饥饿消耗、饥饿致死和基于饥饿的回血,改为根据食物的营养值储存一些生命值,并根据其饱和度随时间恢复生命值,但仅在你受伤时生效(它在重新登录后保留,并在死亡时重置)。食物中毒会使烹饪不当的食物导致中毒和伤害,基于本模组的烹饪状态,因此未煮熟和过熟都算在内,且伤害无视护甲和无敌帧。还有一个选项是在你被击中时取消进食/饮水,以及一个选项让你在任何时候都可以进食,即使饥饿条已满。
你可以编辑全局乘数、针对每种合成类型的乘数、平底锅菜肴的额外乘数、重复使用相同食材的递减回报、命中冷却时间等。你可以配置很多东西,再次,去查看 文档。
从技术上讲,这是 AttributeSetter 的一个附加组件,它是本模组的必需依赖项。旧的 Cuisine's Delight 集成已被移除,通用的平底锅菜肴系统取而代之。

如果你正在构建整合包
你可能对我其他专为整合包设计的模组感兴趣:
AttributeSetter
RPGDamageOverhaul
FoodAttributes
或者对于服务器来说,可以尝试 Claims n Raids!
FoodAttributes makes it so that every food can grant temporary attribute modifiers when eaten. Eat a steak and you can hit harder for a while, eat an apple and gain a pool of natural absorption, eat a fish to swim faster. 2.0 adds a lot on top of that: a whole cooking system, foods that carry combat effects(instead of just plain attributes), and an optional mode that gets rid of hunger and has food heal you over time instead.
The attributes, values and durations are fully data-driven, so tuning values and adding new foods is extremely easy just with JSON. For more info check the docs.
The attributes get propagated through recipes, which means that this will be compatible with many cooking mods. This also makes it very easy to add compatibility with other mods, just set the attributes of the base version of each ingredient the mod adds(e.g: "tomato"), and whatever foods from that mod that needs that ingredient to craft(or smelt, or cook, etc) will have the appropriate attributes(e.g: "hamburguer"). There's also a small HUD in the top-left that shows your active food buffs and how much time is left on each one, since most of them are invisible otherwise.
Foods can also give typed effects now, not just plain attribute modifiers. There's a bunch of on-hit ones (set enemies on fire, freeze them, lifesteal, shield break, an execute that scales with missing health, a follow-up hit, outgoing damage scaling), or you can just make it apply any status effect or lingering cloud on hit. There's also on-attacked ones that trigger when something hits you, so you can retaliate with a status effect, light the attacker on fire, knock them back, or reduce the damage you take(which means you can make a food that basically gives fire resistance). And foods can just give a normal status effect like night vision or water breathing on eat. There's some new attributes too, like explosion and projectile resistance, damage reflection, passive regen, second wind, an item magnet, reduced sprint exhaustion, and a gradual night vision without the ugly flicker.
Farmer's Delight is a required dependency now, because FoodAttributes takes over its skillet and turns it into a freeform cooking station, kind of like Cuisine's Delight but fully data-driven. You throw ingredients into the pan and cook them over any heat source(each one cooks at its own speed), either placed on a block or just held in your hand. Empty-hand right-click stirs and flips, sneak + empty-hand wipes the pan. Every ingredient has a cooking window and its quality goes from 0% raw up to 100% perfect and then back down to 0% burnt, with Raw/Undercooked/Perfect/Overcooked/Burnt labels. Some foods you keep stirring, some you flip, some (spices) are always fine no matter what.
When you're done you serve the dish into a bowl and get a dish item whose hunger, saturation and food attributes are all calculated from what's actually in the pan, scaled by how well each ingredient was cooked. The plate borrows the look of whatever vanilla or Farmer's Delight food it most resembles, and it's eaten in a few bites. On top of that there's synergies, which are datapack rules that let ingredients affect each other while they cook together, for spices, aromatics and multi-stage dishes. You can serve a plate and dump it back into another pan later and it remembers how cooked it was and how long it rested, so stuff like cooking the rice, letting it rest and then adding raw fish to get Sushi works. The default datapack ships a bunch of these(Sugar Glaze, Salt-Cured, Sushi, Lantern Stew, Blood Pudding, Trail Mix, Fajita, Fugu, plus "clash" rules for bad combos).
Heat sources, cooking profiles, synergies, plate textures, it's all datapack JSON, with built-in support for Vanilla, Farmer's Delight, My Nether's Delight, No Man's Land, Diversity Delight, Biomes O' Plenty and The Undergarden. If you don't want any of it you can turn the whole cooking system off in the config and the skillet goes back to acting like normal Farmer's Delight.
There's also a few optional toggles(all synced from the server) that change how survival works. Hunger replacement hides the hunger bar and removes hunger drain, starvation and hunger-based regen, and instead food banks some health based on its nutrition and heals it back over time based on its saturation, but only while you're actually hurt(it persists through relogs and resets on death). Food poisoning makes badly-cooked food poison and hurt you, based on this mod's cook state so both undercooked and overcooked count, and the damage ignores armor and i-frames. There's also one for cancelling your eat/drink when you get hit, and one to let you eat anything at any time even on a full hunger bar.
You can edit global multipliers, multipliers that get applied for each crafting type, extra multipliers for the skillet dishes, diminishing returns for spamming the same ingredient, on-hit cooldowns, etc etc. You can configure a bunch of stuff, again, go check the docs.
This is technically an addon for AttributeSetter, which is a required dependency for this mod. The old Cuisine's Delight integration got removed, the generic skillet dish system replaces it.

If you are building a modpack
you might be interested in some of my other mods for modpacks:
AttributeSetter
RPGDamageOverhaul
FoodAttributes
Or Claims n Raids for servers!
评论 0
登录后参与评分
还没有评论,来抢沙发吧