Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicEnchants MythicEnchants
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 7
    • Issues 7
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicEnchantsMythicEnchants
  • Wiki
    • Skills
  • Triggers

Triggers · Changes

Page history
Added the 2 new triggers to the wiki. authored Dec 04, 2023 by RazielMartelus96's avatar RazielMartelus96
Hide whitespace changes
Inline Side-by-side
Showing with 43 additions and 1 deletion
+43 -1
  • Skills/Triggers.md Skills/Triggers.md +43 -1
  • No files found.
Skills/Triggers.md
View page @ 831191c7
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.
| Trigger | When it fires… |
......@@ -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 |
| 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 |
| onPressF | When a player presses F to swap the item. Requires ProtocolLib |
\ No newline at end of file
| onPressF | When a player presses F to swap the item. Requires ProtocolLib |
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
Clone repository

Manual

  • Home
  • Changelogs
  • Commands and Permissions
  • FAQ / Common Issues
Usage
  • Installation & Setup
  • Premade Enchantments
  • Creating Custom Enchantments
  • Options
  • Rarities
  • Tables
Custom Enchantments
  • Mechanics
  • Targeters
  • Triggers
  • Conditions
  • Placeholders