Workbench Plus (Additional Enchanted Miner)
Description
Converts up to 27 itemstacks into an output itemstack at the cost of power.
Identifier
Refer to this via any of the following:
mods.quarryplus.workbench_plus/* Used as page default */
mods.quarryplus.workbenchplus
mods.quarryplus.workbenchPlus
mods.quarryplus.WorkbenchPlus
Adding Recipes
Recipe Builder
Just like other recipe types, the Workbench Plus also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.quarryplus.workbench_plus.recipeBuilder()
IngredientList<IIngredient>
. Sets the item inputs of the recipe. Requires greater than or equal to 1 and less than or equal to 27.groovyinput(IIngredient) input(IIngredient...) input(Collection<IIngredient>)
ItemStackList
. Sets the item outputs of the recipe. Requires exactly 1.groovyoutput(ItemStack) output(ItemStack...) output(Collection<ItemStack>)
double
. Sets the amount of energy consumed to craft the recipe. Requires greater than 0. (Default0.0d
).groovyenergy(double)
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.yogpc.qp.recipe.IngredientRecipe
).groovyregister()
Example
mods.quarryplus.workbench_plus.recipeBuilder()
.output(item('minecraft:nether_star'))
.input(item('minecraft:diamond'),item('minecraft:gold_ingot'))
.energy(10000)
.register()
Removing Recipes
Removes all recipes that match the given output:
groovymods.quarryplus.workbench_plus.removeByOutput(ItemStack)
Removes all registered recipes:
groovymods.quarryplus.workbench_plus.removeAll()
Example
mods.quarryplus.workbench_plus.removeByOutput(item('quarryplus:quarry'))
mods.quarryplus.workbench_plus.removeAll()