Skip to content

Perk Tree (Astral Sorcery)

Description

Create a custom perk with a custom effect, at a given location.

Warning

This compat is not fully documented. Some or all of its features are not present on the wiki. View the source code to gain an accurate understanding of the compat.

Identifier

Refer to this via any of the following:

groovy
mods.astralsorcery.perk_tree/* Used as page default */
mods.astralsorcery.perktree
mods.astralsorcery.perkTree
mods.astralsorcery.PerkTree
mods.astral.perk_tree
mods.astral.perktree
mods.astral.perkTree
mods.astral.PerkTree

Adding Entries

  • Adds the given perk to the perk map:

    groovy
    mods.astralsorcery.perk_tree.add(AbstractPerk)
  • Adds a connection between two perks:

    groovy
    mods.astralsorcery.perk_tree.addConnection(String, String)
  • Moves the given perk to the x and y co-ords specified in the format perk, x, z:

    groovy
    mods.astralsorcery.perk_tree.movePerk(AbstractPerk, int, int)
Example
groovy
mods.astralsorcery.perk_tree.movePerk(mods.astralsorcery.perktree.getPerk('astralsorcery:magnet_ats_reach'), 30, 30)

Removing Entries

  • Removes the perk with the given name:

    groovy
    mods.astralsorcery.perk_tree.remove(String)
  • Removes a connection between two perks:

    groovy
    mods.astralsorcery.perk_tree.removeConnection(String, String)
Example
groovy
mods.astralsorcery.perk_tree.remove('astralsorcery:mec_inc_ms_2')

Getting the value of entries

  • Returns the perk with the given name:

    groovy
    mods.astralsorcery.perk_tree.getPerk(ResourceLocation)
  • Returns the perk with the given name:

    groovy
    mods.astralsorcery.perk_tree.getPerk(String)

贡献者

页面历史

© 2024 CleanroomMC. All Rights Reserved.