Item Events
ITEM INTERACT
Event called when a player clicks on an item.
Variables:
%action_type% (Could be: RIGHT_CLICK, LEFT_CLICK, SHIFT_RIGHT_CLICK, SHIFT_LEFT_CLICK)
ConditionalEvents item variables
ITEM CONSUME
Event called when a player consumes an item (eat food for example)
Variables:
ConditionalEvents item variables
ITEM PICKUP
Event called when a player pickups an item.
Variables:
ConditionalEvents item variables
ITEM MOVE
Event called when a player tries to move an item from its inventory.
Variables:
%inventory_type% (Type of the open inventory. All types on this link: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/inventory/InventoryType.html)
%inventory_title% (Name of the open inventory)
%slot% (Selected slot)
ConditionalEvents item variables
ITEM CRAFT
Event called when a player is about to craft an item.
Variables:
ConditionalEvents item variables
ITEM DROP
Event called when a player drops an item.
Variables:
ConditionalEvents item variables
ITEM SELECT
Event called when a player selects/deselects an item in their hotbar.
Variables:
%select_type% (Could be: SELECT or DESELECT)
ConditionalEvents item variables
ITEM ENCHANT
Event called when a player enchants an item.
Variables:
%enchantment_list% (List of enchantments to be applied to the item. It will return a string with the following format:
<enchantment1>:<level1>;<enchantment2>:<level2>;...
)ConditionalEvents item variables
ITEM REPAIR
Event called when a player repairs an item.
Variables:
%rename_text% (New name of the item if the player is renaming it)
ConditionalEvents item variables
Only works on 1.13+!
Last updated