| Name | Leash |
| Syntax | leash (cancel) [<entity>|...] (holder:<entity>/<location>) |
| Short Description | Sticks a leash on target entity, held by a fence or another entity. |
| Full Description | Attaches a leash to the specified entity.
The leash may be attached to a fence, or another entity. Players and Player NPCs may not be leashed. Note that releasing a mob from a fence post may leave the leash attached to that fence post. Non-player NPCs can be leashed if '/npc leashable' is enabled. |
| Related Tags | <EntityTag.is_leashed> Returns whether the entity is leashed.
<EntityTag.leash_holder> Returns the leash holder of entity.
|
| Usage Example | |
| Usage Example | |
| Usage Example | |
| Group | entity |
| Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/entity/LeashCommand.java#L27 |