Skip to main content

Player Events

Comprehensive triggers for player-centric actions.

Event Library

Configuration

Movement Events

Events related to physical movement states.

  • player_toggle_sneak_event: Toggling sneak.
  • player_toggle_sprint_event: Toggling sprint.
  • player_toggle_flight_event: Toggling creative flight.
  • player_teleport_event: Teleporting via command or plugin.

Interaction Events

  • player_bed_enter_event: Getting into bed.
  • player_bed_leave_event: Getting out of bed.
  • player_drop_item_event: Dropping items (Q).
  • player_swap_hand_items_event: Swapping offhand (F).

Status Events

  • player_respawn_event: Respawning after death.
  • player_level_change_event: XP level change.
  • player_gamemode_change_event: Switching gamemode.
  • player_changed_world_event: Moving between worlds.

player_fish_event

Triggers when using a fishing rod. stateFishingState

State to filter: CAUGHT_FISH, FISHING, REEL_IN, IN_GROUND.

player_portal_event

Triggers when a player uses a portal.

PropertyValue
Entry IDplayer_portal_event
TypeEvent
ColorYellow
Iconmdi:portal

This entry has no configurable fields.

player_harvest_block_event

Triggers when a player harvests crops.

PropertyValue
Entry IDplayer_harvest_block_event
TypeEvent
ColorGreen
Iconmdi:barley

This entry has no configurable fields.

Examples

player_respawn_event:
actions:
- title_action:
title: "<green>Respawned!"
player_toggle_sneak_event:
actions:
- potion_effect_action:
type: INVISIBILITY
duration: 20