diff --git a/eco-core/core-plugin/src/main/resources/enchants/spell/ascend.yml b/eco-core/core-plugin/src/main/resources/enchants/spell/ascend.yml new file mode 100644 index 00000000..326430b1 --- /dev/null +++ b/eco-core/core-plugin/src/main/resources/enchants/spell/ascend.yml @@ -0,0 +1,46 @@ +display-name: "Ascend" # The name of the enchantment in-game +description: "Levitates you into the air" # The description of the enchantment +type: spell # The enchantment type, from types.yml + + + +targets: # The items that the enchantment can be applied to, see targets.yml + - sword +rarity: legendary # The rarity of the enchantment, see rarity.yml +max-level: 2 # The max level of the enchantment + +tradeable: true # If the enchantment can be obtained from villagers +discoverable: true # If the enchantment can generate naturally in chests +enchantable: true # If the enchantment can be obtained from enchanting tables + +effects: + - effects: + - id: potion_effect + args: + effect: LEVITATION + level: 25 + duration: "5 * %level%" + apply_to_player: true + - id: potion_effect + args: + effect: SLOW_FALLING + level: 1 + duration: 10 + delay: "18 * %level%" + apply_to_player: true + - id: play_sound + args: + sound: ENTITY_FIREWORK_ROCKET_LARGE_BLAST + pitch: 1 + volume: 1 + - id: send_message + args: + message: "&a&lEcoenchants &8» &rUsed &aAscend &fspell !" + action_bar: false + args: + run-type: normal + cooldown: 1 #90 + send_cooldown_message: true + triggers: + - alt_click +conditions: [] diff --git a/eco-core/core-plugin/src/main/resources/enchants/spell/charge.yml b/eco-core/core-plugin/src/main/resources/enchants/spell/charge.yml new file mode 100644 index 00000000..a2fcdc73 --- /dev/null +++ b/eco-core/core-plugin/src/main/resources/enchants/spell/charge.yml @@ -0,0 +1,38 @@ +display-name: "Charge" # The name of the enchantment in-game +description: "Launches you in the direction you're looking." #The description of the enchantment +type: spell # The enchantment type, from types.yml + + + +targets: # The items that the enchantment can be applied to, see targets.yml + - sword +rarity: legendary # The rarity of the enchantment, see rarity.yml +max-level: 2 # The max level of the enchantment + +tradeable: true # If the enchantment can be obtained from villagers +discoverable: true # If the enchantment can generate naturally in chests +enchantable: true # If the enchantment can be obtained from enchanting tables + + +effects: + - effects: + - id: pull_to_location + args: + velocity: "1.5 * %level%" + - id: play_sound + args: + sound: ENTITY_FIREWORK_ROCKET_LAUNCH + pitch: 2 + volume: 1 + - id: send_message + args: + message: "&a&lEcoenchants &8» &rUsed &aCharge &fspell !" + action_bar: false + args: + run-type: normal + cooldown: 40 + send_cooldown_message: true + triggers: + - alt_click + +conditions: [ ] diff --git a/eco-core/core-plugin/src/main/resources/enchants/spell/dynamite.yml b/eco-core/core-plugin/src/main/resources/enchants/spell/dynamite.yml new file mode 100644 index 00000000..9613ad2e --- /dev/null +++ b/eco-core/core-plugin/src/main/resources/enchants/spell/dynamite.yml @@ -0,0 +1,51 @@ +display-name: "Dynamite" # The name of the enchantment in-game +description: "Mines blocks in a large area." # The description of the enchantment +type: spell # The enchantment type, from types.yml + + + +targets: # The items that the enchantment can be applied to, see targets.yml + - pickaxe +rarity: legendary # The rarity of the enchantment, see rarity.yml +max-level: 2 # The max level of the enchantment + +tradeable: true # If the enchantment can be obtained from villagers +discoverable: true # If the enchantment can generate naturally in chests +enchantable: true # If the enchantment can be obtained from enchanting tables + + +effects: + - effects: + - id: create_explosion + args: + power: "2 * %level%" + amount: 1 + - id: mine_radius + args: + radius: "2 * %level%" + blacklisted_blocks: + - obsidian + - barrier + - bedrock + check_hardness: false + disable_on_sneak: true + - id: send_message + args: + message: "&a&lEcoenchants &8» &rUsed &aDynamite &fspell !" + action_bar: false + - id: play_sound + args: + sound: ENTITY_DRAGON_FIREBALL_EXPLODE + pitch: 1 + volume: 1 + - id: break_block + args: + run-type: normal + cooldown: 60 + send_cooldown_message: true + triggers: + - alt_click +conditions: + - id: is_sneaking + args: + inverse: true \ No newline at end of file diff --git a/eco-core/core-plugin/src/main/resources/enchants/spell/quake.yml b/eco-core/core-plugin/src/main/resources/enchants/spell/quake.yml new file mode 100644 index 00000000..ad31b9b7 --- /dev/null +++ b/eco-core/core-plugin/src/main/resources/enchants/spell/quake.yml @@ -0,0 +1,42 @@ +display-name: "Quake" # The name of the enchantment in-game +description: "Damages all nearby entities" # The description of the enchantment +type: spell # The enchantment type, from types.yml + + + +targets: # The items that the enchantment can be applied to, see targets.yml + - sword +rarity: epic # The rarity of the enchantment, see rarity.yml +max-level: 3 # The max level of the enchantment + +tradeable: true # If the enchantment can be obtained from villagers +discoverable: true # If the enchantment can generate naturally in chests +enchantable: true # If the enchantment can be obtained from enchanting tables + + +effects: + - effects: + - id: damage_nearby_entities + args: + damage: "3 + (%level% + 2)" # The amount of damage to deal + radius: "2 + (%level% + 1)" # The radius to scan for entities + entities: [] # The whitelist of entities to damage + damage_as_player: false # If the player should be marked as the damager + damage_self: false # If the effect can damage the player + - id: send_message + args: + message: "&a&lEcoenchants &8» &rUsed &aQuake &fspell !" + action_bar: false + - id: play_sound + args: + sound: ENTITY_ENDER_DRAGON_GROWL + pitch: 1 + volume: 1 + args: + run-type: normal + cooldown: 40 + send_cooldown_message: true + triggers: + - alt_click + +conditions: [] diff --git a/eco-core/core-plugin/src/main/resources/enchants/spell/vitalize.yml b/eco-core/core-plugin/src/main/resources/enchants/spell/vitalize.yml new file mode 100644 index 00000000..a35a5020 --- /dev/null +++ b/eco-core/core-plugin/src/main/resources/enchants/spell/vitalize.yml @@ -0,0 +1,41 @@ +display-name: "Vitalize" # The name of the enchantment in-game +description: "Puts you back on max health" # The description of the enchantment +type: spell # The enchantment type, from types.yml + + + +targets: # The items that the enchantment can be applied to, see targets.yml + - sword + - axe + - pickaxe + - shovel +rarity: special # The rarity of the enchantment, see rarity.yml +max-level: 1 # The max level of the enchantment + +tradeable: true # If the enchantment can be obtained from villagers +discoverable: true # If the enchantment can generate naturally in chests +enchantable: true # If the enchantment can be obtained from enchanting tables + + +effects: + - effects: + - id: give_health + args: + amount: 2048 # The amount of health to give/take (allows negative values) + - id: send_message + args: + message: "&a&lEcoenchants &8» &rUsed &aVitalize &fspell !" + action_bar: false + - id: play_sound + args: + sound: ENTITY_PLAYER_LEVELUP + pitch: 1 + volume: 1 + args: + run-type: normal + cooldown: 450 + send_cooldown_message: true + triggers: + - alt_click + +conditions: [] diff --git a/eco-core/core-plugin/src/main/resources/types.yml b/eco-core/core-plugin/src/main/resources/types.yml index 425ef476..845c1c77 100644 --- a/eco-core/core-plugin/src/main/resources/types.yml +++ b/eco-core/core-plugin/src/main/resources/types.yml @@ -15,8 +15,15 @@ types: high-level-bias: 0 no-grindstone: true # If enchants of this type should not be removable in the grindstone + - id: spell + format: "" + limit: 1 + high-level-bias: 0.5 + no-grindstone: false # If enchants of this type should not be removable in the grindstone + - id: special format: "" limit: 1 high-level-bias: 0.7 no-grindstone: false # If enchants of this type should not be removable in the grindstone +