Passive Listener Inventory Open - TheComputerGeek2/MagicSpells GitHub Wiki

Source Code

PassiveSpell trigger: inventoryopen

Properties:

Property Value
Cancellable true
Has Entity Target false
Has Location Target false

Description:

The listener activates whenever a player opens an inventory (excluding the player's inventory).

String Format Options:

The argument is optional but may be a comma-separated list of inventory names.

triggers:
    - inventoryopen (inventory names)

Config Format Options:

(Unsupported for now.)