Types/FluidBox: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Created page with "== Basics == All general properties of entities that involve pipes. == Properties == === fluid_box === Type: uknown This is the property to set the water amount an entity ca...")
 
Line 1: Line 1:
== Basics ==
== Basics ==
All general properties of entities that involve pipes.
All general properties of entities that involve pipes. Because this is an abstract class it cannot be created in game, rather, it acts like a guideline to which all other entities with pipe aspects follow.


== Properties ==
== Properties ==

Revision as of 00:53, 5 February 2015

Basics

All general properties of entities that involve pipes. Because this is an abstract class it cannot be created in game, rather, it acts like a guideline to which all other entities with pipe aspects follow.

Properties

fluid_box

Type: uknown

This is the property to set the water amount an entity can hold, as well as the connection points for pipes leading into and out of the entity.

Example: Assembly Machine 2 Fluid Box

fluid_boxes =
{
  {
    production_type = "input",
    pipe_picture = assembler2pipepictures(),
    pipe_covers = pipecoverspictures(),
    base_area = 10,
    base_level = -1,
    pipe_connections = {{ type="input", position = {0, -2} }}
  },
  {
    production_type = "output",
    pipe_picture = assembler2pipepictures(),
    pipe_covers = pipecoverspictures(),
    base_area = 10,
    base_level = 1,
    pipe_connections = {{ type="output", position = {0, 2} }}
  },
  off_when_no_fluid_recipe = true
},

A base area of 1 will hold 10 units of water, 2 will hold 20, etc...