This page relates to PneumaticCraft: Repressurized, which has built-in support!

Requires PneumaticCraft: Repressurized v2.12.6 or newer.

The Refinery is a type of IRecipeManager and implements all the methods that are available to IRecipeManager's, such as removeRecipe() and removeAll().

Refinery recipes require a single input fluid, and a list of 2-4 output fluids. Recipes with the same input can be added multiple times, as long as the number of output fluids are different (the Refinery will use the recipe with the greatest number of outputs, limited by the number of Refinery Output blocks are present in the Refinery multiblock structure).

In addition, a minimum temperature (in Kelvin) must be supplied, and an optional maximum temperature; if omitted, this defaults to Integer.MAX_VALUE (effectively unlimited).

The following script adds a recipe to convert 50mB of Diesel into 25mB of LPG and 25mB of Lubricant, requiring a minimum temperature of 473K (200°C):

// <recipetype:pneumaticcraft:refinery>.addRecipe(name as string, inputFluid as CTFluidIngredient, outputFluids as IFluidStack[], int minTemperature)
<recipetype:pneumaticcraft:refinery>.addRecipe("extra_diesel_refining", <fluid:pneumaticcraft:diesel> * 50, [<fluid:pneumaticcraft:lpg> * 25, <fluid:pneumaticcraft:lubricant> * 25], 473);

The following script will remove all Refinery recipes: