Used to set the fluid amount an entity can hold, as well as the connection points for pipes leading into and out of the entity.
Entities can have multiple fluidboxes. These can be part of a FluidEnergySource, or be specified directly in the entity prototype.
struct
FluidAmountfalseMust be greater than 0.
Array<PipeConnectionDefinition>falseConnection points to connect to other fluidboxes. This is also marked as blue arrows in alt mode. Fluid may flow in or out depending on the type field of each connection.
Connection points may depend on the direction the entity is facing. These connection points cannot share positions with one another or the connection points of another fluid box belonging to the same entity.
Can't have more than 255 connections.
FluidIDtrueCan be used to specify which fluid is allowed to enter this fluid box. See here.
RenderLayertruebooleantruebooleantrueHides the blue input/output arrows and icons at each connection point.
floattrueA fraction of the volume that will be "reserved" and cannot be removed by flow operations. This does nothing if the fluidbox is part of a fluid segment.
Sprite4WaytrueThe pictures to show when no fluid box is connected to this one.
Sprite4WaytrueSprite4WaytrueSprite4WaytrueSprite4WaytruePipe picture variation used when owner machine is flipped. If no picture is loaded, pipe_picture is used instead.
Sprite4WaytrueFrozen pipe picture variation used when owner machine is flipped. If no picture is loaded, pipe_picture_frozen is used instead.
floattrueThe minimum temperature allowed into the fluidbox. Only applied if a filter is specified.
minimum_temperature = 100.0
floattrueThe maximum temperature allowed into the fluidbox. Only applied if a filter is specified.
maximum_temperature = 1000.0
uint32trueThe max extent that a pipeline with this fluidbox can span. A given pipeline's extent is calculated as the min extent of all the fluidboxes that comprise it.
ProductionTypetrueint8trueSet the secondary draw order for all orientations. Used to determine render order for sprites with the same render_layer in the same position. Sprites with a higher secondary_draw_order are drawn on top.
FluidBoxSecondaryDrawOrderstrueSet the secondary draw order for each orientation. Used to determine render order for sprites with the same render_layer in the same position. Sprites with a higher secondary_draw_order are drawn on top.
The individual directions default to the value of secondary_draw_order.
booleantrueDefaults to true if pipe_picture is not defined, otherwise defaults to false.
Array<string>trueArray of the WorkingVisualisation::name of working visualisations to enable when this fluidbox is present.
If draw_only_when_connected is true, then the working visualisation are only enabled when this is *connected*.