EpicEnchants/src/main/resources/enchants/legendary/Divergent.yml

66 lines
1.5 KiB
YAML

author: Auora
# The enchant identifier must be unique.
identifier: Divergent
# The max level for this enchant.
max-level: 4
# The group of this enchant. Configure the groups in the groups.yml file.
group: LEGENDARY
book-item:
material: BOOK
display-name: "&c&lDivergent {level}"
# The lore on the enchantments books.
lore:
- "&7Drag on to enchant"
- "&a{success_rate}% Success Rate"
- "&c{destroy_rate}% Destroy Rate"
# How the enchant should be formatted on the enchanted item.
applied-format: "&cDivergent {level}"
# Description
description:
- "A chance of giving your opponent slowness and you speed!"
# What items this enchant can be applied to.
item-whitelist:
- "ARMOR"
# For a full list of effects, please visit: https://wiki.songoda.com/Epic_Enchants#Tutorials
effects:
POTION:
# The trigger that will fire this effect.
trigger: ATTACK_PLAYER_MELEE
# Who do you want to give the effect?
who: OPPONENT
# What player should the effect be ran on: WEARER/OPPONENT.
potion-type: SLOWNESS
amplifier: "{level}"
duration: "{level} * 3"
# Chance of the effect firing.
chance: "4 * {level}"
POTION-2:
# The trigger that will fire this effect.
trigger: ATTACK_PLAYER_MELEE
# Who do you want to give the effect?
who: USER
# What player should the effect be ran on: WEARER/OPPONENT.
potion-type: SPEED
amplifier: "{level}"
duration: "{level} * 3"
# Chance of the effect firing.
chance: "4 * {level}"