From e6138f9fa6b7b10355b7b7bf8410e45c21704eb0 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Sat, 13 May 2023 12:59:48 +0100 Subject: [PATCH] Reimplemented many more effects --- .../resources/effects/accelerated_escape.yml | 16 ++++++ .../resources/effects/bountiful_harvest.yml | 45 +++++++++++++++ .../main/resources/effects/craftsmanship.yml | 20 +++++++ .../main/resources/effects/golden_yield.yml | 27 +++++++++ .../resources/effects/master_lumberjack.yml | 55 +++++++++++++++++++ .../resources/effects/mystic_resilience.yml | 28 ++++++++++ .../src/main/resources/effects/satiation.yml | 10 ++++ .../resources/effects/seamless_movement.yml | 15 +++++ .../src/main/resources/effects/spelunking.yml | 2 + 9 files changed, 218 insertions(+) create mode 100644 eco-core/core-plugin/src/main/resources/effects/accelerated_escape.yml create mode 100644 eco-core/core-plugin/src/main/resources/effects/bountiful_harvest.yml create mode 100644 eco-core/core-plugin/src/main/resources/effects/craftsmanship.yml create mode 100644 eco-core/core-plugin/src/main/resources/effects/golden_yield.yml create mode 100644 eco-core/core-plugin/src/main/resources/effects/master_lumberjack.yml create mode 100644 eco-core/core-plugin/src/main/resources/effects/mystic_resilience.yml create mode 100644 eco-core/core-plugin/src/main/resources/effects/satiation.yml create mode 100644 eco-core/core-plugin/src/main/resources/effects/seamless_movement.yml diff --git a/eco-core/core-plugin/src/main/resources/effects/accelerated_escape.yml b/eco-core/core-plugin/src/main/resources/effects/accelerated_escape.yml new file mode 100644 index 0000000..afccbec --- /dev/null +++ b/eco-core/core-plugin/src/main/resources/effects/accelerated_escape.yml @@ -0,0 +1,16 @@ +name: "Accelerated Escape" +placeholder: "%level% * 4" +description: "&8Run &a%placeholder%%&8 faster for &a1.5&8 seconds after taking damage" + +effects: + - id: give_holder + args: + effects: + - id: movement_speed_multiplier + args: + multiplier: "1 + (%level% * 0.04)" + duration: 30 + triggers: + - take_damage + +conditions: [ ] diff --git a/eco-core/core-plugin/src/main/resources/effects/bountiful_harvest.yml b/eco-core/core-plugin/src/main/resources/effects/bountiful_harvest.yml new file mode 100644 index 0000000..e3f382e --- /dev/null +++ b/eco-core/core-plugin/src/main/resources/effects/bountiful_harvest.yml @@ -0,0 +1,45 @@ +name: "Bountiful Harvest" +placeholders: + chance: "(%level% * 8) % 100" + multiplier: "floor(%level% * 8 / 100) + 2" +description: "&a%chance%%&8 chance to get &a%multiplier%x&8 drops from crops" + +effects: + - id: multiply_drops # Base Multiplier + args: + multiplier: "floor(%level% * 8 / 100) + 1" + triggers: + - block_item_drop + filters: + fully_grown: true + blocks: + - beetroots + - carrots + - chorus_flower + - kelp + - nether_wart + - potatoes + - twisting_vines + - weeping_vines + - wheat + + - id: multiply_drops # Bonus Multiplier + args: + chance: "(%level% * 8) % 100" + multiplier: "floor(%level% * 8 / 100) + 2" + triggers: + - block_item_drop + filters: + fully_grown: true + blocks: + - beetroots + - carrots + - chorus_flower + - kelp + - nether_wart + - potatoes + - twisting_vines + - weeping_vines + - wheat + +conditions: [ ] diff --git a/eco-core/core-plugin/src/main/resources/effects/craftsmanship.yml b/eco-core/core-plugin/src/main/resources/effects/craftsmanship.yml new file mode 100644 index 0000000..6874892 --- /dev/null +++ b/eco-core/core-plugin/src/main/resources/effects/craftsmanship.yml @@ -0,0 +1,20 @@ +name: "Craftsmanship" +placeholder: "%level% * 2" +description: "&8Axes take &a%placeholder%%&8 less durability damage" + +effects: + - id: cancel_event + args: + chance: "%level% * 2" + triggers: + - damage_item + filters: + items: + - "*wooden_axe" + - "*stone_axe" + - "*iron_axe" + - "*golden_axe" + - "*diamond_axe" + - "*netherite_axe" + +conditions: [ ] diff --git a/eco-core/core-plugin/src/main/resources/effects/golden_yield.yml b/eco-core/core-plugin/src/main/resources/effects/golden_yield.yml new file mode 100644 index 0000000..55d8f78 --- /dev/null +++ b/eco-core/core-plugin/src/main/resources/effects/golden_yield.yml @@ -0,0 +1,27 @@ +name: "Bountiful Harvest" +placeholders: + chance: "min(%level% * 0.5, 100)" + multiplier: 6 +description: "&a%chance%%&8 chance to get &a%multiplier%x&8 drops from crops" + +effects: + - id: multiply_drops + args: + chance: "%level% * 0.5" + multiplier: 6 + triggers: + - block_item_drop + filters: + fully_grown: true + blocks: + - beetroots + - carrots + - chorus_flower + - kelp + - nether_wart + - potatoes + - twisting_vines + - weeping_vines + - wheat + +conditions: [ ] diff --git a/eco-core/core-plugin/src/main/resources/effects/master_lumberjack.yml b/eco-core/core-plugin/src/main/resources/effects/master_lumberjack.yml new file mode 100644 index 0000000..e8f4f37 --- /dev/null +++ b/eco-core/core-plugin/src/main/resources/effects/master_lumberjack.yml @@ -0,0 +1,55 @@ +name: "Master Lumberjack" +placeholders: + chance: "(%level% * 6) % 100" + multiplier: "floor(%level% * 6 / 100) + 2" +description: "&a%chance%%&8 chance to get &a%multiplier%x&8 drops from trees" + +effects: + - id: multiply_drops # Base Multiplier + args: + multiplier: "floor(%level% * 6 / 100) + 1" + triggers: + - block_item_drop + filters: + player_placed: false + blocks: + - "oak_log" + - "birch_log" + - "spruce_log" + - "jungle_log" + - "acacia_log" + - "dark_oak_log" + - "oak_wood" + - "birch_wood" + - "spruce_wood" + - "jungle_wood" + - "acacia_wood" + - "dark_oak_wood" + - "crimson_stem" + - "warped_stem" + + - id: multiply_drops # Bonus Multiplier + args: + chance: "(%level% * 6) % 100" + multiplier: "floor(%level% * 6 / 100) + 2" + triggers: + - block_item_drop + filters: + player_placed: false + blocks: + - "oak_log" + - "birch_log" + - "spruce_log" + - "jungle_log" + - "acacia_log" + - "dark_oak_log" + - "oak_wood" + - "birch_wood" + - "spruce_wood" + - "jungle_wood" + - "acacia_wood" + - "dark_oak_wood" + - "crimson_stem" + - "warped_stem" + +conditions: [ ] diff --git a/eco-core/core-plugin/src/main/resources/effects/mystic_resilience.yml b/eco-core/core-plugin/src/main/resources/effects/mystic_resilience.yml new file mode 100644 index 0000000..2aaff29 --- /dev/null +++ b/eco-core/core-plugin/src/main/resources/effects/mystic_resilience.yml @@ -0,0 +1,28 @@ +name: "Mystic Resilience" +placeholder: "%level% * 0.5" +description: "&a%chance%%&8 chance to ignore negative potion effects" + +effects: + - id: cancel_event + args: + chance: "%level% * 0.5" + triggers: + - potion_effect + filters: + potion_effect: + - confusion + - wither + - poison + - bad_omen + - blindness + - darkness + - harm + - hunger + - levitation + - slow + - slow_digging + - unluck + - weakness + - slow_falling + +conditions: [ ] diff --git a/eco-core/core-plugin/src/main/resources/effects/satiation.yml b/eco-core/core-plugin/src/main/resources/effects/satiation.yml new file mode 100644 index 0000000..0a9c45d --- /dev/null +++ b/eco-core/core-plugin/src/main/resources/effects/satiation.yml @@ -0,0 +1,10 @@ +name: "Satiation" +placeholder: "%level% * 2" +description: "&8Lose &a%chance%%&8 less hunger" + +effects: + - id: hunger_multiplier + args: + multiplier: "1 - (%level% * 0.02)" + +conditions: [ ] diff --git a/eco-core/core-plugin/src/main/resources/effects/seamless_movement.yml b/eco-core/core-plugin/src/main/resources/effects/seamless_movement.yml new file mode 100644 index 0000000..c4d6bed --- /dev/null +++ b/eco-core/core-plugin/src/main/resources/effects/seamless_movement.yml @@ -0,0 +1,15 @@ +name: "Serrated Strikes" +placeholder: "min(%level% * 2, 100)" +description: "&a%placeholder%%&8 chance to ignore fall damage" + +effects: + - id: cancel_event + args: + chance: "%level% * 2" + triggers: + - take_damage + filters: + damage_cause: + - fall + +conditions: [ ] diff --git a/eco-core/core-plugin/src/main/resources/effects/spelunking.yml b/eco-core/core-plugin/src/main/resources/effects/spelunking.yml index 370dbf1..495a5d9 100644 --- a/eco-core/core-plugin/src/main/resources/effects/spelunking.yml +++ b/eco-core/core-plugin/src/main/resources/effects/spelunking.yml @@ -11,6 +11,7 @@ effects: triggers: - block_item_drop filters: + player_placed: false blocks: - "nether_quartz_ore" - "coal_ore" @@ -37,6 +38,7 @@ effects: triggers: - block_item_drop filters: + player_placed: false blocks: - "nether_quartz_ore" - "coal_ore"