Passive Listener Inventory Click - TheComputerGeek2/MagicSpells GitHub Wiki
PassiveSpell trigger: inventoryclick
Properties:
| Property | Value |
|---|---|
| Cancellable | true |
| Has Entity Target | false |
| Has Location Target | false |
Description:
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 |