Possibility of fluid-specific pipe/pumps requirement

Place to get help with not working mods / modding interface.
Post Reply
BokitoProof
Manual Inserter
Manual Inserter
Posts: 1
Joined: Sun Oct 15, 2023 4:17 pm
Contact:

Possibility of fluid-specific pipe/pumps requirement

Post 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.

User avatar
Deadlock989
Smart Inserter
Smart Inserter
Posts: 2528
Joined: Fri Nov 06, 2015 7:41 pm

Re: Possibility of fluid-specific pipe/pumps requirement

Post 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
Image

Post Reply

Return to “Modding help”