Soaking Pot (Pyrotech)
Description
Converts an item into a new one by soaking it in a liquid. Can require a campfire.
Identifier
Refer to this via any of the following:
mods.pyrotech.soaking_pot/* Used as page default */
mods.pyrotech.soakingpot
mods.pyrotech.soakingPot
mods.pyrotech.SoakingPot
Adding Recipes
Adds recipes in the format
name
,input
,output
,time
:groovymods.pyrotech.soaking_pot.add(String, IIngredient, FluidStack, ItemStack, int)
Example
mods.pyrotech.soaking_pot.add('dirt_to_apple', item('minecraft:dirt'), fluid('water'), item('minecraft:apple'), 1200)
Recipe Builder
Just like other recipe types, the Soaking Pot also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.pyrotech.soaking_pot.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>)
FluidStackList
. Sets the fluid inputs of the recipe. Requires exactly 1.groovyfluidInput(FluidStack) fluidInput(FluidStack...) fluidInput(Collection<FluidStack>)
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
).groovytime(int)
boolean
. Sets if a campfire is required underneath. (Defaultfalse
).groovycampfireRequired(boolean)
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.basic.recipe.SoakingPotRecipe
).groovyregister()
Example
mods.pyrotech.soaking_pot.recipeBuilder()
.input(item('minecraft:diamond'))
.fluidInput(fluid('amongium') * 125)
.output(item('minecraft:emerald'))
.time(400)
.campfireRequired(true)
.name('diamond_to_emerald_with_amongium_soaking_pot')
.register()
Removing Recipes
Removes all recipes that match the given input:
groovymods.pyrotech.soaking_pot.removeByInput(ItemStack)
Removes all recipes that match the given output:
groovymods.pyrotech.soaking_pot.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.pyrotech.soaking_pot.removeAll()
Example
mods.pyrotech.soaking_pot.removeByOutput(item('pyrotech:material', 54))
mods.pyrotech.soaking_pot.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.soaking_pot.streamRecipes()