Skip to content

Aevitas Perk Registry (Astral Sorcery)

Description

Having the Stone Enrichment perk will convert nearby stone blocks into random ores.

Identifier

Refer to this via any of the following:

groovy
mods.astralsorcery.aevitas_perk_registry/* Used as page default */
mods.astralsorcery.aevitasperkregistry
mods.astralsorcery.aevitasPerkRegistry
mods.astralsorcery.AevitasPerkRegistry
mods.astral.aevitas_perk_registry
mods.astral.aevitasperkregistry
mods.astral.aevitasPerkRegistry
mods.astral.AevitasPerkRegistry

Adding Entries

  • Adds entries in the format ore, weight:

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

Removing Entries

  • Removes entries of the given ore:

    groovy
    mods.astralsorcery.aevitas_perk_registry.remove(OreDictIngredient)
  • Removes entries of the given ore:

    groovy
    mods.astralsorcery.aevitas_perk_registry.remove(String)
  • Removes all registered recipes:

    groovy
    mods.astralsorcery.aevitas_perk_registry.removeAll()
Example
groovy
mods.astralsorcery.aevitas_perk_registry.remove(ore('oreDiamond'))
mods.astralsorcery.aevitas_perk_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.aevitas_perk_registry.streamRecipes()

© 2024 CleanroomMC. All Rights Reserved.