Advertisement
Guest User

Untitled

a guest
Jul 29th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. command /ascensionenable:
  2. description: Enabled Ascension
  3. usage: /ascension enable
  4. permission: skript.op
  5. trigger:
  6. set {Ascension} to true
  7. broadcast "Ascension has been enabled."
  8.  
  9. command /ascensiondisable:
  10. description: Disabled Ascension
  11. usage: /ascension disable
  12. permission: skript.op
  13. trigger:
  14. set {Ascension} to false
  15. broadcast "Ascension has been disabled."
  16.  
  17. on damage:
  18. {Ascension} is true
  19. y-coordinate of attacker is less than y-coordinate of victim
  20. set damage to damage * 0.85
  21.  
  22. on consume of a golden apple:
  23. {Ascension} is true
  24. wait 1 tick
  25. remove regeneration from player
  26. remove absorption from player
  27. if y-coordinate of player is between 0 and 12:
  28. apply regeneration to player for 1 second
  29. else if y-coordinate of player is between 13 and 32:
  30. apply regeneration to player for 2 seconds
  31. else if y-coordinate of player is between 33 and 100:
  32. apply regeneration to player for 3 seconds
  33. else if y-coordinate of player is between 101 and 200:
  34. apply regeneration to player for 4 seconds
  35. else if y-coordinate of player is between 201 and 230:
  36. apply regeneration to player for 4 seconds
  37. apply absorption to player for 120 seconds
  38.  
  39. on damage:
  40. {Ascension} is true:
  41. if attacker is and entity:
  42. if attacler os a player:
  43. stop trigger
  44. else:
  45. set {_damage} to damage
  46. if victim's y-coordinate is less than 20:
  47. set damage to ({_damage}*3)
  48. else if victim's y-coordinate is less than 40:
  49. set damage to ({_damage}*2)
  50. else if victim's y-coordinate is less than 70:
  51. set damage to ({_damage}*1.5)
  52. else if victim's y-coordinate is less than 100:
  53. set damage to ({_damage}*1.2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement