Changes

m
Move qualification into a tip box.
Line 56: Line 56:     
In the above example, the modification only happens if the player harvests wheat when using shears (specified by the two <code>conditions</code> which are automatically <code>AND</code>ed together). The <code>seedsItem</code> and <code>numSeeds</code> values are then used to count how many seeds were generated by the vanilla loot table, and if matched, are substituted for an additional <code>replacement</code> item instead. The operation code will be shown below.
 
In the above example, the modification only happens if the player harvests wheat when using shears (specified by the two <code>conditions</code> which are automatically <code>AND</code>ed together). The <code>seedsItem</code> and <code>numSeeds</code> values are then used to count how many seeds were generated by the vanilla loot table, and if matched, are substituted for an additional <code>replacement</code> item instead. The operation code will be shown below.
<code>conditions</code> is the only object needed by the system specification, everything else is the mod maker's data.
     −
Note that seedItem, numSeeds and replacement are NOT standard elements of Global Loot Modifiers. They are added by the creator of this json, and are parsed manually using the Serializer of the next section:
+
{{Tip|<code>conditions</code> is the only object needed by the system specification, everything else is the mod maker's data. <code>seedItem</code>, <code>numSeeds</code> and <code>replacement</code> are NOT standard elements of Global Loot Modifiers.}}
    
== The LootModifier Subclass ==
 
== The LootModifier Subclass ==