PipeConnectionDefinition :: struct
| flow_direction optional | :: FluidFlowDirection | Allowed direction of fluid flow at this connection. [...] |
Allowed direction of fluid flow at this connection. [...] | ||
| connection_type optional | :: PipeConnectionType | Selects set of rules to follow when looking for other FluidBox this connection should connect to. |
Selects set of rules to follow when looking for other FluidBox this connection should connect to. | ||
| enable_working_visualisations optional | :: array[string] | Array of the WorkingVisualisation::name of working visualisations to enable when this pipe connection is present. [...] |
Array of the WorkingVisualisation::name of working visualisations to enable when this pipe connection is present. [...] | ||
| direction optional | :: defines.direction | Primary direction this connection points to when entity direction is north and the entity is not mirrored. [...] |
Primary direction this connection points to when entity direction is north and the entity is not mirrored. [...] | ||
| position optional | :: MapPosition | Position relative to entity's center where pipes can connect to this fluidbox regardless the directions of entity. [...] |
Position relative to entity's center where pipes can connect to this fluidbox regardless the directions of entity. [...] | ||
| positions optional | :: {MapPosition, MapPosition, MapPosition, MapPosition} | The 4 separate positions corresponding to the 4 main directions of entity. [...] |
The 4 separate positions corresponding to the 4 main directions of entity. [...] | ||
| connection_category optional | :: string or array[string] | Fluidboxes' pipe connections are only allowed to connect with each other if they share a connection category. [...] |
Fluidboxes' pipe connections are only allowed to connect with each other if they share a connection category. [...] | ||
| max_underground_distance optional | :: uint8 | Only loaded if |
Only loaded if | ||
| max_distance_tint optional | :: Color | Only loaded if |
Only loaded if | ||
| underground_collision_mask optional | :: CollisionMaskConnector | An underground connection may be defined as colliding with tiles in which case if any tile is placed between underground ends the connection will not be established. [...] |
An underground connection may be defined as colliding with tiles in which case if any tile is placed between underground ends the connection will not be established. [...] | ||
| linked_connection_id optional | :: FluidBoxLinkedConnectionID | Expected to be unique inside of a single entity. [...] |
Expected to be unique inside of a single entity. [...] | ||
Properties
flow_direction :: FluidFlowDirection optional 
connection_type :: PipeConnectionType optional 
PipeConnectionType :: union
Union members
"normal" | 2 connections are required to be adjacent tiles next to each other on their respective directions. |
"underground" | Allows distant connection up to a certain limit. Those connections may be blocked by tiles. |
"linked" | For mods, connections between entities have to be explicitly requested by script. |

