Latex Extractor (Industrial Foregoing)
Description
Converts an input block in-world into a fluidstack over time, eventually breaking the block.
Identifier
The identifier mods.industrialforegoing.extractor will be used as the default on this page.
All Identifiers
Any of these can be used to refer to this compat:
groovy
mods.industrialforegoing.extractor/* Used as page default */
mods.industrialforegoing.Extractor
mods.industrialforegoing.treefluidextractor
mods.industrialforegoing.treeFluidExtractor
mods.industrialforegoing.TreeFluidExtractor
mods.industrialforegoing.tree_fluid_extractorAdding Recipes
Add the given recipe to the recipe list:
groovymods.industrialforegoing.extractor.add(ExtractorEntry)Adds a Latex Extractor recipe in the format
input,output:groovymods.industrialforegoing.extractor.add(ItemStack, FluidStack)Adds a Latex Extractor recipe in the format
input,output,breakChance:groovymods.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 the given recipe from the recipe list:
groovymods.industrialforegoing.extractor.remove(ExtractorEntry)Removes all recipes that match the given input:
groovymods.industrialforegoing.extractor.removeByInput(IIngredient)Removes all recipes that match the given output:
groovymods.industrialforegoing.extractor.removeByOutput(IIngredient)Removes all registered recipes:
groovymods.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:
groovymods.industrialforegoing.extractor.streamRecipes()
