FluidBox :: struct changedExample code
| volume | :: FluidAmount | Must be greater than 0. |
Must be greater than 0. | ||
| pipe_connections | :: array[PipeConnectionDefinition] | Connection points to connect to other fluidboxes. [...] |
Connection points to connect to other fluidboxes. [...] | ||
| filter optional | :: FluidID | Can be used to specify which fluid is allowed to enter this fluid box. [...] |
Can be used to specify which fluid is allowed to enter this fluid box. [...] | ||
| render_layer optional | :: RenderLayer | |
| draw_only_when_connected optional | :: boolean | |
| volume_reservation_fraction optional | :: float | A fraction of the volume that will be "reserved" and cannot be removed by flow operations. [...] |
A fraction of the volume that will be "reserved" and cannot be removed by flow operations. [...] | ||
| pipe_covers optional | :: Sprite4Way | The pictures to show when no fluid box is connected to this one. |
The pictures to show when no fluid box is connected to this one. | ||
| pipe_covers_frozen optional | :: Sprite4Way | |
| pipe_picture optional | :: Sprite4Way | |
| pipe_picture_frozen optional | :: Sprite4Way | |
| mirrored_pipe_picture optional | :: Sprite4Way | Pipe picture variation used when owner machine is flipped. [...] |
Pipe picture variation used when owner machine is flipped. [...] | ||
| mirrored_pipe_picture_frozen optional | :: Sprite4Way | Frozen pipe picture variation used when owner machine is flipped. [...] |
Frozen pipe picture variation used when owner machine is flipped. [...] | ||
| minimum_temperature optional | :: float | The minimum temperature allowed into the fluidbox. [...] |
The minimum temperature allowed into the fluidbox. [...] | ||
| maximum_temperature optional | :: float | The maximum temperature allowed into the fluidbox. [...] |
The maximum temperature allowed into the fluidbox. [...] | ||
| max_pipeline_extent optional | :: uint32 | The max extent that a pipeline with this fluidbox can span. [...] |
The max extent that a pipeline with this fluidbox can span. [...] | ||
| production_type optional | :: ProductionType | |
| secondary_draw_order optional | :: int8 | Set the secondary draw order for all orientations. [...] |
Set the secondary draw order for all orientations. [...] | ||
| secondary_draw_orders optional | :: FluidBoxSecondaryDrawOrders | Set the secondary draw order for each orientation. [...] |
Set the secondary draw order for each orientation. [...] | ||
| always_draw_covers optional | :: boolean | Defaults to true if |
Defaults to true if | ||
| enable_working_visualisations optional | :: array[string] | Array of the WorkingVisualisation::name of working visualisations to enable when this fluidbox is present. [...] |
Array of the WorkingVisualisation::name of working visualisations to enable when this fluidbox is present. [...] | ||
Properties
volume :: FluidAmount
pipe_connections :: array[PipeConnectionDefinition] 
filter :: FluidID optional 
render_layer :: RenderLayer optional 
draw_only_when_connected :: boolean optional 
volume_reservation_fraction :: float optional 
pipe_covers :: Sprite4Way optional 
pipe_covers_frozen :: Sprite4Way optional 
pipe_picture :: Sprite4Way optional 
pipe_picture_frozen :: Sprite4Way optional 
mirrored_pipe_picture :: Sprite4Way optional 
mirrored_pipe_picture_frozen :: Sprite4Way optional 
minimum_temperature :: float optional 
Example
minimum_temperature = 100.0
maximum_temperature :: float optional 
Example
maximum_temperature = 1000.0
max_pipeline_extent :: uint32 optional 
production_type :: ProductionType optional 
ProductionType :: union
Union members
"none" | |
"input" | |
"input-output" | |
"output" |
secondary_draw_order :: int8 optional 
always_draw_covers :: boolean optional 
enable_working_visualisations :: array[string] optional 
Example 
fluid_box =
{
volume = 200,
pipe_covers = pipecoverspictures(),
pipe_connections =
{
{flow_direction = "input-output", direction = defines.direction.west, position = {-1, 0.5}},
{flow_direction = "input-output", direction = defines.direction.east, position = {1, 0.5}}
},
production_type = "input-output",
filter = "water"
}
Type used in
- BoilerPrototype::fluid_box
- BoilerPrototype::output_fluid_box
- CraftingMachinePrototype::fluid_boxes
- FluidEnergySource::fluid_box
- FluidEnergySource::output_fluid_box
- FluidTurretPrototype::fluid_box
- FusionGeneratorPrototype::input_fluid_box
- FusionGeneratorPrototype::output_fluid_box
- FusionReactorPrototype::input_fluid_box
- FusionReactorPrototype::output_fluid_box
- GeneratorPrototype::fluid_box
- GeneratorPrototype::output_fluid_box
- MiningDrillPrototype::output_fluid_box
- MiningDrillPrototype::input_fluid_box
- OffshorePumpPrototype::fluid_box
- PipePrototype::fluid_box
- PipeToGroundPrototype::fluid_box
- PumpPrototype::fluid_box
- StorageTankPrototype::fluid_box
- ThrusterPrototype::fuel_fluid_box
- ThrusterPrototype::oxidizer_fluid_box
- ValvePrototype::fluid_box

