Skip to content

Drying Basin (Integrated Dynamics)

Description

Takes either an item or fluid input and gives either an item or fluid output after a duration.

Identifier

Refer to this via any of the following:

groovy
mods.id.drying_basin
mods.id.dryingbasin
mods.id.dryingBasin
mods.id.DryingBasin
mods.integrateddynamics.drying_basin/* Used as page default */
mods.integrateddynamics.dryingbasin
mods.integrateddynamics.dryingBasin
mods.integrateddynamics.DryingBasin

Adding Recipes

Recipe Builder

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

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

mods.integrateddynamics.drying_basin.recipeBuilder()
  • boolean. Sets if the recipe is added to the basic (Drying Basin) machine. (Default true).

    groovy
    basic()
    basic(boolean)
  • int. Sets the time in ticks the recipe takes to process. (Default 10).

    groovy
    duration(int)
  • boolean. Sets if the recipe is added to the mechanical (Mechanical Drying Basin) machine. (Default false).

    groovy
    mechanical()
    mechanical(boolean)
  • 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 org.cyclops.cyclopscore.recipe.custom.api.IRecipe<org.cyclops.cyclopscore.recipe.custom.component.IngredientAndFluidStackRecipeComponent, org.cyclops.cyclopscore.recipe.custom.component.IngredientAndFluidStackRecipeComponent, org.cyclops.cyclopscore.recipe.custom.component.DurationRecipeProperties>).

    groovy
    register()
Example
groovy
mods.integrateddynamics.drying_basin.recipeBuilder()
    .input(item('minecraft:gold_ingot'))
    .output(item('minecraft:clay'))
    .fluidInput(fluid('water') * 500)
    .fluidOutput(fluid('lava') * 2000)
    .mechanical()
    .duration(5)
    .register()

mods.integrateddynamics.drying_basin.recipeBuilder()
    .output(item('minecraft:clay'))
    .fluidInput(fluid('water') * 2000)
    .register()

Removing Recipes

  • Removes all recipes that match the given input:

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

    groovy
    mods.integrateddynamics.drying_basin.removeByOutput(ItemStack)
  • Removes all registered recipes:

    groovy
    mods.integrateddynamics.drying_basin.removeAll()
Example
groovy
mods.integrateddynamics.drying_basin.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.integrateddynamics.drying_basin.streamRecipes()

© 2024 CleanroomMC. All Rights Reserved.