Skip to content

Configuration

SphereII edited this page Sep 18, 2024 · 1 revision

Configuration

The 0-SCore/Config/blocks.xml contains the Food spoilage snippet

 

<property class="FoodSpoilage">

    <property name="Logging" value="false"/>

 

    <!-- Turns on Food spoilage-->

    <property name="FoodSpoilage" value="false" />

 

    <!-- This is necessary for v1.0 for a bug that has been fixed in v1.1 -->

    <property name="UseAlternateItemValue" value="false" />

    

    <!-- Amount of spoilage per tick when an item is on the tool belt -->

    <property name="Toolbelt" value="6" />


    <!-- Amount of spoilage per tick when an item is in the back pack -->

    <property name="Backpack" value="5" />

    

<!-- Amount of spoilage per tick when in a standard container -->

    <property name="Container" value="4" />

 

    <!-- absolute minimum spoilage per tick -->    

    <property name="MinimumSpoilage" value="1" />

 

    <!-- Global Setting Example value=10   10 ticks per Spoilage increase. -->    

    <property name="TickPerLoss" value="10" />

 

    <!-- When spoiled, this item will turn into this item.-->

    <property name="SpoiledItem" value="foodRottingFlesh" />

        

    <!-- Determines if the entire stack spoils at the same time -->

<property name="FullStackSpoil" value="false" />

</property>

 

 

For items that are expected to spoil, you must set the following properties:

 

<property name="Spoilable" value="true" />

<property name="ShowQuality" value="false"/>

<property name="SpoilageMax" value="1000" />

<property name="SpoilagePerTick" value="1" />

 

These items are optional, and will over-ride individual settings from the global setting in blocks

 

<property name="SpoiledItem" value="foodRottingFlesh" />   

<property name="TickPerLoss" value="500" />      

 

 

For storage containers, you can configure them so that some containers will spoil faster, or slower, than the defaults.

 

The higher the Preserve bonus, the slower it'll spoil.

 

<property name="PreserveBonus" value="1.75" />


Created with the Personal Edition of HelpNDoc: HelpNDoc's Project Analyzer: Incredible documentation assistant

0-SCore

Table of contents

Clone this wiki locally