click [in|of] %inv:EXPR%Inventory1.0.0
Description
Handles any click in a Lumen inventory. The event is automatically cancelled. Provides player, inventory, slot, item, cursor, clickType, action, and title variables.
Allowed Contexts
Root LevelInside Block
Block Variables
playerplayer
NullableNo
The player who clicked
worldworld
NullableNo
The world the player is in
inventoryinventory
NullableNo
The top inventory being interacted with
slotint
NullableNo
The raw slot index that was clicked
clickTypestring
NullableNo
The type of click performed (e.g. LEFT, RIGHT, SHIFT_LEFT)
actionstring
NullableNo
The inventory action triggered by the click
titlestring
NullableNo
The title of the inventory view
itemitemstack
NullableYes
The item in the clicked slot, or null if empty
cursoritemstack
NullableYes
The item on the cursor, or null if empty or air
Examples
click in "main_menu":
cancel eventAll Possible Usages (3)
Every distinct way you can write this pattern, with optional groups and choice groups expanded. Placeholders are shown as <name>.
click <inv>click in <inv>click of <inv>