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 benull
or an item using the Magic Item String format.cursorItem
- Item on the player's cursor (if any). It may benull
or an item using the Magic Item String format.
triggers:
- inventoryclick (action) (clickedItem) (cursorItem)
Config Format Options:
(Unsupported for now.)