mirror of
https://github.com/songoda/EpicEnchants.git
synced 2024-06-26 06:34:43 +02:00
30 lines
802 B
YAML
30 lines
802 B
YAML
|
# The enchant identifier must be unique.
|
||
|
identifier: "Self Destruct"
|
||
|
|
||
|
# The max level for this enchant.
|
||
|
max-level: 3
|
||
|
|
||
|
# The group of this enchant. Configure the groups in the groups.yml file.
|
||
|
group: UNIQUE
|
||
|
|
||
|
#Description
|
||
|
description:
|
||
|
- "When near death spawns tnt around you."
|
||
|
|
||
|
# What items this enchant can be applied to.
|
||
|
item-whitelist:
|
||
|
- "ARMOR"
|
||
|
|
||
|
# For a full list of effects, please visit: https://wiki.songoda.com/display/SON/EpicEnchants
|
||
|
effects:
|
||
|
SPAWN_TNT:
|
||
|
# Trigger event that spawns the mob.
|
||
|
trigger: "DEFENSE_PLAYER_MELEE, DEFENSE_MOB_MELEE"
|
||
|
# Max amount mobs that will be spawned.
|
||
|
amount: "{random(low=0, up={level})}"
|
||
|
# Chance of the mob spawning.
|
||
|
chance: "5 * {level}"
|
||
|
# Condition
|
||
|
condition: "{user_health} < 4"
|
||
|
# The fuse of the TNT
|
||
|
fuse: 60
|