Factorio Prototype DocsVersion 2.1.9

FluidIngredientPrototype - Prototype Docs

FluidIngredientPrototype :: struct changedExample code

A fluid ingredient definition.

Properties

type :: "fluid"
name :: FluidID

The name of a FluidPrototype.

The name of a FluidPrototype.

amount :: FluidAmount

Can not be <= 0.

Can not be <= 0.

temperature optional :: float

Sets the expected temperature of the fluid ingredient.

Sets the expected temperature of the fluid ingredient.

minimum_temperature optional :: float

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 :: float

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.

ignored_by_stats optional :: FluidAmount

Amount that should not be included in the consumption statistics, typically with a matching product having the same amount set as ignored_by_stats.

Amount that should not be included in the consumption statistics, typically with a matching product having the same amount set as ignored_by_stats.

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. [...]

optional_fluidbox_indexesnew optional :: array[uint32]

Additional fluid boxes that will be also used by this fluid ingredient. [...]

Additional fluid boxes that will be also used by this fluid ingredient. [...]

fluidbox_multiplier optional :: uint8

Used to set crafting machine fluidbox volumes. [...]

Used to set crafting machine fluidbox volumes. [...]

Properties

type :: "fluid"

name :: FluidID

The name of a FluidPrototype.

amount :: FluidAmount

Can not be <= 0.

temperature :: float optional

Sets the expected temperature of the fluid ingredient.

minimum_temperature :: float optional

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

maximum_temperature :: float optional

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

ignored_by_stats :: FluidAmount optional

Default: 0

Amount that should not be included in the consumption statistics, typically with a matching product having the same amount set as ignored_by_stats.

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.

optional_fluidbox_indexes :: array[uint32] optional new

Additional fluid boxes that will be also used by this fluid ingredient. If a machine does not have a fluid box with that index, then this index will be silently skipped without making recipe uncraftable.

Only loaded if fluidbox_index is defined.

fluidbox_multiplier :: uint8 optional

Default: 3

Used to set crafting machine fluidbox volumes. Must be at least 1.

Example

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

Prototypes

Types

Defines

Fulltext search for