Skip to content

Kiln (Atum 2)

Description

Smelts an input item into an output itemstack and giving experience similar to a Furnace, but can process up to 4 stacks simultaneously. Makes a copy of the vanilla furnace recipes, excluding entries on a blacklist.

Identifier

Refer to this via any of the following:

groovy
mods.atum.kiln/* Used as page default */
mods.atum.Kiln

Adding Recipes

Recipe Builder

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

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

mods.atum.kiln.recipeBuilder()
  • ResourceLocation. Sets the Resource Location of the recipe.

    groovy
    name(String)
    name(ResourceLocation)
  • IngredientList<IIngredient>. Sets the item inputs of the recipe. Requires exactly 1.

    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>)
  • float. Sets the experience gained by taking the output item out of the Kiln. Requires greater than or equal to 0. (Default 0.0f).

    groovy
    experience(float)
  • 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.teammetallurgy.atum.api.recipe.kiln.IKilnRecipe).

    groovy
    register()
Example
groovy
mods.atum.kiln.recipeBuilder()
    .input(item('minecraft:diamond'))
    .output(item('minecraft:clay'))
    .register()

mods.atum.kiln.recipeBuilder()
    .input(item('minecraft:gold_ingot'))
    .output(item('minecraft:clay') * 4)
    .experience(0.5f)
    .register()

Removing Recipes

  • Removes all recipes that match the given input:

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

    groovy
    mods.atum.kiln.removeByOutput(IIngredient)
  • Removes all registered recipes:

    groovy
    mods.atum.kiln.removeAll()
Example
groovy
mods.atum.kiln.removeByInput(item('minecraft:netherrack'))
mods.atum.kiln.removeByOutput(item('minecraft:stone'))
mods.atum.kiln.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.atum.kiln.streamRecipes()

Contributors

Changelog

© 2024 CleanroomMC. All Rights Reserved.