Merge pull request #295

Added spell category and added old spell enchants
This commit is contained in:
Will FP 2022-09-05 14:56:10 +01:00 committed by GitHub
commit 84631ae0e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 225 additions and 0 deletions

View File

@ -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: []

View File

@ -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: [ ]

View File

@ -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

View File

@ -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: []

View File

@ -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: []

View File

@ -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: "<gradient:#0575E6:#1E3FBA>"
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: "<gradient:#FB57EC:#EF1DEC>"
limit: 1
high-level-bias: 0.7
no-grindstone: false # If enchants of this type should not be removable in the grindstone