Skip to content

Orechid (Botania)

Description

Converts stone blocks into one of a few ore blocks at the cost of mana.

Identifier

Refer to this via any of the following:

groovy
mods.botania.orechid/* Used as page default */
mods.botania.Orechid

Adding Recipes

  • Adds recipes in the format output, weight:

    groovy
    mods.botania.orechid.add(OreDictIngredient, int)
  • Adds recipes in the format output, weight:

    groovy
    mods.botania.orechid.add(String, int)
Example
groovy
mods.botania.orechid.add(ore('oreEmerald'), 1350)
mods.botania.orechid.add(ore('blockGold'), 1800)

Removing Recipes

  • Removes all recipes that match the given output:

    groovy
    mods.botania.orechid.removeByOutput(OreDictIngredient)
  • Removes all recipes that match the given output:

    groovy
    mods.botania.orechid.removeByOutput(String)
  • Removes all registered recipes:

    groovy
    mods.botania.orechid.removeAll()
Example
groovy
mods.botania.orechid.removeByOutput(ore('oreEmerald'))
mods.botania.orechid.removeByOutput(ore('oreQuartz'))
mods.botania.orechid.removeByOutput('oreCoal')
mods.botania.orechid.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.botania.orechid.streamRecipes()

© 2024 CleanroomMC. All Rights Reserved.