Skip to content

Lexicon Knowledge (Botania)

Description

Creates a new type of knowledge that Lexica Botania entries may be gated with. Can only be created.

Identifier

Refer to this via any of the following:

groovy
mods.botania.knowledge/* Used as page default */
mods.botania.Knowledge

Adding Entries

  • Adds entries in the format id, formatting:

    groovy
    mods.botania.knowledge.add(String, TextFormatting)
  • Adds entries in the format id, formatting, autoUnlock:

    groovy
    mods.botania.knowledge.add(String, TextFormatting, boolean)
Example
groovy
mods.botania.knowledge.add('newType', TextFormatting.RED, true)

Getting the value of entries

  • Iterates through every entry in the registry:

    groovy
    mods.botania.knowledge.streamKnowledgeTypes()

Contributors

Changelog

© 2024 CleanroomMC. All Rights Reserved.