recipe

class RecipeMixin(
recipe: ~typing.Annotated[str,
<function conditional.<locals>.decorator.<locals>.attr_validator at 0x7e1ce6927520>] | None = None,
recipe_quality: ~typing.Literal['normal',
'uncommon',
'rare',
'epic',
'legendary',
'quality-unknown'] | None = 'normal',
*,
extra_keys: dict[str,
~typing.Any] | None = None,
)

Enables the Entity to have a current recipe it’s set to make and a set of recipes that it can make.

property allowed_input_ingredients

Returns a set of all ingredient names that are valid inputs for the currently selected recipe and recipe quality. Returns None if there is insufficient information to deduce this.

property allowed_recipes : list[str]

A list of all the recipes that this Entity can set itself to assemble. Returns None if the entity’s name is not recognized by Draftsman.

recipe : attr_validator at 0x7e1ce6927520>] | None

Serialized

This attribute is imported/exported from blueprint strings.

The recipe that this Entity is currently set to make.

Raises a ModuleLimitationWarning if the recipe changes to one that conflicts with the current module requests.

Raises a ItemLimitationWarning if the recipe changes to one whose input ingredients no longer match the current item requests.

Raises UnknownRecipeWarning if set to a string that is not contained within this entity’s recipes.

recipe_quality : Literal['normal', 'uncommon', 'rare', 'epic', 'legendary', 'quality-unknown'] | None

Serialized

This attribute is imported/exported from blueprint strings.

The quality of the recipe that this Entity is selected to make.

Added in version 3.0.0: (Factorio 2.0)