Electric Arc Furnace (Advanced Rocketry)
Description
Converts input items and fluids into output items and fluids, 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.
Warning
The recipes performed in this machine can have more than 9 outputs, but this makes the JEI handler overflow when displaying the recipe and breaks the tooltips.
Info
The Electric Arc Furnace can support up to 11 input and output hatches. Each hatch can store either 1 type of fluid or up to 4 types of input or output items. Groovyscript will not add the recipe if it requires more than 11 hatches (i.e., has 11 fluid inputs and an output).
Identifier
Refer to this via any of the following:
mods.advancedrocketry.electric_arc_furnace/* Used as page default */
mods.advancedrocketry.electricarcfurnace
mods.advancedrocketry.electricArcFurnace
mods.advancedrocketry.ElectricArcFurnace
Adding Recipes
Add the given recipe to the recipe list:
groovymods.advancedrocketry.electric_arc_furnace.add(R)
Recipe Builder
Just like other recipe types, the Electric Arc Furnace also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.advancedrocketry.electric_arc_furnace.recipeBuilder()
IngredientList<IIngredient>
. Sets the item inputs of the recipe. Requires eitherinput
orfluidInput
to be non-null.groovyinput(IIngredient) input(IIngredient...) input(Collection<IIngredient>)
FluidStackList
. Sets the fluid inputs of the recipe. Requires 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 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 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.electric_arc_furnace.recipeBuilder()
.input(item('minecraft:blaze_powder') * 4)
.output(item('minecraft:blaze_rod'))
.power(50)
.time(100)
.register()
Removing Recipes
Removes the given recipe from the recipe list:
groovymods.advancedrocketry.electric_arc_furnace.remove(R)
Removes all recipes that match the given input:
groovymods.advancedrocketry.electric_arc_furnace.removeByInput(IIngredient)
Removes all recipes that match the given output:
groovymods.advancedrocketry.electric_arc_furnace.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.advancedrocketry.electric_arc_furnace.removeAll()
Example
mods.advancedrocketry.electric_arc_furnace.removeByInput(item('minecraft:iron_ingot'))
mods.advancedrocketry.electric_arc_furnace.removeByOutput(item('libvulpes:productingot', 3))
mods.advancedrocketry.electric_arc_furnace.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.electric_arc_furnace.streamRecipes()