Passive Listener Anvil - TheComputerGeek2/MagicSpells GitHub Wiki

Source Code

PassiveSpell trigger: anvil

Properties:

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

Description:

The listener activates whenever a player puts an item in a slot of an anvil and attempts to repair it.

String Format Options:

Arguments are optional. They can individually be any or items with the Magic Item String format separated by |.

triggers:
    - anvil (firstItems) (secondItems) (resultItems)

Config Format Options:

(Unsupported for now.)