Skip to content

Mechanical 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.mechanical_drying_basin
mods.id.mechanicaldryingbasin
mods.id.mechanicalDryingBasin
mods.id.MechanicalDryingBasin
mods.integrateddynamics.mechanical_drying_basin/* Used as page default */
mods.integrateddynamics.mechanicaldryingbasin
mods.integrateddynamics.mechanicalDryingBasin
mods.integrateddynamics.MechanicalDryingBasin

Adding Recipes

Recipe Builder

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

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

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

    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 true).

    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.mechanical_drying_basin.recipeBuilder()
    .input(item('minecraft:diamond'))
    .fluidInput(fluid('water') * 50)
    .fluidOutput(fluid('lava') * 20000)
    .duration(300)
    .register()

Removing Recipes

  • Removes all recipes that match the given input:

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

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

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

贡献者

页面历史

© 2024 CleanroomMC. All Rights Reserved.