Skip to content

Sludge Refiner (Industrial Foregoing)

Description

Converts 1000mb of Sludge into a random itemstack based on the weight of the given itemstack.

Identifier

Refer to this via any of the following:

groovy
mods.industrialforegoing.sludge_refiner/* Used as page default */
mods.industrialforegoing.sludgerefiner
mods.industrialforegoing.sludgeRefiner
mods.industrialforegoing.SludgeRefiner

Adding Recipes

  • Add the given recipe to the recipe list:

    groovy
    mods.industrialforegoing.sludge_refiner.add(SludgeEntry)
  • Adds a Protein Reactor recipe in the format output, weight:

    groovy
    mods.industrialforegoing.sludge_refiner.add(ItemStack, int)
Example
groovy
mods.industrialforegoing.sludge_refiner.add(item('minecraft:gold_ingot'), 5)

Removing Recipes

  • Removes the given recipe from the recipe list:

    groovy
    mods.industrialforegoing.sludge_refiner.remove(SludgeEntry)
  • Removes all recipes that match the given output:

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

    groovy
    mods.industrialforegoing.sludge_refiner.removeAll()
Example
groovy
mods.industrialforegoing.sludge_refiner.removeByOutput(item('minecraft:clay_ball'))
mods.industrialforegoing.sludge_refiner.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.sludge_refiner.streamRecipes()

Contributors

Changelog

© 2024 CleanroomMC. All Rights Reserved.