Types/ItemIngredientPrototype: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(0.17)
(added example)
Line 18: Line 18:


Only loaded if the table is using named keys.
Only loaded if the table is using named keys.
== Example ==
<syntaxhighlight lang="lua">
{type="item", name="steel-plate", amount=8}
</syntaxhighlight>


== See also ==
== See also ==
* [[Types/IngredientPrototype]]
* [[Types/IngredientPrototype]]
* [[Types/FluidIngredientPrototype]]
* [[Types/FluidIngredientPrototype]]

Revision as of 08:32, 8 July 2019

An item ingredient definition for a Prototype/Recipe. Its loading is triggered by the type of a Types/IngredientPrototype being "item". It can be specified as a table with named or numbered keys, but not a mix of both.

Mandatory properties

name or 1

Type: Types/string

The name of a Prototype/Item.

amount or 2

Type: Types/uint16

Optional properties

catalyst_amount

Type: Types/uint16

Default: 0

Only loaded if the table is using named keys.

Example

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

See also