Refractory Oven (Pyrotech)
Description
When powered by burning fuel can convert items.
Warning
Stone and Refractory Oven includes some recipes from the Furnace Registry that can't be removed here, you have to use furnace.add
or furnace.remove
to manipulate those recipes directly.
Identifier
Refer to this via any of the following:
mods.pyrotech.brick_oven/* Used as page default */
mods.pyrotech.brickoven
mods.pyrotech.brickOven
mods.pyrotech.BrickOven
Adding Recipes
Adds recipes in the format
name
,input
,output
,duration
:groovymods.pyrotech.brick_oven.add(String, IIngredient, ItemStack, int)
Example
mods.pyrotech.brick_oven.add('apple_to_dirt_brick', item('minecraft:apple'), item('minecraft:dirt'), 1000)
Recipe Builder
Just like other recipe types, the Refractory Oven also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.pyrotech.brick_oven.recipeBuilder()
ResourceLocation
. Sets the Resource Location of the recipe.groovyname(String) name(ResourceLocation)
IngredientList<IIngredient>
. Sets the item inputs of the recipe. Requires exactly 1.groovyinput(IIngredient) input(IIngredient...) input(Collection<IIngredient>)
ItemStackList
. Sets the item outputs of the recipe. Requires exactly 1.groovyoutput(ItemStack) output(ItemStack...) output(Collection<ItemStack>)
int
. Sets the time required for the recipe to complete. Requires greater than or equal to 1. (Default0
).groovyduration(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
orcom.codetaylor.mc.pyrotech.modules.tech.machine.recipe.BrickOvenRecipe
).groovyregister()
Example
mods.pyrotech.brick_oven.recipeBuilder()
.input(item('minecraft:diamond'))
.output(item('minecraft:emerald'))
.duration(400)
.name('diamond_campfire_to_emerald_brick')
.register()
Removing Recipes
Removes all recipes that match the given input:
groovymods.pyrotech.brick_oven.removeByInput(ItemStack)
Removes all recipes that match the given output:
groovymods.pyrotech.brick_oven.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.pyrotech.brick_oven.removeAll()
Example
mods.pyrotech.brick_oven.removeByInput(item('minecraft:porkchop'))
mods.pyrotech.brick_oven.removeByOutput(item('minecraft:cooked_porkchop'))
mods.pyrotech.brick_oven.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.pyrotech.brick_oven.streamRecipes()