Added vanish, improved thor

This commit is contained in:
Auxilor 2022-09-05 17:07:45 +01:00
parent 370220853c
commit 335dc1814c
2 changed files with 30 additions and 2 deletions

View File

@ -1,7 +1,7 @@
display-name: "Thor" display-name: "Thor"
description: "Gives a &a%chance%%&r chance to strike &a%bolts%&r lightning bolts on your opponent" description: "Gives a &a%chance%%&r chance to strike &a%bolts%&r lightning bolts on your opponent"
placeholders: placeholders:
chance: "%level% * 1" chance: "%level%"
bolts: "ceil(%level% / 2)" bolts: "ceil(%level% / 2)"
type: normal type: normal
@ -20,7 +20,7 @@ effects:
- id: strike_lightning - id: strike_lightning
args: args:
amount: "ceil(%level% / 2)" amount: "ceil(%level% / 2)"
chance: "1 * %level%" chance: "%level%"
triggers: triggers:
- bow_attack - bow_attack

View File

@ -0,0 +1,28 @@
display-name: "Vanish"
description: "Gives a &a%chance%%&r chance to disappear for &a%seconds%&r seconds after taking damage"
placeholders:
chance: "2 * %level%"
seconds: "0.5 + floor(%level% / 4)"
type: spell
targets:
- armor
conflicts: [ ]
rarity: rare
max-level: 2
tradeable: true
discoverable: true
enchantable: true
effects:
- id: potion_effect
args:
chance: "%level% * 2"
effect: invisibility
duration: "10 + floor(%level% * 5)"
apply-to-player: true
triggers:
- take_entity_damage
conditions: [ ]