... | @@ -38,9 +38,14 @@ Custom Enchantments support all triggers that generally make sense, and also add |
... | @@ -38,9 +38,14 @@ Custom Enchantments support all triggers that generally make sense, and also add |
|
|
|
|
|
Enchanted Item Triggers
|
|
Enchanted Item Triggers
|
|
--------------
|
|
--------------
|
|
|
|
|
|
Custom Enchantments also support 2 new triggers related to Enchanted Armor.
|
|
Custom Enchantments also support 2 new triggers related to Enchanted Armor.
|
|
|
|
|
|
|
|
| Trigger | When it fires… |
|
|
|
|
|----------------|--------------------------------------------------------------------------------|
|
|
|
|
| [onEnchantedEquip](#onenchantedequip) | When the player breaks a block
|
|
|
|
| [onEnchantedUnEquip](#onenchantedunequip) | When the player hits another entity |
|
|
|
|
|
|
|
|
|
|
#### ~onEnchantedEquip
|
|
#### ~onEnchantedEquip
|
|
Executes the skill when a piece of Armor enchanted with the custom enchantment is equipped by the player.
|
|
Executes the skill when a piece of Armor enchanted with the custom enchantment is equipped by the player.
|
|
```yml
|
|
```yml
|
... | | ... | |