An item product definition.
struct
"item"falseItemIDfalseThe name of an ItemPrototype.
uint16trueuint16trueOnly loaded, and mandatory if amount is not defined.
uint16trueOnly loaded, and mandatory if amount is not defined.
If set to a number that is less than amount_min, the game will use amount_min instead.
doubletrueValue between 0 and 1, 0 for 0% chance and 1 for 100% chance.
The effect of probability is no product, or a linear distribution on [min, max]. For a recipe with probability p, amount_min min, and amount_max max, the Expected Value of this product can be expressed as p * (0.5 * (max + min)). This is what will be shown in a recipe tooltip. The effect of ignored_by_productivity on the product is not shown.
When amount_min and amount_max are not provided, amount applies as min and max. The Expected Value simplifies to p * amount, providing 0 product, or amount product, on recipe completion.
uint16trueAmount that should not be included in the item production statistics, typically with a matching ingredient having the same amount set as ignored_by_stats.
If ignored_by_stats is larger than the amount crafted (for instance due to probability) it will instead show as consumed.
Products with ignored_by_stats defined will not be set as recipe through the circuit network when using the product's item-signal.
uint16trueAmount that should be deducted from any productivity induced bonus crafts.
This value can safely be set larger than the maximum expected craft amount, any excess is ignored.
This value is ignored when allow_productivity is false.
booleantrueWhen hovering over a recipe in the crafting menu the recipe tooltip will be shown. An additional item tooltip will be shown for every product, as a separate tooltip, if the item tooltip has a description and/or properties to show and if show_details_in_recipe_tooltip is true.
floattrueProbability that a craft will yield one additional product. Also applies to bonus crafts caused by productivity.
floattrueMust be >= 0 and < 1.