Entity Unleash (Event) — SkBee
Addon: SkBee · Category: Event · Since: 3.2.0
Syntax
[on] entity unleashDescription
Called immediately prior to an entity being unleashed. Cancelling this event when either the leashed entity dies, the entity changes dimension, or the client has disconnected the leash will have no effect.
`event-string` = The reason for unleashing. Options are "distance" (When the entity's leashholder is more than 10 blocks away), "holder_gone" (When the entity's leashholder has died or logged out, and so is unleashed), "player_unleash" (When the entity's leashholder attempts to unleash it), "unknown"
Event Values
- event-commandsender
- event-entity
- event-entitydata
- event-location
- event-player
- event-string
- event-unleashreason
- event-world
Examples
on entity unleash:
if event-entity is a cow:
if event-string = "distance":
cancel event