Factorio Prototype DocsVersion 1.1.107

IngredientPrototype :: union Example code

Defaults to loading ingredients as items. This allows ItemIngredientPrototype to load in a shorthand array format.

Union members

ItemIngredientPrototype

Loaded when the type is "item".

FluidIngredientPrototype

Loaded when the type is "fluid".

Examples

{"electronic-circuit", 5} -- short format used for item ingredients
{type="item", name="steel-plate", amount=8} -- long format used for item ingredients
{type="fluid", name="water", amount=50} -- fluid ingredients must use the long format

Prototypes

Types