Skip to content

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:

groovy
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.

    groovy
    input(IIngredient)
    input(IIngredient...)
    input(Collection<IIngredient>)
  • ItemStackList. Sets the item outputs of the recipe. Requires exactly 1.

    groovy
    output(ItemStack)
    output(ItemStack...)
    output(Collection<ItemStack>)
  • double. Sets the amount of energy consumed to craft the recipe. Requires greater than 0. (Default 0.0d).

    groovy
    energy(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. (returns null or com.yogpc.qp.recipe.IngredientRecipe).

    groovy
    register()
Example
groovy
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:

    groovy
    mods.quarryplus.workbench_plus.removeByOutput(ItemStack)
  • Removes all registered recipes:

    groovy
    mods.quarryplus.workbench_plus.removeAll()
Example
groovy
mods.quarryplus.workbench_plus.removeByOutput(item('quarryplus:quarry'))
mods.quarryplus.workbench_plus.removeAll()

Contributors

© 2024 CleanroomMC. All Rights Reserved.