简介
这个小模组通过给食用生食物的玩家施加负面效果,增添了一丝微弱的真实感。
Mojang 曾短暂地有过类似的想法,但不知为何最终变成了一个蹩脚的玩笑——吃生鸡肉只会减少少量饥饿值,而生猪肉莫名其妙地没有任何效果。但现在情况不同了。有了这个模组,60 秒的缓慢效果会提醒人们下次记得把兔子烤熟。这虽然不会置人于死地,但会让吃生食物变得得不偿失。另一方面,吃僵尸腐肉绝对是个糟糕的主意,很可能会让你的处境雪上加霜(除非你运气爆棚,完全抵抗了这些效果)。
详情
本模组将食物分为四类:
- 可生食——顾名思义。
- 轻微效果——代表物品:生土豆——那些应该被烹饪/烘烤的蔬菜,以及其他虽不适合生食但不如以下类别那样糟糕的东西。预期会出现诸如伤害降低(虚弱)等烦人效果。你有很大的机会完全抵抗这些效果。
- 中等效果——代表物品:生肉——这是默认类别,会自动捕获所有未手动归入其他三个类别的生食物品。预期会出现移动速度减慢、挖掘速度减慢,以及偶尔出现的中毒效果。
- 严重效果——代表物品:腐肉——即使是饿疯的人也不该碰的东西。预期会出现中毒、失明、恶心……
你获得的随机从预定义集合中选择,且选定的集合会被记住几分钟,因此重复食用同一种食物不会应用新的效果集;相反,原有效果的持续时间会增加。不用担心技术细节,只管去烤那块猪排吧。
致整合包制作者和其他模组开发者
在 1.00 版本中,其他模组开发者需要使用 InterModComms 来更改食物物品的分类,而整合包制作者则没有选择权。
从 1.10 版本开始,这两类用户都可以并且应该使用物品标签(item tags)。
示例:你添加了 Food1 和 Food2,两者均可食用,且 Food1 可在营火等方块上烹饪成 Food2。
Food1 物品会自动归入“中等效果”类别。如果你对此满意,则无需进行任何操作。
若要将你的新物品移至其他类别,请使用标签(json 文件)。如果 Food1 可以生吃,请将其添加到 cookyourfood 命名空间下的 ok_to_eat_raw.json 中。此外还有 raw_food_severe.json、raw_food_light.json 和 raw_food_normal.json。
你很少需要将任何物品添加到“普通类别”。模组会自动检测可烹饪和可食用的物品,并将所有这些物品归入该类别。其中一个使用此类别的例子是热带鱼——可食用但不可烹饪。
类别按照上述列出的顺序进行评估。因此,如果模组 1 将某物放入“普通”类别,而模组 2 将同一食物放入“严重”类别,我们将应用严重效果。模组的加载顺序无关紧要。
致整合包制作者
从 1.10 版本开始,应广大要求,效果不再硬编码。配置目录中有一个 json 文件,你可以在其中编辑哪些效果可以作用于喜爱生食的爱好者。
以下是该文件结构的文档:链接。
Introduction
This tiny little mod adds a tiny little bit of realism by applying negative effects to players eating raw food.
Mojang had a similar idea briefly but then it somehow turned into a pale joke - raw chicken inflicts a bit of hunger, raw pork for some reason gives you nothing. Well not anymore. With this mod, 60 seconds of slowness will remind people to cook that rabbit next time. That's not going to kill anyone but will make eating raw food not worth it. On the other hand, eating zombie flesh is a really bad idea and will probably make your situation much worse (unless you get really lucky and resist effects).
Details
This mod divides food into four groups:
- fine to eat - self explanatory.
- mild effects - representative: raw potato - Vegetables that should be cooked/baked and other stuff that shouldn't be eaten raw but aren't as bad as below categories. Expect nuisance effects like damage reduction (weakness). There's a good chance you'd resist effects completely.
- medium effects - representative: raw meat - This is a default category and will automatically catch all raw food items that are not put into other three categories manually. Expect effects like movement slowdown, mining slowdown, and rarely an actual poison effect.
- severe effects - representative: rotten flesh - Things that even starving people shouldn't touch. Expect effects like poison, blindness, nausea...
Effect you get is chosen randomly from predefined sets, and the chosen set is remembered for several minutes, so eating the same thing will not apply a new set of effects; instead durations of original effects will get increased. Don't worry about technicalities, just grill that porkchop.
Note for modpack makers and fellow modders
In version 1.00, fellow modders needed to use InterModComms to change the food category of food items and modpack makers had no option.
As of 1.10, both groups can and should use item tags.
Example: you add Food1 and Food2, both edible with Food1 cookable into Food2 (at campfire and similar blocks).
The Food1 item will automatically fall into "medium effects" category. If you're okay with that, you don't need to do anything.
To move your new item into other categories, use tags (json files). If Food1 is ok to eat raw, add it to ok_to_eat_raw.json under cookyourfood namespace. there are also raw_food_severe.json, raw_food_light.json and raw_food_normal.json.
You rarely want to add anything to "normal category". the mod will auto-detect cookable and edible items and put all of those into that category. one example where you'd use that one is tropical fish - edible but not cookable.
Categories are evaluated in order listed above. so if mod 1 puts something into "normal" and mod 2 puts that same food into "severe" category, we will apply severe effects. Order of mods loading doesn't matter.
Note for modpack makers
As of 1.10, by popular request, effects are no longer hard-coded. There is a json file in config directory where you can edit what effects can hit raw food aficionados.
Here's documentation on the file structure: link.
下载 Cook your food
下载 Cook your food
下载 Cook your food
下载 Cook your food
下载 Cook your food
下载 Cook your food
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Cook your food
下载 Cook your food
下载 Cook your food
下载 Cook your food
来自 Fabric 版本中我忘记移植的内容
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
简单的原版生物群系更新,包含有趣的怪物、方块等更多内容!
模组
为你的终界增添新生物群系、神秘仪式和全新生物
模组
TerraFirmaCraft (TFC) 是一个全面转换模组,对生存模式进行了彻底的改造与重新设计。
模组
更多生物群系,更多生物,更多工具,为炽热的维度
模组
一款功能齐全的 Minecraft 模组,关于驾驭色彩的力量
模组
在骑马时显示食物和经验条。
评论 0
登录后参与评分
还没有评论,来抢沙发吧