In documentation it says this:
When called on a pipe-connectable entity, this is an array of entity arrays of all entities a given fluidbox is connected to.
As I understand it it looks like this:
E = entity
p = parameter
|E1|E2|E3|....
|p1|p1|p1|
|p2|p2|p2|
.
.
.
But when I try to count how many neighbours does that middle pipe have, it says its 1.

I count it like this:
Code: Select all
function tableLength(anyTable)
local count = 0
for _ in pairs(anyTable) do count = count + 1 end
return count
end