Product :: union
Union members
| ItemProduct | Returned when the |
| FluidProduct | Returned when the |
Examples
-- Products of the "steel-chest" recipe (an array of Product)
{{type="item", name="steel-chest", amount=1}}
-- Products of the "advanced-oil-processing" recipe
{
{type = "fluid", name = "heavy-oil", amount = 25},
{type = "fluid", name = "light-oil", amount = 45},
{type = "fluid", name = "petroleum-gas", amount = 55}
}
-- What a custom recipe would look like that had a probability of 0.5 to return a
-- minimum amount of 1 and a maximum amount of 5
{{type="item", name="custom-item", independent_probability=0.5, amount_min=1, amount_max=5}}

