πΉοΈMovement and Input Triggers
Last updated
These triggers expose player movement or input state. High-frequency powers should use strict conditions and conservative abilities.
Each trigger section below documents the runtime context created by the current implementation.
PLAYER
The player whose active enchantment is being evaluated.
SOURCE
The actor or owner responsible for the event.
SKILL
The direct carrier/intermediate entity, such as a projectile, hook, firework, or Warden.
TARGET
The final affected or inspected entity. It may be unavailable for some events.
BLOCK
The event block, when the trigger supplies one.
LOCATION
The main event location used by location-aware conditions and abilities.
TRIGGER_ITEM / TRIGGER_SLOT
The item and equipment slot that selected the active enchantment.
EVENT
The underlying Bukkit/Paper event. Trigger-specific state not copied into another field remains available through the event-aware implementation.
When a role is marked player, it resolves to the same entity as PLAYER. A missing role resolves to null; conditions or abilities requiring it will fail or skip safely.
on-moveRuns only when PlayerMoveEvent.hasChangedBlock() is true.
PLAYER / SOURCE / SKILL / TARGET
moving player
FROM / TO
Previous and destination locations
LOCATION
Destination location
BLOCK
Block at the destination
on-inputRuns when Paper reports a player input update.
PLAYER / SOURCE / SKILL / TARGET
player
Extra context
Forward, backward, left, right, jump, sprint, and sneak input state remains on PlayerInputEvent
on-jumpRuns for Paper's player jump event.
PLAYER / SOURCE / SKILL / TARGET
jumping player
FROM / TO
Jump start and destination
LOCATION
Destination
BLOCK
Block at the destination
on-toggle-flightRuns when a player toggles flight.
PLAYER / SOURCE / SKILL / TARGET
player
Extra context
New flight state remains on PlayerToggleFlightEvent; cancellation is applied to cancellable events
on-toggle-sneakRuns when a player toggles sneaking.
PLAYER / SOURCE / SKILL / TARGET
player
Extra context
New sneak state remains on PlayerToggleSneakEvent
Last updated