Page 1 of 1

Some way of obtaining which pipe connections are enabled/disabled on a crafting machine

Posted: Fri Mar 06, 2026 3:59 am
by protocol_1903
As in title, I'd like to know which pipe connections are enabled and which are disabled when looking at a LuaCraftingMachine. As for where I can access that function, or what it's called, or what kind of data it returns I have no preference. From my completely out of the picture and not knowing perspective it would seem easier to return a list of enabled PipeConnections from a LuaFluidBox when polled, or add a flag to PipeConnection to indicate status.

I would like to use this to detect which connections are enabled so that I can connect to them with my mod parallel piping. Currently theres no way to know, not even if the entity has them always on, so I have to just guess that they're enabled and draw the connection anyway. Unless I'm being silly and there's already a method of detecting if they're on, in which case I apologize for taking time out of your day to respond to me and I'll write up a documentation improvement request anyway.

Re: Some way of obtaining which pipe connections are enabled/disabled on a crafting machine

Posted: Fri Mar 06, 2026 5:46 am
by boskid

Re: Some way of obtaining which pipe connections are enabled/disabled on a crafting machine

Posted: Sat Mar 07, 2026 10:57 pm
by protocol_1903
Does that only return in-use pipe connections? Or does it also return disabled connections.

Rather, does this also include pipe connections that are enabled, even if not connected to anything.