Skip to content

Inventory Events

inventoryOpen

FieldTypeDescription
playerstring (UUID)The player who opened the inventory
inventoryTypestringThe inventory type (CHEST, WORKBENCH, FURNACE, etc.)
titlestringThe inventory title

inventoryClose

FieldTypeDescription
playerstring (UUID)The player who closed the inventory
inventoryTypestringThe inventory type
inventoryIdstring | null(2026-08-13) When the closed inventory is a Yeow custom Inventory (created via inventory.create): its handle id; otherwise omitted

inventoryClick

FieldTypeDescription
playerstring (UUID)The player who clicked
slotnumberSlot index (-999 means a click outside the window)
hotbarKeynumberHotbar key index (0-8); -1 means no hotbar key was used
actionstringClick type (LEFT, RIGHT, SHIFT_LEFT, DOUBLE_CLICK, DROP, etc.)
inventoryTypestringThe inventory type
isLeftClickbooleanWhether it was a left click
isRightClickbooleanWhether it was a right click
isShiftClickbooleanWhether Shift was held
clickedItemobject | null{ "type": "<key>", "amount": <int> } (writable: mods.clickedItem replaces the clicked item, commonly used for locking/replacing)
cursorItemobject | nullThe item on the cursor { "type": "<key>", "amount": <int> } (writable: mods.cursorItem replaces the cursor item, amount: 0 clears it)
inventoryIdstring | null(2026-08-13) When the click happens on a Yeow custom Inventory (created via inventory.create): its handle id; otherwise omitted

inventoryId semantics: the event bridge identifies custom Inventories through an Inventory reverse-lookup table. In scenarios with multiple custom Inventories, use inventoryId to accurately determine which inventory a click/close belongs to, instead of relying on inventoryType=CHEST + slot inference.