Types/FluidIngredientPrototype: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Removed old prototype docs)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
A fluid ingredient definition for a [[Prototype/Recipe]]. Its loading is triggered by the <code>type</code> of a [[Types/IngredientPrototype]] being "fluid".
<div class="stub"><p>'''The prototype docs have moved to a new website with an improved format.''' This documentation page can now be found here: [https://lua-api.factorio.com/latest/types/FluidIngredientPrototype.html https://lua-api.factorio.com/latest/types/FluidIngredientPrototype.html]


== Mandatory properties ==
</p><p>This wiki page is no longer updated and '''will be removed at some point in the future''', so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback [https://forums.factorio.com/viewforum.php?f=233 on the forums].</p></div>
 
=== 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
 
Amount of this ingredient that should not be included in the fluid consumption statistics. Usually used together with an equal catalyst amount on the "product" of the catalyst in the recipe.
 
=== fluidbox_index ===
'''Type''': [[Types/uint32]]
 
'''Default''': 0 (no specific fluidbox)
 
Used to specify which [[Types/FluidBox|fluidbox]] this product should use on the machine. It will only use this one [[Types/FluidBox|fluidbox]].
 
== Example ==
 
<syntaxhighlight lang="lua">
{type="fluid", name="water", amount=50}</syntaxhighlight>
 
== See also ==
* [[Types/IngredientPrototype]]
* [[Types/ItemIngredientPrototype]]

Latest revision as of 14:32, 25 October 2024

The prototype docs have moved to a new website with an improved format. This documentation page can now be found here: https://lua-api.factorio.com/latest/types/FluidIngredientPrototype.html

This wiki page is no longer updated and will be removed at some point in the future, so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback on the forums.