Skip to content

Drying Basin (Rustic)

Description

Converts fluids into itemstacks over time.

Identifier

Refer to this via any of the following:

groovy
mods.rustic.evaporating_basin/* Used as page default */
mods.rustic.evaporatingbasin
mods.rustic.evaporatingBasin
mods.rustic.EvaporatingBasin
mods.rustic.drying_basin
mods.rustic.dryingbasin
mods.rustic.dryingBasin
mods.rustic.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.rustic.evaporating_basin.recipeBuilder()
  • 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 in ticks the recipe will take. (Default fluidInput amount).

    groovy
    time(int)
  • 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 rustic.common.crafting.IEvaporatingBasinRecipe).

    groovy
    register()
Example
groovy
mods.rustic.evaporating_basin.recipeBuilder()
    .fluidInput(fluid('water') * 200)
    .output(item('minecraft:clay'))
    .register()

mods.rustic.evaporating_basin.recipeBuilder()
    .fluidInput(fluid('lava') * 50)
    .output(item('minecraft:iron_ingot'))
    .register()

Removing Recipes

  • Removes all recipes that match the given input:

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

    groovy
    mods.rustic.evaporating_basin.removeByOutput(IIngredient)
  • Removes all registered recipes:

    groovy
    mods.rustic.evaporating_basin.removeAll()
Example
groovy
mods.rustic.evaporating_basin.removeByInput(fluid('ironberryjuice'))
mods.rustic.evaporating_basin.removeByOutput(item('rustic:dust_tiny_iron'))
mods.rustic.evaporating_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.rustic.evaporating_basin.streamRecipes()

© 2024 CleanroomMC. All Rights Reserved.