main_product :: Product? Read
The main product of this recipe, if any.
A crafting recipe prototype.
help() | → string | All methods and properties that this object supports. |
All methods and properties that this object supports. | ||
enabled [R] | :: boolean | If this recipe prototype is enabled by default (enabled at the beginning of a game). |
If this recipe prototype is enabled by default (enabled at the beginning of a game). | ||
name [R] | :: string | Name of the recipe. [...] |
Name of the recipe. [...] | ||
localised_name [R] | :: LocalisedString | Localised name of the recipe. |
Localised name of the recipe. | ||
localised_description [R] | :: LocalisedString | |
category [R] | :: string | Category of the recipe. |
Category of the recipe. | ||
ingredients [R] | :: array[Ingredient] | The ingredients to this recipe. |
The ingredients to this recipe. | ||
products [R] | :: array[Product] | The results/products of this recipe. |
The results/products of this recipe. | ||
main_product [R] | :: Product? | The main product of this recipe, if any. |
The main product of this recipe, if any. | ||
hidden [R] | :: boolean | Is the recipe hidden? [...] |
Is the recipe hidden? [...] | ||
hidden_from_flow_stats [R] | :: boolean | Is the recipe hidden from flow statistics (item/fluid production statistics)? |
Is the recipe hidden from flow statistics (item/fluid production statistics)? | ||
hidden_from_player_crafting [R] | :: boolean | Is the recipe hidden from player crafting? [...] |
Is the recipe hidden from player crafting? [...] | ||
always_show_made_in [R] | :: boolean | Should this recipe always show "Made in" in the tooltip? |
Should this recipe always show "Made in" in the tooltip? | ||
energy [R] | :: double | Energy required to execute this recipe. [...] |
Energy required to execute this recipe. [...] | ||
order [R] | :: string | The string used to alphabetically sort these prototypes. [...] |
The string used to alphabetically sort these prototypes. [...] | ||
group [R] | :: LuaGroup | Group of this recipe. |
Group of this recipe. | ||
subgroup [R] | :: LuaGroup | Subgroup of this recipe. |
Subgroup of this recipe. | ||
request_paste_multiplier [R] | :: uint | The multiplier used when this recipe is copied from an assembling machine to a requester chest. [...] |
The multiplier used when this recipe is copied from an assembling machine to a requester chest. [...] | ||
overload_multiplier [R] | :: uint | 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 [R] | :: boolean | If the recipe is allowed to have the extra inserter overload bonus applied (4 * stack inserter stack size). |
If the recipe is allowed to have the extra inserter overload bonus applied (4 * stack inserter stack size). | ||
allow_as_intermediate [R] | :: boolean | If this recipe is enabled for the purpose of intermediate hand-crafting. |
If this recipe is enabled for the purpose of intermediate hand-crafting. | ||
allow_intermediates [R] | :: boolean | If this recipe is allowed to use intermediate recipes when hand-crafting. |
If this recipe is allowed to use intermediate recipes when hand-crafting. | ||
show_amount_in_title [R] | :: boolean | If the amount is shown in the recipe tooltip title when the recipe produces more than 1 product. |
If the amount is shown in the recipe tooltip title when the recipe produces more than 1 product. | ||
always_show_products [R] | :: boolean | If the products are always shown in the recipe tooltip. |
If the products are always shown in the recipe tooltip. | ||
emissions_multiplier [R] | :: double | The emissions multiplier for this recipe. |
The emissions multiplier for this recipe. | ||
allow_decomposition [R] | :: boolean | Is this recipe allowed to be broken down for the recipe tooltip "Total raw" calculations? |
Is this recipe allowed to be broken down for the recipe tooltip "Total raw" calculations? | ||
unlock_results [R] | :: boolean | Is this recipe unlocks the result item(s) so they're shown in filter-select GUIs. |
Is this recipe unlocks the result item(s) so they're shown in filter-select GUIs. | ||
valid [R] | :: boolean | Is this object valid? [...] |
Is this object valid? [...] | ||
object_name [R] | :: string | The class name of this object. [...] |
The class name of this object. [...] |
All methods and properties that this object supports.
If this recipe prototype is enabled by default (enabled at the beginning of a game).
Name of the recipe. This can be different than the name of the result items as there could be more recipes to make the same item.
Localised name of the recipe.
Category of the recipe.
The ingredients to this recipe.
The ingredients of
|
The results/products of this recipe.
The products of
|
The main product of this recipe, if any.
Should this recipe always show "Made in" in the tooltip?
Energy required to execute this recipe. This directly affects the crafting time: Recipe's energy is exactly its crafting time in seconds, when crafted in an assembling machine with crafting speed exactly equal to one.
The string used to alphabetically sort these prototypes. It is a simple string that has no additional semantic meaning.
Group of this recipe.
Subgroup of this recipe.
The multiplier used when this recipe is copied from an assembling machine to a requester chest. For each item in the recipe the item count * this value is set in the requester chest.
Used to determine how many extra items are put into an assembling machine before it's considered "full enough".
If the recipe is allowed to have the extra inserter overload bonus applied (4 * stack inserter stack size).
If this recipe is enabled for the purpose of intermediate hand-crafting.
If this recipe is allowed to use intermediate recipes when hand-crafting.
If the amount is shown in the recipe tooltip title when the recipe produces more than 1 product.
If the products are always shown in the recipe tooltip.
The emissions multiplier for this recipe.
Is this recipe allowed to be broken down for the recipe tooltip "Total raw" calculations?
Is this recipe unlocks the result item(s) so they're shown in filter-select GUIs.
Is this object valid? This Lua object holds a reference to an object within the game engine. It is possible that the game-engine object is removed whilst a mod still holds the corresponding Lua object. If that happens, the object becomes invalid, i.e. this attribute will be false
. Mods are advised to check for object validity if any change to the game state might have occurred between the creation of the Lua object and its access.
The class name of this object. Available even when valid
is false. For LuaStruct objects it may also be suffixed with a dotted path to a member of the struct.