Description
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).
This mod divides food into four groups:
1) fine to eat - self explanatory.
2) 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.
3) 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.
4) 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.
As of 1.12 (minecraft 1.21), InterModComms functionality was deleted. Datapack makers and fellow modders need to use items tags now.
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.
Notes
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 detailed documentation on the file structure: link.
AD
Become Premium to remove Ads!
What means Verified?
-
Compatibility: The mod should be compatible with the latest version of Minecraft and be clearly labeled with its supported versions.
-
Functionality: The mod should work as advertised and not cause any game-breaking bugs or crashes.
-
Security: The mod should not contain any malicious code or attempts to steal personal information.
-
Performance: The mod should not cause a significant decrease in the game's performance, such as by causing lag or reducing frame rates.
-
Originality: The mod should be original and not a copy of someone else's work.
-
Up-to-date: The mod should be regularly updated to fix bugs, improve performance, and maintain compatibility with the latest version of Minecraft.
-
Support: The mod should have an active developer who provides support and troubleshooting assistance to users.
-
License: The mod should be released under a clear and open source license that allows others to use, modify, and redistribute the code.
-
Documentation: The mod should come with clear and detailed documentation on how to install and use it.
AD
Become Premium to remove Ads!
How to Install
Download Forge & Java
Download Forge from the offical Site or here. If you dont have Java installed then install it now from here. After Downloading Forge you can run the file with Java.
Prepare
Lounch Minecraft and select your Forge istallation as Version this will create a Folder called Mods.
Add Mods
Type Win+R and type %appdata% and open the .minecraft Folder. There will you find your Folder called Mods. Place all Mods you want to play in this Folder
Enjoy
You are now Ready. Re-start your Game and start Playing.