Page 1 of 1

Documentation request for PipeConnection.Layers

Posted: Fri Jul 10, 2026 6:53 pm
by Xcone
For my mod P.U.M.P. I wanted to test if the underground segment of a pipe I was planning was traversing lava. And if so, add foundations in that area. Since I'm not actually building anything in those tiles (it's underground, after all), I was trying to get the collision_mask of the tile, and the mask of the underground portion of the fluid_box.

I found: https://lua-api.factorio.com/latest/typ ... ision_mask
Which discribes how to make the prototype.

But - in the Runtime prototype: https://lua-api.factorio.com/latest/con ... ition.html
It's not mentioned.

But - But - when I try to log the pipe connection:

Code: Select all

prototypes.entity["pipe-to-ground"].fluidbox_prototypes[1].pipe_connections[2]
I do find a `Layers` table, which appears to be exactly what I needed:

Code: Select all

{
  connection_category = {
    "default"
  },
  connection_type = "underground",
  direction = 8,
  flow_direction = "input-output",
  hide_connection_info = true,
  layers = {
    empty_space = true,
    lava_tile = true
  },
  max_underground_distance = 10,
  positions = {
    {
      x = 0,
      y = 0
    },
    {
      x = 0,
      y = 0
    },
    {
      x = 0,
      y = 0
    },
    {
      x = 0,
      y = 0
    }
  }
}
So I suppose I just want to let you know you have undocumented feature, and might be nice to expand the documentation of it. :-)

Re: Documentation request for PipeConnection.Layers

Posted: Mon Jul 13, 2026 3:21 pm
by FluidNatalie
FYI this should go into documentation improvement requests section