Factorio 2.1 reversible pump
Posted: Thu Jul 02, 2026 9:40 pm
Hello all,
I'm trying to make a bi-directional pump. Now that devices can have a separate signal on each wire, I want one to act as before - enable/disable - and one to switch direction of flow.
My use case is in stations that load many liquids. The default pump would have a little liquid stuck inside, jamming the queue. If I can set "reverse pump when train count C==0" the pump/pipe will get flushed and problem is solved.
LuaPumpControlBehavior does not, by default, give me a way to reverse flow. One option is to spawn two pumps on top of each other, one of which is inactive at any given time. Another is to somehow track the "original" direction and then physically reverse the pump when the signal is set.
What would be best?
Thanks!
I'm trying to make a bi-directional pump. Now that devices can have a separate signal on each wire, I want one to act as before - enable/disable - and one to switch direction of flow.
My use case is in stations that load many liquids. The default pump would have a little liquid stuck inside, jamming the queue. If I can set "reverse pump when train count C==0" the pump/pipe will get flushed and problem is solved.
LuaPumpControlBehavior does not, by default, give me a way to reverse flow. One option is to spawn two pumps on top of each other, one of which is inactive at any given time. Another is to somehow track the "original" direction and then physically reverse the pump when the signal is set.
What would be best?
Thanks!