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
The identifier mods.astralsorcery.perk_tree 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.perktree
mods.astral.perkTree
mods.astral.PerkTree
mods.astral.perk_tree
mods.astralsorcery.perktree
mods.astralsorcery.perkTree
mods.astralsorcery.PerkTree
mods.astralsorcery.perk_tree/* Used as page default */Adding Entries
Adds the given perk to the perk map:
groovymods.astralsorcery.perk_tree.add(AbstractPerk)Moves the given perk to the x and y co-ords specified in the format
perk,x,z:groovymods.astralsorcery.perk_tree.movePerk(AbstractPerk, int, int)Adds a connection between two perks:
groovymods.astralsorcery.perk_tree.addConnection(String, String)
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:
groovymods.astralsorcery.perk_tree.remove(String)Removes a connection between two perks:
groovymods.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:
groovymods.astralsorcery.perk_tree.getPerk(String)Returns the perk with the given name:
groovymods.astralsorcery.perk_tree.getPerk(ResourceLocation)
