crafting_machine

class CraftingMachineMixin(
circuit_set_recipe: bool = False,
read_contents: bool = False,
include_in_crafting: bool = True,
read_recipe_finished: bool = False,
recipe_finished_signal: Any | None = None,
read_working: bool = False,
working_signal: Any | None = None,
*,
extra_keys: dict[str, Any] | None = None,
)

Gives the crafting machine circuit controls over it’s behavior.

circuit_set_recipe : bool

Serialized

This attribute is imported/exported from blueprint strings.

Whether or not the circuit network should set the current recipe of the machine.

Added in version 3.0.0: (Factorio 2.0)

include_in_crafting : bool

Serialized

This attribute is imported/exported from blueprint strings.

Whether or not to output the contents of the items that are currently being used as ingredients during machine operation in addition to the other items currently sitting in this assembling machine. Only has an effect if read_contents is set to True.

Added in version 3.0.0: (Factorio 2.0)

read_contents : bool

Serialized

This attribute is imported/exported from blueprint strings.

Whether or not the items currently inside of the assembling machine should be broadcast to the circuit network.

Added in version 3.0.0: (Factorio 2.0)

read_recipe_finished : bool

Serialized

This attribute is imported/exported from blueprint strings.

Whether or not the assembling machine should pulse a signal for 1-tick the instant a recipe finishes it’s crafting cycle. What signal is output is determined by recipe_finished_signal.

Added in version 3.0.0: (Factorio 2.0)

read_working : bool

Serialized

This attribute is imported/exported from blueprint strings.

Whether or not a control signal should be broadcast to the circuit network when the machine is actively crafting an item or items. What signal is output is determined by working_signal.

Added in version 3.0.0: (Factorio 2.0)

recipe_finished_signal : SignalID | None

Serialized

This attribute is imported/exported from blueprint strings.

What signal to pulse when the crafting cycle completes. Only operates if read_recipe_finished is True.

Added in version 3.0.0: (Factorio 2.0)

working_signal : SignalID | None

Serialized

This attribute is imported/exported from blueprint strings.

What signal to continuously output when the machine is crafting. Only operates if read_working is True.

Added in version 3.0.0: (Factorio 2.0)