From 7f4d2e65a6961646e911f4139a0d0739f3b03dd2 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Sat, 8 Jan 2022 16:13:52 +0000 Subject: [PATCH] Added escape via customenchants.yml --- .../src/main/resources/customenchants.yml | 29 +++++++++++++------ 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/eco-core/core-plugin/src/main/resources/customenchants.yml b/eco-core/core-plugin/src/main/resources/customenchants.yml index aefcb889..a4409e8b 100644 --- a/eco-core/core-plugin/src/main/resources/customenchants.yml +++ b/eco-core/core-plugin/src/main/resources/customenchants.yml @@ -1,19 +1,19 @@ enchants: - - id: demo + - id: escape type: normal - name: "Demo Custom Enchantment" - description: Test + name: "Escape" + description: Gain a short burst of speed after taking damage obtaining: table: true villager: true loot: true - rarity: legendary + rarity: epic general-config: flags: [ ] targets: - - pickaxe + - boots grindstoneable: true disabled-in-worlds: [ ] requirements: @@ -23,11 +23,22 @@ enchants: levels: - effects: - - id: give_money + - id: potion_effect args: - amount: 50 + effect: speed + level: 1 + duration: 30 + apply_to_player: true triggers: - - mine_block + - take_damage conditions: [ ] - - effects: [ ] + - effects: + - id: potion_effect + args: + effect: speed + level: 2 + duration: 30 + apply_to_player: true + triggers: + - take_damage conditions: [ ] \ No newline at end of file