Skip to content

Ice Dragonforge (Ice And Fire)

Description

Converts two input itemstacks into an output itemstack in a multiblock Dragonforge Ice Multiblock while there is a stage 3+ Ice Dragon nearby.

Identifier

Refer to this via any of the following:

groovy
mods.iceandfire.ice_forge/* Used as page default */
mods.iceandfire.iceforge
mods.iceandfire.iceForge
mods.iceandfire.IceForge

Adding Recipes

  • Add the given recipe to the recipe list:

    groovy
    mods.iceandfire.ice_forge.add(DragonForgeRecipe)

Recipe Builder

Just like other recipe types, the Ice Dragonforge also uses a recipe builder.

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

mods.iceandfire.ice_forge.recipeBuilder()
  • IngredientList<IIngredient>. Sets the item inputs of the recipe. Requires exactly 2.

    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>)
  • 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 com.github.alexthe666.iceandfire.recipe.DragonForgeRecipe).

    groovy
    register()
Example
groovy
mods.iceandfire.ice_forge.recipeBuilder()
    .input(item('minecraft:gold_ingot'), item('minecraft:gold_ingot'))
    .output(item('minecraft:clay'))
    .register()

mods.iceandfire.ice_forge.recipeBuilder()
    .input(item('minecraft:diamond'), item('minecraft:gold_ingot'))
    .output(item('minecraft:clay'))
    .register()

Removing Recipes

  • Removes the given recipe from the recipe list:

    groovy
    mods.iceandfire.ice_forge.remove(DragonForgeRecipe)
  • Removes all recipes that match the given input:

    groovy
    mods.iceandfire.ice_forge.removeByInput(IIngredient)
  • Removes all recipes that match the given output:

    groovy
    mods.iceandfire.ice_forge.removeByOutput(IIngredient)
  • Removes all registered recipes:

    groovy
    mods.iceandfire.ice_forge.removeAll()
Example
groovy
mods.iceandfire.ice_forge.removeByInput(item('minecraft:iron_ingot'))
mods.iceandfire.ice_forge.removeByInput(item('iceandfire:ice_dragon_blood'))
mods.iceandfire.ice_forge.removeByOutput(item('iceandfire:dragonsteel_ice_ingot'))
mods.iceandfire.ice_forge.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.iceandfire.ice_forge.streamRecipes()

Contributors

© 2024 CleanroomMC. All Rights Reserved.