Mechanic: EnchantItem
Applies an enchantment to an item.
A list of available vanilla enchantments can be found on spigot javadocs
Attributes
Attribute | Aliases | Description | Default Value |
---|---|---|---|
enchantment | enchant, e | The name of the enchant, can be a MythicEnchant or Vanilla enchant. | none |
level | l | The level of the enchant. | none |
Examples
This example if put on an item (Requires Crucible) would enchant the item with Sharpness 5 when you right click the item and Venomous 3 when you left click the item.
Skills:
- enchantitem{enchant=DAMAGE_ALL;level=5} @self ~onUse
- enchantitem{enchant=VENOUMOUS;level=3} @self ~onSwing