Distillation Tower (Tech Reborn)
Description
Converts one or two itemstack inputs into up to four an itemstack output after a given process time, consuming energy per tick.
Identifier
Refer to this via any of the following:
mods.techreborn.distillation_tower/* Used as page default */
mods.techreborn.distillationtower
mods.techreborn.distillationTower
mods.techreborn.DistillationTower
Adding Recipes
Add the given recipe to the recipe list:
groovymods.techreborn.distillation_tower.add(R)
Recipe Builder
Just like other recipe types, the Distillation Tower also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.techreborn.distillation_tower.recipeBuilder()
IngredientList<IIngredient>
. Sets the item inputs of the recipe. Requires greater than or equal to 1 and less than or equal to 2.groovyinput(IIngredient) input(IIngredient...) input(Collection<IIngredient>)
ItemStackList
. Sets the item outputs of the recipe. Requires greater than or equal to 1 and less than or equal to 4.groovyoutput(ItemStack) output(ItemStack...) output(Collection<ItemStack>)
int
. Sets the time in ticks the recipe takes to complete. Requires greater than or equal to 0. (Default0
).groovytime(int)
boolean
. Sets if the recipe matches based on the oredict of inputs. (Defaultfalse
).groovyoreDict(boolean)
int
. Sets the power consumed per tick. Requires greater than or equal to 0. (Default0
).groovyperTick(int)
First validates the builder, returning
null
and outputting errors to the log file if the validation failed, then registers the builder and returns the registered object. (returnsnull
ortechreborn.api.recipe.machines.DistillationTowerRecipe
).groovyregister()
Example
mods.techreborn.distillation_tower.recipeBuilder()
.input(item('minecraft:clay'), item('minecraft:diamond') * 2)
.output(item('minecraft:gold_ingot'), item('minecraft:clay') * 5, item('minecraft:clay') * 2, item('minecraft:clay'))
.time(10)
.perTick(100)
.register()
mods.techreborn.distillation_tower.recipeBuilder()
.input(item('minecraft:diamond') * 3, item('minecraft:diamond') * 2)
.output(item('minecraft:clay') * 2)
.time(5)
.perTick(32)
.register()
Removing Recipes
Removes the given recipe from the recipe list:
groovymods.techreborn.distillation_tower.remove(R)
Removes all recipes that match the given input:
groovymods.techreborn.distillation_tower.removeByInput(IIngredient)
Removes all recipes that match the given output:
groovymods.techreborn.distillation_tower.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.techreborn.distillation_tower.removeAll()
Example
mods.techreborn.distillation_tower.removeByInput(item('techreborn:dynamiccell').withNbt(['Fluid': ['FluidName': 'fluidoil', 'Amount': 1000]]))
mods.techreborn.distillation_tower.removeByOutput(item('techreborn:dynamiccell').withNbt(['Fluid': ['FluidName': 'fluidmethane', 'Amount': 1000]]))
mods.techreborn.distillation_tower.removeAll()
Getting the value of recipes
Iterates through every entry in the registry, with the ability to call remove on any element to remove it:
groovymods.techreborn.distillation_tower.streamRecipes()