Shell_Guy_

Potential Permanent

Sep 14th, 2014
374
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.60 KB | None | 0 0
  1. # /-\_/-\ /-\_/-\
  2. # \ / Potential Permanent by Shell_Guy_ \ /
  3. # \ _ / \ _ /
  4.  
  5. variables:
  6. {ptpon} = false
  7.  
  8. command /ptp <text>:
  9. permission: skript.op
  10. usage: /ptp <on/off>
  11. trigger:
  12. if arg 1 is "on":
  13. {ptpon} is true:
  14. message "Potential Permanent is already on!"
  15. else:
  16. broadcast "&l&6Potential Permanent is now on"
  17. apply absorption 5 to all players for 999 days
  18. set the maximum health of all players to 10
  19. set {ptpon} to true
  20. execute console command "feature off PotionNerfs"
  21. loop all players:
  22. remove player from {absorptionleft::*}
  23.  
  24.  
  25. if arg 1 is "off":
  26. {ptpon} is false:
  27. message "Potential Permanent is allready off!"
  28. else:
  29. broadcast "&l&6Potential Permanent is now off"
  30. remove absorption from all players
  31. set the maximum health of all players to 10
  32. set {ptpon} to false
  33.  
  34. on consume of golden apple:
  35.  
  36. {ptpon} is true:
  37. cancel event
  38. subtract golden apple from player
  39.  
  40. if {absorptionleft::*} does not contain player:
  41.  
  42. player's health is less than 9.9:
  43. apply regeneration 2 to player for 5 seconds
  44. add player to {absorptionleft::*}
  45. remove absorption from player
  46. stop
  47.  
  48. set {Healthadd} to the player's health
  49. set {Healthadd} to {Healthadd} + 2
  50. apply regeneration 2 to player for 5 seconds
  51. damage player by 2 hearts
  52.  
  53. set {Healthadd} to {Healthadd} - 4
  54.  
  55.  
  56. player's health is equal to {Healthadd}:
  57. apply regeneration 2 to player for 5 seconds
  58. add player to {absorptionleft::*}
  59. remove absorption from player
  60. stop
  61.  
  62. player's health is less than {Healthadd}:
  63. apply regeneration 2 to player for 5 seconds
  64. add player to {absorptionleft::*}
  65. remove absorption from player
  66. stop
  67.  
  68. set {Healthadd} to {Healthadd} + 4
  69.  
  70. {Healthadd} is less than 19.9:
  71. set the maximum health of player to {Healthadd}
  72.  
  73. {Healthadd} is more than 20.1:
  74. set the maximum health of player to 20
  75. add player to {absorptionleft::*}
  76. remove absorption from player
  77.  
  78. {Healthadd} is 20:
  79. set the maximum health of player to 20
  80. add player to {absorptionleft::*}
  81. remove absorption from player
  82.  
  83. wait 5 seconds
  84.  
  85.  
  86. player's health is less than {Healthadd}:
  87. add player to {absorptionleft::*}
  88. remove absorption from player
  89. set {Healthminus} to player's health
  90. set maximum health of player to {Healthminus}
  91. stop
  92.  
  93.  
  94. else:
  95. apply regeneration 2 to player for 5 seconds
Advertisement
Add Comment
Please, Sign In to add comment