Laser Drill (Industrial Foregoing)
Description
Converts power into ores, with a given weight, between a minimum and maximum Y value, in any whitelisted biome or not in any blacklisted biome, and with a specific color of laser lens impacting the probability.
Identifier
Refer to this via any of the following:
mods.industrialforegoing.laser_drill/* Used as page default */
mods.industrialforegoing.laserdrill
mods.industrialforegoing.laserDrill
mods.industrialforegoing.LaserDrill
Adding Recipes
Recipe Builder
Just like other recipe types, the Laser Drill also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.industrialforegoing.laser_drill.recipeBuilder()
ItemStackList
. Sets the item outputs of the recipe. Requires exactly 1.groovyoutput(ItemStack) output(ItemStack...) output(Collection<ItemStack>)
int
. Sets the maximum Y the output can be found at. Requires less than or equal to 255. (Default255
).groovymaxY(int)
int
. Sets the minimum Y the output can be found at. Requires less than or equal to 255. (Default0
).groovyminY(int)
int
. Sets the chance the output is generated. Requires greater than 0. (Default0
).groovyweight(int)
int
. Sets the metadata of the lens that impacts the weight probability, which determines the color of the lens. (Default0
).groovylensMeta(int)
List<Biome>
. Sets the biomes the output cannot be generated in.groovyblacklist(Biome) blacklist(Biome...) blacklist(Collection<Biome>)
List<Biome>
. Sets the biomes the output can be generated in.groovywhitelist(Biome) whitelist(Biome...) whitelist(Collection<Biome>)
First validates the builder, returning
null
and outputting errors to the log file if the validation failed, then registers the builder and returns the registered object. (returnsnull
orcom.buuz135.industrial.api.recipe.LaserDrillEntry$LaserDrillEntryExtended
).groovyregister()
Example
mods.industrialforegoing.laser_drill.recipeBuilder()
.output(item('minecraft:clay'))
.lensMeta(5)
.weight(100)
.register()
Removing Recipes
Removes all ores with the given biome blacklisted:
groovymods.industrialforegoing.laser_drill.removeByBlacklist(Biome)
Removes all ores with the given lens meta:
groovymods.industrialforegoing.laser_drill.removeByLens(int)
Removes all ores with the given lens meta:
groovymods.industrialforegoing.laser_drill.removeByLens(ItemStack)
Removes all recipes that match the given output:
groovymods.industrialforegoing.laser_drill.removeByOutput(IIngredient)
Removes all ores with the given biome whitelisted:
groovymods.industrialforegoing.laser_drill.removeByWhitelist(Biome)
Removes all registered recipes:
groovymods.industrialforegoing.laser_drill.removeAll()
Example
mods.industrialforegoing.laser_drill.removeByBlacklist(biome('minecraft:sky'))
mods.industrialforegoing.laser_drill.removeByLens(5)
mods.industrialforegoing.laser_drill.removeByLens(item('industrialforegoing:laser_lens:5'))
mods.industrialforegoing.laser_drill.removeByOutput(item('minecraft:coal_ore'))
mods.industrialforegoing.laser_drill.removeByWhitelist(biome('minecraft:hell'))
mods.industrialforegoing.laser_drill.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.laser_drill.streamRecipes()