Skip to content

Latex Extractor (Industrial Foregoing)

Description

Converts an input block in-world into a fluidstack over time, eventually breaking the block.

Identifier

Refer to this via any of the following:

groovy
mods.industrialforegoing.extractor/* Used as page default */
mods.industrialforegoing.Extractor
mods.industrialforegoing.tree_fluid_extractor
mods.industrialforegoing.treefluidextractor
mods.industrialforegoing.treeFluidExtractor
mods.industrialforegoing.TreeFluidExtractor

Adding Recipes

  • Adds a Latex Extractor recipe in the format input, output:

    groovy
    mods.industrialforegoing.extractor.add(ItemStack, FluidStack)
  • Adds a Latex Extractor recipe in the format input, output, breakChance:

    groovy
    mods.industrialforegoing.extractor.add(ItemStack, FluidStack, float)
Example
groovy
mods.industrialforegoing.extractor.add(item('minecraft:clay'), fluid('lava') * 50)
mods.industrialforegoing.extractor.add(item('minecraft:stone'), fluid('water') * 100, 1)

Removing Recipes

  • Removes all recipes that match the given input:

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

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

    groovy
    mods.industrialforegoing.extractor.removeAll()
Example
groovy
mods.industrialforegoing.extractor.removeByInput(item('minecraft:log2:1'))
mods.industrialforegoing.extractor.removeByOutput(fluid('latex'))
mods.industrialforegoing.extractor.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.extractor.streamRecipes()

© 2024 CleanroomMC. All Rights Reserved.