Leash entities (Effect) — Skript

Addon: Skript · Category: Effect · Since: 2.3

Syntax

(leash|lead) %livingentities% to %entity%

Description

Leash living entities to other entities. When trying to leash an Ender Dragon, Wither, Player, or a Bat, this effect will not work. See <a href="https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/LivingEntity.html#setLeashHolder(org.bukkit.entity.Entity)">Spigot's Javadocs for more info</a>.

Examples

on right click:
	leash event-entity to player
	send "&aYou leashed &2%event-entity%!" to player

View source