Witches' Cauldron (Bewitchment)
Description
Converts up to 10 input ingredients into up to 3 output itemstacks in the Witches' Cauldron while Magic Power is provided.
Info
Some items cannot be used in the Witches' Cauldron due to conflicts with other effects - bewitchment:wood_ash cannot be used anywhere, while bewitchment:mandrake_root and bewitchment:dimensional_sand cannot be used as the first item.
Info
Magic Power is consumed at a rate of 16 * {itemCount - 1} every second and each time an item is added to the Cauldron.
Identifier
Refer to this via any of the following:
mods.bewitchment.cauldron/* Used as page default */
mods.bewitchment.CauldronAdding Recipes
Adds the recipe:
groovymods.bewitchment.cauldron.add(CauldronRecipe)
Recipe Builder
Just like other recipe types, the Witches' Cauldron 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.bewitchment.cauldron.recipeBuilder()
ResourceLocation. Sets the Resource Location of the recipe.groovyname(String) name(ResourceLocation)IngredientList<IIngredient>. Sets the item inputs of the recipe. Requires greater than or equal to 1 and less than or equal to 10.groovyinput(IIngredient) input(IIngredient...) input(Collection<IIngredient>)ItemStackList. Sets the item outputs of the recipe. Requires greater than or equal to 1 and less than or equal to 3.groovyoutput(ItemStack) output(ItemStack...) output(Collection<ItemStack>)
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.bewitchment.api.registry.CauldronRecipe).groovyregister()
Example
mods.bewitchment.cauldron.recipeBuilder()
.input(ore('logWood'))
.input(item('minecraft:deadbush'))
.input(item('minecraft:dye', 3))
.output(item('bewitchment:catechu_brown'))
.register()Removing Recipes
Removes the recipe with the given Resource Location:
groovymods.bewitchment.cauldron.remove(ResourceLocation)Removes the recipe with the given String as its Resource Location:
groovymods.bewitchment.cauldron.remove(String)Removes the recipe:
groovymods.bewitchment.cauldron.remove(CauldronRecipe)Removes all recipes that match the given input:
groovymods.bewitchment.cauldron.removeByInput(IIngredient)Removes all recipes that match the given output:
groovymods.bewitchment.cauldron.removeByOutput(IIngredient)Removes all registered recipes:
groovymods.bewitchment.cauldron.removeAll()
Example
mods.bewitchment.cauldron.remove(resource('bewitchment:catechu_brown'))
mods.bewitchment.cauldron.removeByInput(item('bewitchment:tongue_of_dog'))
mods.bewitchment.cauldron.removeByOutput(item('bewitchment:iron_gall_ink'))
mods.bewitchment.cauldron.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.bewitchment.cauldron.streamRecipes()
