From 335dc1814c786bda4495931740d828f852853b5f Mon Sep 17 00:00:00 2001 From: Auxilor Date: Mon, 5 Sep 2022 17:07:45 +0100 Subject: [PATCH] Added vanish, improved thor --- .../src/main/resources/enchants/thor.yml | 4 +-- .../src/main/resources/enchants/vanish.yml | 28 +++++++++++++++++++ 2 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 eco-core/core-plugin/src/main/resources/enchants/vanish.yml diff --git a/eco-core/core-plugin/src/main/resources/enchants/thor.yml b/eco-core/core-plugin/src/main/resources/enchants/thor.yml index 5f78679b..30dd065c 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/thor.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/thor.yml @@ -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 diff --git a/eco-core/core-plugin/src/main/resources/enchants/vanish.yml b/eco-core/core-plugin/src/main/resources/enchants/vanish.yml new file mode 100644 index 00000000..1b740177 --- /dev/null +++ b/eco-core/core-plugin/src/main/resources/enchants/vanish.yml @@ -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: [ ]