Factorio Prototype DocsVersion 1.1.107

FluidIngredientPrototype :: struct Example code

A fluid ingredient definition.

Properties

type :: "fluid"
name :: FluidID

The name of a FluidPrototype.

The name of a FluidPrototype.

amount :: double

Can not be <= 0.

Can not be <= 0.

temperature optional :: double

Sets the expected temperature of the fluid ingredient.

Sets the expected temperature of the fluid ingredient.

minimum_temperature optional :: double

If temperature is not set, this sets the expected minimum temperature of the fluid ingredient.

If temperature is not set, this sets the expected minimum temperature of the fluid ingredient.

maximum_temperature optional :: double

If temperature is not set, this sets the expected maximum temperature of the fluid ingredient.

If temperature is not set, this sets the expected maximum temperature of the fluid ingredient.

catalyst_amount optional :: double

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

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

fluidbox_index optional :: uint32

Used to specify which CraftingMachinePrototype::fluid_boxes this ingredient should use. [...]

Used to specify which CraftingMachinePrototype::fluid_boxes this ingredient should use. [...]

Properties

type :: "fluid"

name :: FluidID

The name of a FluidPrototype.

amount :: double

Can not be <= 0.

temperature :: double optional

Sets the expected temperature of the fluid ingredient.

minimum_temperature :: double optional

If temperature is not set, this sets the expected minimum temperature of the fluid ingredient.

maximum_temperature :: double optional

If temperature is not set, this sets the expected maximum temperature of the fluid ingredient.

catalyst_amount :: double optional

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.

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

fluidbox_index :: uint32 optional

Default: 0

Used to specify which CraftingMachinePrototype::fluid_boxes this ingredient should use. It will use this one fluidbox. The index is 1-based and separate for input and output fluidboxes.

Example

{type="fluid", name="water", amount=50}

Prototypes

Types