Skip to content

Fluid Sieving Machine (Industrial Foregoing)

Description

Converts an input itemstack and input fluidstack into an output itemstack.

Identifier

Refer to this via any of the following:

groovy
mods.industrialforegoing.ore_sieve/* Used as page default */
mods.industrialforegoing.oresieve
mods.industrialforegoing.oreSieve
mods.industrialforegoing.OreSieve
mods.industrialforegoing.fluid_sieving
mods.industrialforegoing.fluidsieving
mods.industrialforegoing.fluidSieving
mods.industrialforegoing.FluidSieving

Adding Recipes

  • Adds a Fluid Sieving Machine recipe in the format input, output, sieveItem:

    groovy
    mods.industrialforegoing.ore_sieve.add(FluidStack, ItemStack, ItemStack)
Example
groovy
mods.industrialforegoing.ore_sieve.add(fluid('if.ore_fluid_fermented').withNbt(['Ore': 'oreGold']) * 100, item('minecraft:nether_star') * 2, item('minecraft:clay'))
mods.industrialforegoing.ore_sieve.add(fluid('lava') * 5, item('minecraft:gold_ingot'), item('minecraft:clay'))

Removing Recipes

  • Removes all recipes that match the given input:

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

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

    groovy
    mods.industrialforegoing.ore_sieve.removeAll()
Example
groovy
mods.industrialforegoing.ore_sieve.removeByInput(item('minecraft:sand'))
mods.industrialforegoing.ore_sieve.removeByInput(fluid('if.pink_slime'))
mods.industrialforegoing.ore_sieve.removeByOutput(item('industrialforegoing:pink_slime_ingot)
mods.industrialforegoing.ore_sieve.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_sieve.streamRecipes()

Contributors

Changelog

© 2024 CleanroomMC. All Rights Reserved.