After making several unsuccessful attempts, reading and re-reading the API, tearing my hair out and asking for help on Discord (receiving replies that unfortunately didn’t solve my problem), I’m posting it here.
In my mod I have two fluids that shouldn't go into pipes. I want it to be untransportable, so that the machine that produces it and the one that uses it are right next to each other. One transfers from Biochamber to Biochamber, and the other from the Foundry to the Refinery.
(If there’s another way to achieve the desired result, I’ll go for it.) Otherwise, here’s what I did:
I created a new fluid_box with filter for that fluid and an underground connection_type. And I added it to the assembling-machine fluid_boxes array. The recipe "ingredients" or "results" with that fluid have a fluidbox_index.
It work's, the fluid can't go in pipes and can connect directly with the assembling-machine it need to go in.
But now the input is broken for vanilla recipe that have 2 fluids input in this assembling-machine. The input display superimposes the icons for the two fluids, and only one of them can be fed into the machine. So the recipe cannot be performed.
And the Refinery also displays the fluid icon when there is no recipe set.
First question: Given that two standard pipe_connections cannot be in the same location, does this mean I must use an ‘underground’ pipe_connection as I did if I want the fluids to enter and exit via the base locations ?
Second question: What am I doing wrong ? Why does adding this mess up the basic recipes ?
And the third question: Why does the refinery display the icon when no recipe has been set ?
I hope someone can help me get it working. Thanks in advance
I’ve attached the code (I’ve used version 2.1.9).

