Home

FluidPrototype

A fluid.

Parent

Properties

icons

Can't be an empty array.

icon

Path to the icon file.

Only loaded, and mandatory if icons is not defined.

icon_size

The size of the square icon, in pixels. E.g. 32 for a 32px by 32px icon. Must be larger than 0.

Only loaded if icons is not defined.

default_temperature

Also the minimum temperature of the fluid. Has to be lower than max_temperature.

base_color

Used by bars that show the fluid color, like the flamethrower turret fill bar in the tooltip, or the fill bar for the fluid wagon tooltip; and for the pipe windows and storage tank fill gauges.

flow_color

Used only for pipe windows or storage tank fill gauges.

visualization_color

Color to use for visualization. This color should be vibrant and easily distinguished.

If not specified, this will be auto-generated from base_color by converting to HSV, decreasing saturation by 10% and setting value to 80%.

max_temperature

heat_capacity

Joule needed to heat 1 Unit by 1 °C.

Examples

heat_capacity = "0.2kJ"

fuel_value

Examples

fuel_value = "3MJ"

emissions_multiplier

Scales pollution generated when the fluid is consumed.

gas_temperature

Above this temperature the gas_flow animation is used to display the fluid inside storage tanks and pipes.

auto_barrel

Whether the fluid should be included in the barrel recipes automatically generated by the base mod.

This property is not read by the game engine itself, but the base mod's data-updates.lua file. This means it is discarded by the game engine after loading finishes.

hidden

Hides the fluid from the signal selection screen.