| Inherits from PrototypeBase |
| category optional | :: RecipeCategoryID |
Controls which category of machines can craft this recipe. |
|
Controls which category of machines can craft this recipe. |
||
| subgroup optional | :: ItemSubGroupID |
The subgroup of this recipe. |
|
The subgroup of this recipe. |
||
| crafting_machine_tint optional | :: CraftingMachineTint |
Used by CraftingMachinePrototype::working_visualisations to tint certain layers with the recipe color. |
|
Used by CraftingMachinePrototype::working_visualisations to tint certain layers with the recipe color. |
||
| icons optional | :: array[IconData] |
Can't be an empty array. |
|
Can't be an empty array. |
||
| icon optional | :: FileName |
If given, this determines the recipe's icon. |
|
If given, this determines the recipe's icon. |
||
| icon_size optional | :: SpriteSizeType |
The size of the square icon, in pixels, e.g. |
|
The size of the square icon, in pixels, e.g. |
||
| icon_mipmaps optional | :: IconMipMapType |
Icons of reduced size will be used at decreased scale. |
|
Icons of reduced size will be used at decreased scale. |
||
| normal optional |
:: RecipeData or
false
|
Can be set to |
|
Can be set to |
||
| expensive optional |
:: RecipeData or
false
|
Can be set to |
|
Can be set to |
||
| ingredients optional | :: array[IngredientPrototype] |
A table containing ingredient names and counts. |
|
A table containing ingredient names and counts. |
||
| results optional | :: 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 |
Only loaded if neither |
|
Only loaded if neither |
||
| requester_paste_multiplier optional | :: uint32 |
Only loaded if neither |
|
Only loaded if neither |
||
| 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.). |
||
| type | :: string |
Specifies the kind of prototype this is. |
|
Specifies the kind of prototype this is. |
||
| name | :: string |
Unique textual identification of the prototype. |
|
Unique textual identification of the prototype. |
||
| order optional | :: Order |
Used to order prototypes in inventory, recipes and GUIs. |
|
Used to order prototypes in inventory, recipes and GUIs. |
||
| localised_name optional | :: LocalisedString |
Overwrites the name set in the locale file. |
|
Overwrites the name set in the locale file. |
||
| localised_description optional | :: LocalisedString |
Overwrites the description set in the locale file. |
|
Overwrites the description set in the locale file. |
||
icon = "__base__/graphics/icons/fluid/heavy-oil.png"
false
optional
false
optional
-- 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}}
{
type = "recipe",
name = "iron-plate",
category = "smelting",
energy_required = 3.5,
ingredients = {{"iron-ore", 1}},
result = "iron-plate"
}
{
type = "recipe",
name = "coal-liquefaction",
category = "oil-processing",
subgroup = "fluid-recipes",
order = "a[oil-processing]-c[coal-liquefaction]",
enabled = false,
energy_required = 5,
icon = "__base__/graphics/icons/fluid/coal-liquefaction.png",
icon_size = 32,
ingredients =
{
{type="item", name="coal", amount=10},
{type="fluid", name="heavy-oil", amount=25},
{type="fluid", name="steam", amount=50}
},
results=
{
{type="fluid", name="heavy-oil", amount=35},
{type="fluid", name="light-oil", amount=15},
{type="fluid", name="petroleum-gas", amount=20}
},
allow_decomposition = false
}
{ -- Recipe with difficulty
type = "recipe",
name = "iron-gear-wheel",
normal =
{
ingredients = {{"iron-plate", 2}},
result = "iron-gear-wheel"
},
expensive =
{
ingredients = {{"iron-plate", 4}},
result = "iron-gear-wheel"
}
}
{ -- Uncraftable in normal mode (unless unlocked via command/research)
type = "recipe",
name = "iron-gear-wheel",
normal = false,
expensive =
{
ingredients = {{"iron-plate", 4}},
result = "iron-gear-wheel"
}
}
{ -- Expensive recipe always used, even when in normal mode
type = "recipe",
name = "iron-gear-wheel",
normal = nil, -- can be omitted
expensive =
{
ingredients = {{"iron-plate", 4}},
result = "iron-gear-wheel"
}
}