Skip to content

Stygian Iron Anvil (Woot)

Description

Has a catalyst (which may or may not be consumed) placed on the anvil, with the input items thrown atop the base.

Note

The anvil must be above a Magma Block and then right clicked with a Hammer, converting the input items into the output item.

Warning

While more than 6 items can function as the input of a Stygian Iron Anvil recipe, only the first 6 are shown in JEI.

Identifier

Refer to this via any of the following:

groovy
mods.woot.stygian_iron_anvil/* Used as page default */
mods.woot.stygianironanvil
mods.woot.stygianIronAnvil
mods.woot.StygianIronAnvil
mods.woot.anvil
mods.woot.Anvil

Adding Recipes

Recipe Builder

Just like other recipe types, the Stygian Iron Anvil also uses a recipe builder.

Don't know what a builder is? Check the builder info page out.

mods.woot.stygian_iron_anvil.recipeBuilder()
  • IngredientList<IIngredient>. Sets the item inputs of the recipe. Requires greater than or equal to 1 and less than or equal to Integer.MAX_VALUE.

    groovy
    input(IIngredient)
    input(IIngredient...)
    input(Collection<IIngredient>)
  • ItemStackList. Sets the item outputs of the recipe. Requires exactly 1.

    groovy
    output(ItemStack)
    output(ItemStack...)
    output(Collection<ItemStack>)
  • ItemStack. Sets the itemstack used for the base. Requires not isEmpty. (Default ItemStack.EMPTY).

    groovy
    base(ItemStack)
  • boolean. Sets if the base is used as a catalyst and not consumed. (Default false).

    groovy
    preserveBase()
    preserveBase(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. (returns null or ipsis.woot.crafting.IAnvilRecipe).

    groovy
    register()
Example
groovy
mods.woot.stygian_iron_anvil.recipeBuilder()
    .input(item('minecraft:diamond'),item('minecraft:diamond'),item('minecraft:diamond'))
    .base(item('minecraft:gold_ingot'))
    .output(item('minecraft:clay'))
    .preserveBase(true)
    .register()

mods.woot.stygian_iron_anvil.recipeBuilder()
    .input(item('minecraft:diamond'), item('minecraft:gold_ingot'), item('minecraft:iron_ingot'), item('minecraft:diamond_block'), item('minecraft:gold_block'), item('minecraft:iron_bars'), item('minecraft:magma'))
    .base(item('minecraft:clay'))
    .output(item('minecraft:clay'))
    .preserveBase()
    .register()

Removing Recipes

  • Removes all recipes that match the given base item:

    groovy
    mods.woot.stygian_iron_anvil.removeByBase(ItemStack)
  • Removes all recipes that match the given output:

    groovy
    mods.woot.stygian_iron_anvil.removeByOutput(ItemStack)
  • Removes all registered recipes:

    groovy
    mods.woot.stygian_iron_anvil.removeAll()
Example
groovy
mods.woot.stygian_iron_anvil.removeByBase(item('minecraft:iron_bars'))
mods.woot.stygian_iron_anvil.removeByOutput(item('woot:stygianironplate'))
mods.woot.stygian_iron_anvil.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:

    groovy
    mods.woot.stygian_iron_anvil.streamRecipes()

© 2024 CleanroomMC. All Rights Reserved.