Player Track/Untrack Entity (Event) — SkBee
Addon: SkBee · Category: Event · Since: 3.22.0
Syntax
[on] player track entityDescription
Called when a player tracks or untracks an entity (Refers to the entity being sent/removed to/from the client). Adding or removing entities from the world at the point in time this event is called is completely unsupported and should be avoided. Track: If cancelled entity is not shown to the player and interaction in both directions is not possible. (This is copied from Paper javadocs and does not seem true. When testing on a zombie, the zombie still attacked me)
Event Values
- event-entity
- event-player
- event-world
Examples
on player track entity:
if event-entity is a zombie:
cancel event