Skip to content

Dissolution Chamber (Mekanism)

Description

Converts an input itemstack into an output gasstack at the cost of 100mb of Sulfuric Acid.

Identifier

The identifier mods.mekanism.dissolution_chamber will be used as the default on this page.

All Identifiers

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

groovy
mods.mekanism.dissolver
mods.mekanism.Dissolver
mods.mekanism.dissolutionchamber
mods.mekanism.dissolutionChamber
mods.mekanism.DissolutionChamber
mods.mekanism.dissolution_chamber/* Used as page default */

Adding Recipes

  • Adds recipes in the format ingredient, output:

    groovy
    mods.mekanism.dissolution_chamber.add(IIngredient, GasStack)
Example
groovy
mods.mekanism.dissolution_chamber.add(item('minecraft:packed_ice'), gas('water'))

Recipe Builder

Just like other recipe types, the Dissolution Chamber 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.mekanism.dissolution_chamber.recipeBuilder()

  • IngredientList<IIngredient>. Sets the item inputs of the recipe. Requires exactly 1.

    groovy
    input(IIngredient)
    input(IIngredient...)
    input(Collection<IIngredient>)
  • GasStackList. Sets the gas outputs of the recipe. Requires exactly 1.

    groovy
    gasOutput(GasStack)
    gasOutput(GasStack...)
    gasOutput(Collection<GasStack>)

  • 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 mekanism.common.recipe.machines.DissolutionRecipe).

    groovy
    register()

Example
groovy
mods.mekanism.dissolution_chamber.recipeBuilder()
    .input(item('minecraft:packed_ice'))
    .gasOutput(gas('water') * 2000)
    .register()

Removing Recipes

  • Removes all recipes that match the given input:

    groovy
    mods.mekanism.dissolution_chamber.removeByInput(IIngredient)
  • Removes all registered recipes:

    groovy
    mods.mekanism.dissolution_chamber.removeAll()
Example
groovy
mods.mekanism.dissolution_chamber.removeByInput(item('mekanism:oreblock:0'))
mods.mekanism.dissolution_chamber.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.mekanism.dissolution_chamber.streamRecipes()

Contributors

© 2024 CleanroomMC. All Rights Reserved.