Skip to content

Soaking Unit (Better With Addons) ​

Description ​

Converts an input item into an output itemstack if placed within the appropriate multiblock. The multiblock is Ice directly above the Soaking Box, 8 Water around the Soaking Box, and Water directly below the Soaking Box.

Identifier ​

The identifier mods.betterwithaddons.soaking_box will be used as the default on this page.

All Identifiers

Any of these can be used to refer to this compat:

groovy
mods.betterwithaddons.soakingbox
mods.betterwithaddons.soakingBox
mods.betterwithaddons.SoakingBox
mods.betterwithaddons.soaking_box/* Used as page default */

Adding Recipes ​

  • Add the given recipe to the recipe list:

    groovy
    mods.betterwithaddons.soaking_box.add(CherryBoxRecipe)

Recipe Builder ​

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

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

Recipe Builder
  • Create the Recipe Builder.

    groovy
    mods.betterwithaddons.soaking_box.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>)

  • 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 betterwithaddons.crafting.recipes.CherryBoxRecipe).

    groovy
    register()

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

mods.betterwithaddons.soaking_box.recipeBuilder()
    .input(item('minecraft:gold_ingot'))
    .output(item('minecraft:clay') * 4)
    .register()

Removing Recipes ​

  • Removes the given recipe from the recipe list:

    groovy
    mods.betterwithaddons.soaking_box.remove(CherryBoxRecipe)
  • Removes all recipes that match the given input:

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

    groovy
    mods.betterwithaddons.soaking_box.removeByOutput(IIngredient)
  • Removes all registered recipes:

    groovy
    mods.betterwithaddons.soaking_box.removeAll()
Example
groovy
mods.betterwithaddons.soaking_box.removeByInput(item('betterwithaddons:bamboo'))
mods.betterwithaddons.soaking_box.removeByOutput(item('betterwithaddons:japanmat:8'))
mods.betterwithaddons.soaking_box.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.betterwithaddons.soaking_box.streamRecipes()

Contributors

© 2024 CleanroomMC. All Rights Reserved.