|
|
|
Supported Triggers
|
|
|
|
--------------
|
|
|
|
|
|
Custom Enchantments support all triggers that generally make sense, and also adds a bunch of new skill triggers for use by items. This list contains most (ideally all) compatible triggers.
|
|
Custom Enchantments support all triggers that generally make sense, and also adds a bunch of new skill triggers for use by items. This list contains most (ideally all) compatible triggers.
|
|
|
|
|
|
| Trigger | When it fires… |
|
|
| Trigger | When it fires… |
|
... | @@ -30,4 +33,43 @@ Custom Enchantments support all triggers that generally make sense, and also add |
... | @@ -30,4 +33,43 @@ Custom Enchantments support all triggers that generally make sense, and also add |
|
| onFishingFail | When the player fails a fish attempt due usually due to poor timing |
|
|
| onFishingFail | When the player fails a fish attempt due usually due to poor timing |
|
|
| onPressQ | When a player presses Q to drop the item. Requires ProtocolLib |
|
|
| onPressQ | When a player presses Q to drop the item. Requires ProtocolLib |
|
|
| onPressCtrlQ | When a player presses CTRL+Q to drop the item. Requires ProtocolLib |
|
|
| onPressCtrlQ | When a player presses CTRL+Q to drop the item. Requires ProtocolLib |
|
|
| onPressF | When a player presses F to swap the item. Requires ProtocolLib | |
|
| onPressF | When a player presses F to swap the item. Requires ProtocolLib |
|
|
\ No newline at end of file |
|
|
|
|
|
|
|
|
|
Enchanted Item Triggers
|
|
|
|
--------------
|
|
|
|
|
|
|
|
Custom Enchantments also support 2 new triggers related to Enchanted Armor.
|
|
|
|
|
|
|
|
#### ~onEnchantedEquip
|
|
|
|
Executes the skill when a piece of Armor enchanted with the custom enchantment is equipped by the player.
|
|
|
|
```yml
|
|
|
|
InformedEquip:
|
|
|
|
Display: 'Informed Equip'
|
|
|
|
MinLevel: 1
|
|
|
|
MaxLevel: 3
|
|
|
|
Rarity: COMMON
|
|
|
|
Options:
|
|
|
|
ShowInLore: true
|
|
|
|
EnchantableItems:
|
|
|
|
- DIAMOND_HELMET
|
|
|
|
- DIAMOND_CHESTPLATE
|
|
|
|
Skills:
|
|
|
|
- message{m="<caster.name> has equipped armor!"} @Self ~onEnchantedEquip
|
|
|
|
```
|
|
|
|
|
|
|
|
#### ~onEnchantedUnEquip
|
|
|
|
Executes the skill when a piece of Armor enchanted with the custom enchantment is un-equipped by the player.
|
|
|
|
```yml
|
|
|
|
InformedUnEquip:
|
|
|
|
Display: 'Informed Un-Equip'
|
|
|
|
MinLevel: 1
|
|
|
|
MaxLevel: 3
|
|
|
|
Rarity: COMMON
|
|
|
|
Options:
|
|
|
|
ShowInLore: true
|
|
|
|
EnchantableItems:
|
|
|
|
- DIAMOND_HELMET
|
|
|
|
- DIAMOND_CHESTPLATE
|
|
|
|
Skills:
|
|
|
|
- message{m="<caster.name> has un-equipped armor!"} @Self ~onEnchantedUnEquip |
|
|
|
\ No newline at end of file |