Qualify where seedItem, numSeeds and replacement come from.
Line 57:
Line 57:
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.
<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: