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:

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: 5
  actions:
    - "command <value>effect give %player% 100000 %edprison_enchant_level_speed%</value>"
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:
    - "command <value>effect clear %player% speed</value>"

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 a command action to give the effect. 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 command action to clear the effect.

Last updated