EpicEnchants/src/main/resources/enchants/elite/RocketEscape.yml

38 lines
939 B
YAML

author: Songoda
# The enchant identifier must be unique.
identifier: RocketEscape
# The max level for this enchant.
max-level: 3
# The group of this enchant. Configure the groups in the groups.yml file.
group: ELITE
# How the enchant should be formatted on the enchanted item.
applied-format: "&9RocketEscape {level}"
# Description
description:
- "Blast off into the air at low HP."
# What items this enchant can be applied to.
item-whitelist:
- "BOOTS"
# For a full list of effects, please visit: https://wiki.songoda.com/Epic_Enchants#Tutorials
effects:
THROW:
# The trigger that will fire this effect.
trigger: "DEFENSE_PLAYER_MELEE, DEFENSE_PLAYER_RANGE"
# In which
relative-to: USER
# The direction of the throw.
direction: UP
# Magnitude of the throw.
magnitude: 3
# Chance of the effect firing.
chance: "{level} * 10"
# Only fire at low HP
condition: "{user_health} < 5"