> For the complete documentation index, see [llms.txt](https://edseries-plugins.gitbook.io/p/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://edseries-plugins.gitbook.io/p/features/enchantments/custom-enchantments/skills-enchants.md).

# Skills Enchants

Do you want to create enchantments that give you potion effects when you hold your pickaxe? You are in the right place then!

## Example:

```yaml
speed:
  enabled: true
  type: custom
  event-trigger: PlayerHoldPickaxe
  max-chance: 100
  max-level: 5
  currency: tokens
  starting-cost: 100
  increase-cost-by: 400
  starting-level: 0
  actions:
    - "addeffect <effect>speed</effect> <duration>infinite</duration> <amplifier>%edprison_enchant_level_speed%</amplifier>"
remove-speed:
  enabled: true
  type: custom
  event-trigger: PlayerUnHoldPickaxe
  max-chance: 100
  max-level: 1
  currency: tokens
  starting-cost: 100
  increase-cost-by: 400
  starting-level: 1
  actions:
    - "cleareffect <effect>speed</effect>"
```

You will need to create 2 enchantments, the one that adds the effect with PlayerHoldPickaxe event and the one that removes the effect with PlayerUnHoldPickaxe event. The first enchant, the one that gives the effect will have an [addeffect](/p/features/enchantments/custom-enchantments/actions/add-effect.md) action to give the effect (with the enchant level as the amplifier). And then the enchant that removes the effect will have a max level of 1 and a starting level of 1 so effects will be removed for everyone instantly when unholding the pickaxe with a [cleareffect](/p/features/enchantments/custom-enchantments/actions/clear-effect.md) action.
