Skip to content

Electrolytic Separator (Mekanism)

Description

Converts an input fluid into two output gasstacks at the cost of power.

Identifier

Refer to this via any of the following:

groovy
mods.mekanism.electrolytic_separator/* Used as page default */
mods.mekanism.electrolyticseparator
mods.mekanism.electrolyticSeparator
mods.mekanism.ElectrolyticSeparator
mods.mekanism.separator
mods.mekanism.Separator

Adding Recipes

  • Adds recipes in the format input, leftOutput, rightOutput, energy:

    groovy
    mods.mekanism.electrolytic_separator.add(FluidStack, GasStack, GasStack, double)
Example
groovy
mods.mekanism.electrolytic_separator.add(fluid('lava') * 10, gas('cleanGold') * 5, gas('cleanCopper') * 3, 3000)

Recipe Builder

Just like other recipe types, the Electrolytic Separator also uses a recipe builder.

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

mods.mekanism.electrolytic_separator.recipeBuilder()
  • FluidStackList. Sets the fluid inputs of the recipe. Requires exactly 1.

    groovy
    fluidInput(FluidStack)
    fluidInput(FluidStack...)
    fluidInput(Collection<FluidStack>)
  • GasStackList. Sets the gas outputs of the recipe. Requires exactly 2.

    groovy
    gasOutput(GasStack)
    gasOutput(GasStack...)
    gasOutput(Collection<GasStack>)
  • double. Sets the energy cost of the recipe. Requires greater than 0. (Default 0.0d).

    groovy
  • 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.SeparatorRecipe).

    groovy
    register()
Example
groovy
mods.mekanism.electrolytic_separator.recipeBuilder()
    .fluidInput(fluid('lava') * 10)
    .gasOutput(gas('cleanGold') * 5, gas('cleanCopper') * 3)
    .energy(3000)
    .register()

Removing Recipes

  • Removes all recipes that match the given input:

    groovy
    mods.mekanism.electrolytic_separator.removeByInput(FluidStack)
  • Removes all registered recipes:

    groovy
    mods.mekanism.electrolytic_separator.removeAll()
Example
groovy
mods.mekanism.electrolytic_separator.removeByInput(fluid('water'))
mods.mekanism.electrolytic_separator.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.electrolytic_separator.streamRecipes()

贡献者

页面历史

© 2024 CleanroomMC. All Rights Reserved.