Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /ascensionenable:
- description: Enabled Ascension
- usage: /ascension enable
- permission: skript.op
- trigger:
- set {Ascension} to true
- broadcast "Ascension has been enabled."
- command /ascensiondisable:
- description: Disabled Ascension
- usage: /ascension disable
- permission: skript.op
- trigger:
- set {Ascension} to false
- broadcast "Ascension has been disabled."
- on damage:
- {Ascension} is true
- y-coordinate of attacker is less than y-coordinate of victim
- set damage to damage * 0.85
- on consume of a golden apple:
- {Ascension} is true
- wait 1 tick
- remove regeneration from player
- remove absorption from player
- if y-coordinate of player is between 0 and 12:
- apply regeneration to player for 1 second
- else if y-coordinate of player is between 13 and 32:
- apply regeneration to player for 2 seconds
- else if y-coordinate of player is between 33 and 100:
- apply regeneration to player for 3 seconds
- else if y-coordinate of player is between 101 and 200:
- apply regeneration to player for 4 seconds
- else if y-coordinate of player is between 201 and 230:
- apply regeneration to player for 4 seconds
- apply absorption to player for 120 seconds
- on damage:
- {Ascension} is true:
- if attacker is and entity:
- if attacler os a player:
- stop trigger
- else:
- set {_damage} to damage
- if victim's y-coordinate is less than 20:
- set damage to ({_damage}*3)
- else if victim's y-coordinate is less than 40:
- set damage to ({_damage}*2)
- else if victim's y-coordinate is less than 70:
- set damage to ({_damage}*1.5)
- else if victim's y-coordinate is less than 100:
- set damage to ({_damage}*1.2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement