Refinery
Link to refinery
Package
Link to package
mods.thermalexpansion.Refinery
Adding a Recipe
Link to adding-a-recipe
Refinery.addRecipe(output, outputItem, input, energy);
output
<ILiquidStack>outputItem
<WeightedItemStack>input
<ILiquidStack>energy
<int> The total energy cost
ZenScript Copyimport mods.thermalexpansion.Refinery;
// Adds a recipe that outputs 1mB of lava and a diamond (at a 100% chance) per 1mB of water
Refinery.addRecipe(<liquid:lava>, <minecraft:diamond>, <liquid:water>, 50);
// Adds a recipe that outputs 5mB of lava and a diamond (at a 1% chance) per 100mB of water
Refinery.addRecipe(<liquid:lava> * 5, <minecraft:diamond> % 1, <liquid:water> * 100, 50);
Adding a Potion Recipe
Link to adding-a-potion-recipe
Adds a recipe to be used with the Alchemical Retort Augmentation
Refinery.addRecipePotion(output, input, energy);
output
<ILiquidStack>input
<ILiquidStack>energy
<int> The total energy cost
ZenScript Copyimport mods.thermalexpansion.Refinery;
Refinery.addRecipePotion(<liquid:potion>.withTag({Potion: "minecraft:mundane"}) * 500, <liquid:potion>.withTag({Potion: "cofhcore:leaping4"}) * 100, 100);
Removing a Recipe
Link to removing-a-recipe
Refinery.removeRecipe(input);
input
<ILiquidStack>
ZenScript Copyimport mods.thermalexpansion.Refinery;
Refinery.removeRecipe(<liquid:resin>);
Removing a Potion Recipe
Link to removing-a-potion-recipe
Refinery.removeRecipePotion(input);
input
<ILiquidStack>
ZenScript Copyimport mods.thermalexpansion.Refinery;
Refinery.removeRecipePotion(<liquid:potion_lingering>.withTag({Potion: "cofhcore:healing3"}));