Page 1 of 1

Possibility of fluid-specific pipe/pumps requirement

Posted: Sun Oct 15, 2023 4:48 pm
by BokitoProof
Hello,
I have seen mods introducing new pipes and pumps which can accommodate higher flow rates.
My idea is to introduce new types/tiers of pipes/pumps which can only transport specific fluids, or more factual; certain types of fluids (e.g., acids) require a certain type (e.g., stainless steel pipe) of pump/pipe/storage/chemical plant. I was wondering if this is even possible.

I have taken a look at the pump, pipe and fluid prototypes/API but haven't found anything helpful, nor have I encountered a mod which has already done this.

Re: Possibility of fluid-specific pipe/pumps requirement

Posted: Sun Oct 15, 2023 7:19 pm
by Deadlock989
Any FluidBox, including the ones in pumps, can be filtered (i.e. "locked") to a specific fluid. But only one fluid, or none. You can't have multiple fluids or a category/set etc. The mod in my signature does this for certain pipes.

https://lua-api.factorio.com/latest/typ ... tml#filter