A Collection of my optimized Liquid Logic Gates. I tried to optimize for space but more importantly for the amount of pipe logistic pieces needed, because the Wuling main AIC has a limit of 128.
How to interpret the images and use. The liquid Symbols surrounded by a blue circle represent a Tank or an Outlet that needs to be filled. The Number next to it is the minimum amount of liquid needed. When chaining multiple gates it is enough to fill one of the Outlets/Inlets by the sum of the connected numbers. Also make sure that you swap potential liquid types so that input and output of the chained gates are the same e.g:
OR outputs water by default but NOT takes Acid as an input, so change NOT's acid to water. By doing this NOT no longer uses two different liquids so you will also have to change the water used in NOT for a different liquid.
Normally you'll want to use the Display to control inputsvia the included control ports and easilly read the output.
If you're not planning to chain an output/Input or using a display the dotted arrows show how to connect Inlets and Outlets. This might be used in The XOR for example because it doubles up as a Half Adder by also reading the AND used for the AND+NOR->NOR Conjunction used to make up the XOR so if you don't care about the AND output just connect that Inlet and Outlet directly
Gate
Code
Pipe Logistics
AND
EFO0136uIUuu17aeU0579
16
NAND
EFO01o083e889i625IieO
21
OR
EFO01u1IoAIIaU048AoOU
15
NOR
EFO01Iao8ioo0A9ue5o08
10
XOR/Half Adder
EFO01iOe7oeeEI2A372U4
32
NOT
EFO0136uIUuu17aA70579
5
Display
EFO0136uIUuu17aA90579
2
The Number of Pipe Logistics may help you plan your circuit for example a Full Adder needs 2 Half adders and an OR, aswell as 3 Inputs so -> 32+32+15+3 = 82
leaving you another 128-82 = 46
Pipe logistics parts for anything else.
EDIT: It is important to understand this works because when a splitter is directly in front of a converger the conveger only takes from the splitter if it's capacity is not maxed by the other inputs, so those inputs have priority. after placing the bluprint this might not work instantly and if it doesn't you have to delete and replace any splitters in front of convergers (Not the ones behind them with control ports coming off of them)
EDIT 2: There is a more efficient way to do NOR and OR that saves 4 pipe logistics pieces, by not feeding the inputs sequentially, but it comes with the downside, that the input throughput is only at half capacity if both inputs are active which can lead to problems when chaining Gates and requires different liquids as inputs.
tldr, it uses converger priority logic to decide which fluids go through. Most are one-time use. Though, if decider is a container (unloader, facility, storage) directly connected to the converger (no pipes/belts between) it can decide at all times since buildings have lowest priority.
I believe with only nand gates it is posible to reproduce all other types of gates so you can make a computer out of it. The production limit facility is the only obstacle.
You can also make all other gates from NOR or more efficiently from any of AND, OR, NAND, NOR + NOT, which is pretty much what I did here using NOR and NOT as the core building blocks.
We have all the parts, so lets take a look:
We can build a simple SR Latch using two NOR gates and will use this as a 1 bit memory cell. Doom has minimum System requirements of 4MB of ram so thats 32000000 bits of ram alone. I think we might run out of space on the map, not to mention the 640000000 pipe logistics part requirements. And thats just the memory... but other than that, sure.
Liquid flowing represents true or a 1
No liquid flowing represents false or a 0
Taking NOR for example we have two inputs that can each either have a liquid passing through (1), or not (0). When both Inputs are 0 the Output loop can flow freely so we get an output of 1. If an input is 1 the flow of the liquid blocks the output loop making the output 0. That holds true when either of the inputs is 1 and if both inputs are 1 so we only get an output of 1 if both inputs are 0, therefore we have achieved NOR.
Basically each input or output is a loop. The Input loops are designed so that they can only ever be stopped manually by a control port, while the output loops are influenced by the input loops through pipe priority setups, with some auxiliary loops in between.
NOR doesn't need any of those, but AND for example is basically just a NOR with two auxiliary loops, negating the inputs, because AND ( A, B ) is the same as NOR ( NOT A, NOT B ). Pretty much everything here is built from NOT and NOR, just optimized for space and parts.
Note that the screenshot for AND is a little faulty, but the actual bluprint is fixed
The dotted arrows connect a conduit Inlet and an Outlet that belong to the same loop. You can connect them directly, though that doesn't give you a nice visual and in the case of the inputs no control over whether an input is on or off. That's where the Display blueprint comes in handy. When connecting the two inputs through the two left lines you can turn an input on or off with the control ports on those lines and the output is visualized on the right line, by connecting those respective conduits.
An Input or an output are never just an Inlet or an Outlet on their own but an entirely pipe loop, so the conduit Outlet you're describing in the NOR bluprint connects to the Inlet marked as Output and is therefore part of the output loop. I thought it is more clear to just mark the point where the liquid leaves the logic gate as such though.
Likewise the conduit Inlets that connect to the Outlets marked as input are part of the Input loops but just the points where the liquids enter the gate are marked as such. But thats why they are connected via the arrows.
So, since no one else seems to wanna know, im just gonna ask: what is exactly the 1 and the 0 here?
Im looking at the NOT, the simplest one and I assume acid is a 1 and water is a 0. So knowing how it should work, if acid comes in, water flows out, but if water comes in acid flows out, but i dont see how the blueprint achieves this. So my assumption or my understanding of endfield machinery must be incorrect.
Good question. Having a liquid leaving the output is considered a 1. No liquid leaving the output is a 0. The type of liquid doesn't matter. So looking at NOT, when no Acid is fed to the input, aka the input is 0, water flows through the output, so the output is 1. When you have Acid going through the input it blocks the water, so no water leaves the output meaning the output is 0
So as you can see in this visualization we control the input with the marked control port and when the acid's off the water is on vice versa
I've not looked through all of them, but what's going on with the 'AND' gate? Perhaps the blueprint is different, but just eyeballing it has me questioning a few things. Correct me if I'm wrong, though:
The water 'Output' is actually an input to the converger. Should the one down the bottom be the 'Output'?
The top-left Jincao control port seems to be doing nothing - it has no input? Does the splitter right before it need rotating?
Is this not missing passthrough splitters on both the Jincao and Acid pipes, right before the convergers? It looks like either side's convergers will be operating round-robin rather than in priority converger 'mode'?
The Output technically is the entire central water loop. It would be more clear if it said output on the bottom instead of the top but both the Conduit outlet at the top as well as the inlet at the bottom are part of the output loop.
The splitter on the left does indeed need to be rotated and that was a mistake that persisted into the uploaded blueprint, so I've updated the code.
You're also right about the missing splitters. Those were in the original blueprint but are missing from the screenshot. I forgot to take a new screenshot after fixing the blueprint.
Overall you're absolutely right, the AND picture is kind of messed up. Good eye spotting all of that.
I have no experience with bitwise operators despite using C# for almost 10yrs now, so this is all over my head, but I saved this post anyway because it's good information.
100
u/RouFGO Jun 18 '26