Description
Food Spoiling
Requires geckolib
This mod adds scripting for a food spoilage system in an intuitive and server-friendly way. Whenever a player picks up a food item or views a food item in a chest, the food item will be assigned a number of days until it spoils. Once that many days have passed, the food item will turn into a rotten version of the item which will give the player effects similar to eating rotten flesh. Spoils times vary for different types of food. Raw meat will spoil the quickest, and unprocessed grains like wheat will take the longest to spoil.
To slow down the spoiling process, players can add salt to their meat to turn it into a salted version that takes much longer to spoil. Salt can be acquired by smelting buckets of water in a furnace. In addition to salting, this mod also adds an icebox which can be fueled with ice to slow down the time it takes for food to spoil.
New foods can be added to the spoiling system by editing tag lists. Simply add a food to the "spoilable" tag with a datapack to make it be able to spoil. It can then be added to another tag list to dictate spoil time and what item it decays into. Currently the mod does not have any built in support for other food mods, but I plan to add it as a feature soon. It is still very simple to do as a data pack for those interested.
Planned Features:
- Support for more food mods
- More pickled/salted/preserved foods
- Any ideas you may have. Let me know!


