Chemical Reactor (Advanced Rocketry)
Description
Converts up to 2 fluids and 8 input items into up to 1 fluid and up to 4 output items, consuming RF.
Warning
The 'chances' used with the recipe outputs are actually output weights. For example, setting 'chance' to 0.1 will set the output's chance to 1, unless other outputs add up to the weight of 0.9. The output chances will also not do anything unless 'outputSize' is set to a number greater than 0.
Warning
The recipes performed in this machine can have more than 9 inputs, but this makes the JEI handler overflow when displaying the recipe and breaks the tooltips.
Identifier
Refer to this via any of the following:
mods.advancedrocketry.chemical_reactor/* Used as page default */
mods.advancedrocketry.chemicalreactor
mods.advancedrocketry.chemicalReactor
mods.advancedrocketry.ChemicalReactor
Adding Recipes
Add the given recipe to the recipe list:
groovymods.advancedrocketry.chemical_reactor.add(R)
Recipe Builder
Just like other recipe types, the Chemical Reactor also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.advancedrocketry.chemical_reactor.recipeBuilder()
IngredientList<IIngredient>
. Sets the item inputs of the recipe. Requires less than or equal to 8 and eitherinput
orfluidInput
to be non-null.groovyinput(IIngredient) input(IIngredient...) input(Collection<IIngredient>)
FluidStackList
. Sets the fluid inputs of the recipe. Requires less than or equal to 2 and eitherinput
orfluidInput
to be non-null.groovyfluidInput(FluidStack) fluidInput(FluidStack...) fluidInput(Collection<FluidStack>)
ItemStackList
. Sets the item outputs of the recipe. The version with two arguments can be used to add weighted outputs. Requires less than or equal to 4 and eitheroutput
orfluidOutput
to be non-null.groovyoutput(ItemStack) output(ItemStack...) output(ItemStack, float) output(Collection<ItemStack>)
FluidStackList
. Sets the fluid outputs of the recipe. Requires less than or equal to 1 and eitheroutput
orfluidOutput
to be non-null.groovyfluidOutput(FluidStack) fluidOutput(FluidStack...) fluidOutput(Collection<FluidStack>)
int
. Sets the time needed to perform the recipe in ticks. Requires greater than or equal to 1. (Default0
).groovytime(int)
int
. Sets the power consumed by the recipe in RF/t. Requires greater than or equal to 1. (Default0
).groovypower(int)
int
. Sets the maximum amount of outputs produced by each recipe. Requires greater than or equal to 1. (Default0
).groovyoutputSize(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
orzmaster587.libVulpes.interfaces.IRecipe
).groovyregister()
Example
mods.advancedrocketry.chemical_reactor.recipeBuilder()
.input(item('minecraft:chorus_fruit_popped'))
.fluidInput(fluid('lava') * 500)
.output(item('minecraft:end_rod') * 4)
.fluidOutput(fluid('water') * 500)
.power(50)
.time(100)
.register()
Removing Recipes
Removes the given recipe from the recipe list:
groovymods.advancedrocketry.chemical_reactor.remove(R)
Removes all recipes that match the given input:
groovymods.advancedrocketry.chemical_reactor.removeByInput(IIngredient)
Removes all recipes that match the given output:
groovymods.advancedrocketry.chemical_reactor.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.advancedrocketry.chemical_reactor.removeAll()
Example
mods.advancedrocketry.chemical_reactor.removeByInput(item('minecraft:bone'))
mods.advancedrocketry.chemical_reactor.removeByOutput(item('minecraft:leather_helmet'))
mods.advancedrocketry.chemical_reactor.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.advancedrocketry.chemical_reactor.streamRecipes()