mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-29 16:15:17 +01:00
Added vanish, improved thor
This commit is contained in:
parent
370220853c
commit
335dc1814c
@ -1,7 +1,7 @@
|
||||
display-name: "Thor"
|
||||
description: "Gives a &a%chance%%&r chance to strike &a%bolts%&r lightning bolts on your opponent"
|
||||
placeholders:
|
||||
chance: "%level% * 1"
|
||||
chance: "%level%"
|
||||
bolts: "ceil(%level% / 2)"
|
||||
type: normal
|
||||
|
||||
@ -20,7 +20,7 @@ effects:
|
||||
- id: strike_lightning
|
||||
args:
|
||||
amount: "ceil(%level% / 2)"
|
||||
chance: "1 * %level%"
|
||||
chance: "%level%"
|
||||
triggers:
|
||||
- bow_attack
|
||||
|
||||
|
28
eco-core/core-plugin/src/main/resources/enchants/vanish.yml
Normal file
28
eco-core/core-plugin/src/main/resources/enchants/vanish.yml
Normal 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: [ ]
|
Loading…
Reference in New Issue
Block a user