Factorio.com|Forums|Wiki|Mod Portal|API Docs

# Factorio Prototype Docs Version 2.0.77

# FluidIngredientPrototype - Prototype Docs

## FluidIngredientPrototype :: struct Example code

A fluid ingredient definition.

## Properties

- default
- sorted

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. [...]
fluidbox_multiplier optional | :: uint8 | Used to set crafting machine fluidbox volumes. [...]
Used to set crafting machine fluidbox volumes. [...]

amount | :: FluidAmount | Can not be `<= 0`.
Can not be `<= 0`.
name | :: FluidID | The name of a FluidPrototype.
The name of a FluidPrototype.
type | :: `"fluid"` |
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. [...]
fluidbox_multiplier optional | :: uint8 | Used to set crafting machine fluidbox volumes. [...]
Used to set crafting machine fluidbox volumes. [...]
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.
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.
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.
temperature optional | :: float | Sets the expected temperature of the fluid ingredient.
Sets the expected temperature of the fluid ingredient.

## 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.

### fluidbox_multiplier :: uint8 optional

Default: `2`

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

## Example

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

Type used in

- IngredientPrototype