Name | Anchor |
Syntax | anchor [id:<name>] [remove/add <location>] |
Short Description | Controls an NPC's Anchor Trait. |
Full Description | The anchor system inside Citizens allows locations to be 'bound' to an NPC, saved by an 'id'.
The anchor command can add and remove new anchors. The Anchors Trait can also be used as a sort of 'waypoints' system. As the Anchor command is an NPC specific command, a valid npc object must be referenced in the script entry. If none is provided by default, use the 'npc:<npc>' argument. |
Related Tags | <NPCTag.anchor[anchor_name]> Returns the location associated with the specified anchor, or null if it doesn't exist.
<NPCTag.list_anchors> Returns a list of anchor names currently assigned to the NPC.
<NPCTag.has_anchors> Returns whether the NPC has anchors assigned.
|
Usage Example |
|
Group | npc |
Requires | Citizens |
Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/npc/AnchorCommand.java#L26 |