Skip to content

Mineralis Ritual Registry (Astral Sorcery)

Description

Using a mineralis ritual will convert nearby stone blocks into random ores.

Identifier

The identifier mods.astralsorcery.mineralis_ritual_registry will be used as the default on this page.

All Identifiers

Any of these can be used to refer to this compat:

groovy
mods.astral.mineralisritualregistry
mods.astral.mineralisRitualRegistry
mods.astral.MineralisRitualRegistry
mods.astral.mineralis_ritual_registry
mods.astralsorcery.mineralisritualregistry
mods.astralsorcery.mineralisRitualRegistry
mods.astralsorcery.MineralisRitualRegistry
mods.astralsorcery.mineralis_ritual_registry/* Used as page default */

Adding Entries

  • Adds entries in the format ore, weight:

    groovy
    mods.astralsorcery.mineralis_ritual_registry.add(String, int)
Example
groovy
mods.astralsorcery.mineralis_ritual_registry.add(ore('blockDiamond'), 10000)

Removing Entries

  • Removes entries of the given ore:

    groovy
    mods.astralsorcery.mineralis_ritual_registry.remove(String)
  • Removes entries of the given ore:

    groovy
    mods.astralsorcery.mineralis_ritual_registry.remove(OreDictIngredient)
  • Removes all registered recipes:

    groovy
    mods.astralsorcery.mineralis_ritual_registry.removeAll()
Example
groovy
mods.astralsorcery.mineralis_ritual_registry.remove(ore('oreDiamond'))
mods.astralsorcery.mineralis_ritual_registry.removeAll()

Getting the value of entries

  • Iterates through every entry in the registry, with the ability to call remove on any element to remove it:

    groovy
    mods.astralsorcery.mineralis_ritual_registry.streamRecipes()

Contributors

© 2024 CleanroomMC. All Rights Reserved.