On Tool Change (Event) — Skript

Addon: Skript · Category: Event · Since: 1.0

Syntax

[on] [player['s]] (tool|item held|held item) chang(e|ing)

Description

Called whenever a player changes their held item by selecting a different slot (e.g. the keys 1-9 or the mouse wheel), <i>not</i> by dropping or replacing the item in the current slot.

Event Values

  • event-player
  • event-slot
  • event-world
  • past event-slot

Examples

on player's held item change:

View source