Types/FluidIngredientPrototype: Difference between revisions
Jump to navigation
Jump to search
(typo) |
(added example) |
||
Line 32: | Line 32: | ||
'''Default''': 0 | '''Default''': 0 | ||
== Example == | |||
<syntaxhighlight lang="lua"> | |||
{type="fluid", name="water", amount=50}</syntaxhighlight> | |||
== See also == | == See also == | ||
* [[Types/IngredientPrototype]] | * [[Types/IngredientPrototype]] | ||
* [[Types/ItemIngredientPrototype]] | * [[Types/ItemIngredientPrototype]] |
Revision as of 08:32, 8 July 2019
A fluid ingredient definition for a Prototype/Recipe. Its loading is triggered by the type
of a Types/IngredientPrototype being "fluid".
Mandatory properties
name
Type: Types/string
The name of a Prototype/Fluid.
amount
Type: Types/double
Optional properties
temperature
Type: Types/double
Sets the expected temperature of the fluid ingredient.
minimum_temperature
Type: Types/double
If #temperature is not set, this sets the expected minimum temperature of the fluid ingredient.
maximum_temperature
Type: Types/double
If #temperature is not set, this sets the expected maximum temperature of the fluid ingredient.
catalyst_amount
Type: Types/double
Default: 0
Example
{type="fluid", name="water", amount=50}