Spoiled Add-on

Spoiled Add-on

6.8k Downloads

Warning: This mod does nothing by itself other than adding a single item*, which is almost completely useless. This is meant to replace food items when they reach 100% spoilage. The spoiling process is a feature of Spoiled, by Mrbysco, ShyNieke. By default, Spoiled will replace food with Rotten Flesh, so you'll have to manually change that to the Spoiled Food item (spoiled_addon:spoiled_food) in the configs. I decided to make this mod to include it in my modpack, Alar, because Rotten Flesh can be used to obtain leather, and I don't want players to farm leather (it's kinda cheat-y). I will also make the item compostable with Crafttweaker in my modpack, but that's something you can easily do yourself: All you have to do (assuming you have Crafttweaker installed) is 1. create a text doc. inside the Scripts folder, 2. name it "something.zs" (just make sure it has the .zs suffix), and 3. copy the following lines to that doc:

import crafttweaker.api.Composter;

composter.setValue(<item:spoiled_addon:spoiled_food>, 0.80);

Leave a comment if you're having trouble going through this set-up

* As of 1.1, the mod also adds a cooling container! This can be added to the containerModifier to change how fast food spoils inside that container. Note that the block is supposed to be powered in order to function, so you should add the block "spoiled_addon:poweredcoolingcontainer" to the list (I recommend setting the modifier to 0.2). If you don't want this feature, install the earlier version.