Crude Drying Rack (Pyrotech)
Description
Converts an item over time into a new one.
Identifier
The identifier mods.pyrotech.crude_drying_rack will be used as the default on this page.
All Identifiers
Any of these can be used to refer to this compat:
mods.pyrotech.crudedryingrack
mods.pyrotech.crudeDryingRack
mods.pyrotech.CrudeDryingRack
mods.pyrotech.crude_drying_rack/* Used as page default */Adding Recipes
Adds the recipe:
groovymods.pyrotech.crude_drying_rack.add(CrudeDryingRackRecipe)Adds recipes in the format
name,input,output,dryTime:groovymods.pyrotech.crude_drying_rack.add(String, IIngredient, ItemStack, int)
Example
mods.pyrotech.crude_drying_rack.add('apple_to_dirt', item('minecraft:apple'), item('minecraft:dirt'), 1200)Recipe Builder
Just like other recipe types, the Crude Drying Rack also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
Recipe Builder
Create the Recipe Builder.
groovymods.pyrotech.crude_drying_rack.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).groovydryTime(int)
First validates the builder, returning
nulland outputting errors to the log file if the validation failed, then registers the builder and returns the registered object. (returnsnullorcom.codetaylor.mc.pyrotech.modules.tech.basic.recipe.CrudeDryingRackRecipe).groovyregister()
Example
mods.pyrotech.crude_drying_rack.recipeBuilder()
.input(item('minecraft:diamond'))
.output(item('minecraft:emerald'))
.dryTime(260)
.name('diamond_to_emerald_crude_drying_rack')
.register()Removing Recipes
Removes the recipe:
groovymods.pyrotech.crude_drying_rack.remove(CrudeDryingRackRecipe)Removes the recipe with the given String as its Resource Location:
groovymods.pyrotech.crude_drying_rack.remove(String)Removes the recipe with the given Resource Location:
groovymods.pyrotech.crude_drying_rack.remove(ResourceLocation)Removes all recipes that match the given input:
groovymods.pyrotech.crude_drying_rack.removeByInput(ItemStack)Removes all recipes that match the given output:
groovymods.pyrotech.crude_drying_rack.removeByOutput(IIngredient)Removes all registered recipes:
groovymods.pyrotech.crude_drying_rack.removeAll()
Example
mods.pyrotech.crude_drying_rack.removeByInput(item('minecraft:wheat'))
mods.pyrotech.crude_drying_rack.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.crude_drying_rack.streamRecipes()
