Factorio Prototype DocsVersion 1.1.107

ItemIngredientPrototype :: struct or {ItemID, uint16} Example code

An item ingredient definition. It can be specified as a table with named or numbered keys, but not a mix of both. If this is specified as a table with numbered keys then the first value is the item name and the second is the amount.

Properties

type optional :: "item"
name :: ItemID
amount :: uint16
catalyst_amount optional :: uint16

Amount of this ingredient that should not be included in the item consumption statistics. [...]

Amount of this ingredient that should not be included in the item consumption statistics. [...]

Properties

type :: "item" optional

Default: "item"

name :: ItemID

amount :: uint16

catalyst_amount :: uint16 optional

Default: 0

Amount of this ingredient that should not be included in the item consumption statistics. Usually used together with an equal catalyst amount on the "product" of the catalyst in the recipe.

If this fluid is used in a recipe, the catalyst_amount is calculated automatically based on the RecipePrototype::ingredients and RecipePrototype::results. See here.

Examples

{type="item", name="steel-plate", amount=8}
{"iron-plate", 12}

Prototypes

Types