Making foundry input and output pipes generic
Posted: Tue Apr 07, 2026 11:05 am
I am developing a mod that introduces new metallurgical recipes, crafted in a foundry. Some of these recipes have three input or output fluids. One has four input fluids (and an item output).
It seems the foundry is set up so that cannot happen. The recipes appear in the foundry recipe selection interface, but show as "cannot be crafted in this machine", with no further explanation. I had to reverse-engineer the reason by creating several test recipes until I saw the common theme in recipes that did and did not work.
The foundry has four fluid pipes, so it can theoretically handle these recipes.
Looking at the entity prototype for foundry, I see it has two pipes explicitly labelled "input" and two labelled "output".
How do I render these generic (input OR output, as needed) so my modded recipes will function?
EDIT: After considerable trial and error, I have worked out how to add four new pipes (two in and two out), to support my new recipes. For my immediate purposes, this works.
However, I would still like an answer to my question about generic in/out pipes.
It seems the foundry is set up so that cannot happen. The recipes appear in the foundry recipe selection interface, but show as "cannot be crafted in this machine", with no further explanation. I had to reverse-engineer the reason by creating several test recipes until I saw the common theme in recipes that did and did not work.
The foundry has four fluid pipes, so it can theoretically handle these recipes.
Looking at the entity prototype for foundry, I see it has two pipes explicitly labelled "input" and two labelled "output".
How do I render these generic (input OR output, as needed) so my modded recipes will function?
EDIT: After considerable trial and error, I have worked out how to add four new pipes (two in and two out), to support my new recipes. For my immediate purposes, this works.
However, I would still like an answer to my question about generic in/out pipes.