On Move / Rotate (Event) — Skript
Addon: Skript · Category: Event · Since: 2.6, 2.8.0 (turn around)
Syntax
[on] %-entitydata% (move|walk|step|(turn[ing] around|rotate))Description
Called when a player or entity moves or rotates their head. NOTE: Move event will only be called when the entity/player moves position, keyword 'turn around' is for orientation (ie: looking around), and the combined syntax listens for both. NOTE: These events can be performance heavy as they are called quite often.
Event Values
- event-block
- event-chunk
- event-commandsender
- event-entity
- event-entitydata
- event-location
- event-player
- event-teleportcause
- event-world
- future event-location
- past event-chunk
- past event-location
Examples
on player move:
if player does not have permission "player.can.move":
cancel event
on skeleton move:
if event-entity is not in world "world":
kill event-entity
on player turning around:
send action bar "You are currently turning your head around!" to player