Skip to content

Soaking Pot (Pyrotech)

Description

Converts an item into a new one by soaking it in a liquid. Can require a campfire

Identifier

Refer to this via any of the following:

groovy
mods.pyrotech.soaking_pot/* Used as page default */
mods.pyrotech.soakingpot
mods.pyrotech.soakingPot
mods.pyrotech.SoakingPot

Adding Recipes

  • Adds recipes in the format name, input, output, time:

    groovy
    mods.pyrotech.soaking_pot.add(String, IIngredient, FluidStack, ItemStack, int)
Example
groovy
mods.pyrotech.soaking_pot.add('dirt_to_apple', item('minecraft:dirt'), fluid('water'), item('minecraft:apple'), 1200)

Recipe Builder

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

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

mods.pyrotech.soaking_pot.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>)
  • FluidStackList. Sets the fluid inputs of the recipe. Requires exactly 1.

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

    groovy
    output(ItemStack)
    output(ItemStack...)
    output(Collection<ItemStack>)
  • int. Sets the time required for the recipe to complete. Requires greater than or equal to 1. (Default 0).

    groovy
    time(int)
  • boolean. Sets if a campfire is required underneath. (Default false).

    groovy
    campfireRequired(boolean)
Example
groovy
mods.pyrotech.soaking_pot.recipeBuilder()
    .input(item('minecraft:diamond'))
    .fluidInput(fluid('amongium') * 125)
    .output(item('minecraft:emerald'))
    .time(400)
    .campfireRequired(true)
    .name('diamond_to_emerald_with_amongium_soaking_pot')

Removing Recipes

  • Removes all recipes that match the given input:

    groovy
    mods.pyrotech.soaking_pot.removeByInput(ItemStack)
  • Removes all recipes that match the given output:

    groovy
    mods.pyrotech.soaking_pot.removeByOutput(IIngredient)
  • Removes all registered recipes:

    groovy
    mods.pyrotech.soaking_pot.removeAll()
Example
groovy
mods.pyrotech.soaking_pot.removeByOutput(item('pyrotech:material', 54))
mods.pyrotech.soaking_pot.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.pyrotech.soaking_pot.streamRecipes()

贡献者

页面历史

© 2024 CleanroomMC. All Rights Reserved.