Skip to content

Fermentation Station (Industrial Foregoing)

Description

Converts an input fluidstack into an output fluidstack.

Identifier

Refer to this via any of the following:

groovy
mods.industrialforegoing.ore_fermenter/* Used as page default */
mods.industrialforegoing.orefermenter
mods.industrialforegoing.oreFermenter
mods.industrialforegoing.OreFermenter
mods.industrialforegoing.fermentation
mods.industrialforegoing.Fermentation

Adding Recipes

  • Adds a Fermentation Station recipe in the format input, output:

    groovy
    mods.industrialforegoing.ore_fermenter.add(FluidStack, FluidStack)
Example
groovy
mods.industrialforegoing.ore_fermenter.add(fluid('if.ore_fluid_raw').withNbt(['Ore': 'oreGold']), fluid('if.ore_fluid_fermented').withNbt(['Ore': 'oreGold']) * 2)

Removing Recipes

  • Removes all recipes that match the given input:

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

    groovy
    mods.industrialforegoing.ore_fermenter.removeByOutput(IIngredient)
  • Removes all registered recipes:

    groovy
    mods.industrialforegoing.ore_fermenter.removeAll()
Example
groovy
mods.industrialforegoing.ore_fermenter.removeByInput(fluid('if.ore_fluid_raw').withNbt([Ore: 'oreRedstone']))
mods.industrialforegoing.ore_fermenter.removeByOutput(fluid('if.ore_fluid_fermented').withNbt([Ore: 'oreRedstone']))
mods.industrialforegoing.ore_fermenter.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.industrialforegoing.ore_fermenter.streamRecipes()

© 2024 CleanroomMC. All Rights Reserved.