This page relates to Immersive Engineering, which has built-in support!
Immersive Engineering Refinery
Link to immersive-engineering-refinery
The Refinery is a type of IRecipeManager and implements all the methods that are available to IRecipeManager's, such as removeRecipe()
and removeAll()
.
Metodi
Link to metodi
Add Recipe
Link to add-recipe
The following script will add a recipe to the Refinery that will output 10Mb of Herbicide (Fluid) out of 10Mb of Water (Fluid) and 1Mb of Ethanol and 1000 IF.
ZenScript Copy// <recipetype:immersiveengineering:refinery>.addRecipe(string recipePath, MCTagWithAmount<MCFluid> fluidInput1, MCTagWithAmount<MCFluid> fluidInput2, int energy, IFluidStack output)
<recipetype:immersiveengineering:refinery>.addRecipe("refine_herbicide", <tag:fluids:minecraft:water> * 10, <tag:fluids:forge:ethanol> * 1, 1000, <fluid:immersiveengineering:herbicide> * 10);
Remove FluidStack Recipes
Link to remove-fluidstack-recipes
The following script will remove all recipes from the Refinery that output exactly 16Mb of Biodesiel.
ZenScript Copy// <recipetype:immersiveengineering:refinery>.removeRecipe(IFluidStack output)
<recipetype:immersiveengineering:refinery>.removeRecipe(<fluid:immersiveengineering:biodiesel> * 16);
Remove Fluid Recipes
Link to remove-fluid-recipes
The following script will remove all recipes from the Refinery that output any amount of Biodesiel.
ZenScript Copy// <recipetype:immersiveengineering:refinery>.removeRecipe(MCFluid output)
<recipetype:immersiveengineering:refinery>.removeRecipe(<fluid:immersiveengineering:biodiesel>.fluid);