ingredients | :: array[IngredientPrototype] |
A table containing ingredient names and counts. |
A table containing ingredient names and counts. |
||
results | :: array[ProductPrototype] |
A table containing result names and counts. |
A table containing result names and counts. |
||
result optional | :: ItemID |
The item created by this recipe. |
The item created by this recipe. |
||
result_count optional | :: uint16 |
The number of items created by this recipe. |
The number of items created by this recipe. |
||
main_product optional | :: string |
For recipes with one or more products: Subgroup, localised_name and icon default to the values of the singular/main product, but can be overwritten by the recipe. |
For recipes with one or more products: Subgroup, localised_name and icon default to the values of the singular/main product, but can be overwritten by the recipe. |
||
energy_required optional | :: double |
The amount of time it takes to make this recipe. |
The amount of time it takes to make this recipe. |
||
emissions_multiplier optional | :: double |
|
requester_paste_multiplier optional | :: uint32 |
|
overload_multiplier optional | :: uint32 |
Used to determine how many extra items are put into an assembling machine before it's considered "full enough". |
Used to determine how many extra items are put into an assembling machine before it's considered "full enough". |
||
allow_inserter_overload optional | :: bool |
Whether the recipe is allowed to have the extra inserter overload bonus applied (4 * stack inserter stack size). |
Whether the recipe is allowed to have the extra inserter overload bonus applied (4 * stack inserter stack size). |
||
enabled optional | :: bool |
This can be |
This can be |
||
hidden optional | :: bool |
Hides the recipe from crafting menus. |
Hides the recipe from crafting menus. |
||
hide_from_stats optional | :: bool |
Hides the recipe from item/fluid production statistics. |
Hides the recipe from item/fluid production statistics. |
||
hide_from_player_crafting optional | :: bool |
Hides the recipe from the player's crafting screen. |
Hides the recipe from the player's crafting screen. |
||
allow_decomposition optional | :: bool |
Whether this recipe is allowed to be broken down for the recipe tooltip "Total raw" calculations. |
Whether this recipe is allowed to be broken down for the recipe tooltip "Total raw" calculations. |
||
allow_as_intermediate optional | :: bool |
Whether the recipe can be used as an intermediate recipe in hand-crafting. |
Whether the recipe can be used as an intermediate recipe in hand-crafting. |
||
allow_intermediates optional | :: bool |
Whether the recipe is allowed to use intermediate recipes when hand-crafting. |
Whether the recipe is allowed to use intermediate recipes when hand-crafting. |
||
always_show_made_in optional | :: bool |
Whether the "Made in: |
Whether the "Made in: |
||
show_amount_in_title optional | :: bool |
Whether the recipe name should have the product amount in front of it, e.g. |
Whether the recipe name should have the product amount in front of it, e.g. |
||
always_show_products optional | :: bool |
Whether the products are always shown in the recipe tooltip. |
Whether the products are always shown in the recipe tooltip. |
||
unlock_results optional | :: bool |
Whether enabling this recipe unlocks its item products to show in selection lists (item filters, logistic requests, etc.). |
Whether enabling this recipe unlocks its item products to show in selection lists (item filters, logistic requests, etc.). |
-- Shorthand format
ingredients = {{"iron-stick", 2}, {"iron-plate", 3}}
-- Full format
ingredients = {
{type = "item", name = "iron-stick", amount = 2},
{type = "item", name = "iron-plate", amount = 3}
}
-- Fluids don't support shorthand
ingredients = {
{type="fluid", name="water", amount=50},
{type="fluid", name="crude-oil", amount=100}
}
results = {
{type="fluid", name="heavy-oil", amount=3},
{type="fluid", name="light-oil", amount=3},
{type="fluid", name="petroleum-gas", amount=4}
}
results = {
{type = "item", name = "iron-nuggets", amount = 9},
{type = "item", name = "gold-nuggets", amount = 1}
}
results = {{type = "fluid", name = "steam", amount = 1, temperature = 165}}