forked from nisovin/MagicSpells
-
Notifications
You must be signed in to change notification settings - Fork 71
Passive Listener Inventory Click
JasperLorelai edited this page Aug 24, 2025
·
4 revisions
PassiveSpell trigger: inventoryclick
| Property | Value |
|---|---|
| Cancellable | true |
| Has Entity Target | false |
| Has Location Target | false |
The listener activates whenever a player performs an inventory action.
String Format Options:
Each argument is optional:
-
action- May benull(all actions) or an InventoryAction. -
clickedItem- Item in the clicked inventory slot (if any). It may benullor an item using the Magic Item String format. -
cursorItem- Item on the player's cursor (if any). It may benullor an item using the Magic Item String format.
triggers:
- inventoryclick (action) (clickedItem) (cursorItem)Section Format Options:
Note
Since 4.0 Beta 18
| Option | Description | Type | Supports expressions |
|---|---|---|---|
click |
ClickType | true |
|
action |
InventoryAction | true |
|
slot-type |
SlotType | true |
|
hotbar-item |
Available with click: number_key
|
Magic Item String | false |
current-item |
Magic Item String | false |
|
cursor-item |
Magic Item String | false |