Skip to content

Offering to the Gods (Nature's Aura)

Description

Converts up to 16 times the input itemstack into output itemstacks by consuming a catalyst item from the ground in a multiblock structure.

Note

The Offering Table can hold up to 16 items, and will try to run the recipe as many times as possible for a single catalyst item.

Identifier

Refer to this via any of the following:

groovy
mods.naturesaura.offering/* Used as page default */
mods.naturesaura.Offering

Adding Recipes

Recipe Builder

Just like other recipe types, the Offering to the Gods also uses a recipe builder.

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

mods.naturesaura.offering.recipeBuilder()
  • 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>)
  • IIngredient. Sets the catalyst item. Requires not null.

    groovy
    catalyst(IIngredient)
  • 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 de.ellpeck.naturesaura.api.recipes.OfferingRecipe).

    groovy
    register()
Example
groovy
mods.naturesaura.offering.recipeBuilder()
    .name('demo')
    .input(item('minecraft:diamond'))
    .catalyst(item('minecraft:clay'))
    .output(item('minecraft:gold_ingot') * 8)
    .register()

mods.naturesaura.offering.recipeBuilder()
    .name(resource('example:demo'))
    .input(item('minecraft:clay'))
    .catalyst(item('minecraft:gold_ingot'))
    .output(item('minecraft:diamond') * 8)
    .register()

mods.naturesaura.offering.recipeBuilder()
    .input(item('minecraft:gold_ingot') * 10)
    .catalyst(item('minecraft:diamond'))
    .output(item('minecraft:clay'))
    .register()

Removing Recipes

  • Removes all recipes that match the given catalyst:

    groovy
    mods.naturesaura.offering.removeByCatalyst(IIngredient)
  • Removes all recipes that match the given input:

    groovy
    mods.naturesaura.offering.removeByInput(IIngredient)
  • Removes the Offering to the Gods recipe with the given name:

    groovy
    mods.naturesaura.offering.removeByName(ResourceLocation)
  • Removes all recipes that match the given output:

    groovy
    mods.naturesaura.offering.removeByOutput(IIngredient)
  • Removes all registered recipes:

    groovy
    mods.naturesaura.offering.removeAll()
Example
groovy
mods.naturesaura.offering.removeByCatalyst(item('naturesaura:calling_spirit'))
mods.naturesaura.offering.removeByInput(item('minecraft:nether_star'))
mods.naturesaura.offering.removeByName(resource('naturesaura:token_euphoria'))
mods.naturesaura.offering.removeByOutput(item('naturesaura:sky_ingot'))
mods.naturesaura.offering.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.naturesaura.offering.streamRecipes()

© 2024 CleanroomMC. All Rights Reserved.