Advertisement
Guest User

Untitled

a guest
Jan 21st, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.57 KB | None | 0 0
  1. Options:
  2. Time: 10
  3. #Number of minutes between dawns. Usually 20, use 10 with time flies
  4. P: &5[&6UHC&5]&6
  5.  
  6.  
  7.  
  8. Command /nickskytest:
  9. permission: skript.op
  10. trigger:
  11. loop all players:
  12. if y coordinate of loop-player is greater than 60:
  13. set {_loc} to location of loop-player
  14. set {_loc2} to (block at location at {_loc})
  15. add (255 - y-coord of {_loc}) to y-coord of {_loc2}
  16. send "%{_loc}%"
  17. send "%{_loc2}%"
  18. loop blocks from (block at location of {_loc}) to (block at location of {_loc2}):
  19. if loop-block is not air or leaves or fence or water or glass:
  20. send "You are not open to the sky" to loop-player
  21. send "%loop-block%" to loop-player
  22.  
  23.  
  24.  
  25. command /dawnheals <text> [<integer>]:
  26. permission: skript.op
  27. usage: /dawnheals <start|stop|healplayers> [<duration of game>]
  28. aliases: /dh
  29. trigger:
  30. if arg-1 is equal to "start" or "enable" or "on" or "go":
  31. if arg-2 is not set:
  32. set {DH::Number} to 12
  33. if arg-2 is set:
  34. set {DH::Number} to arg-2
  35. loop {DH::Number} times:
  36. if {DH::Number} is not set:
  37. stop trigger
  38. wait {@Time} minutes
  39. command "/dawnheals healplayers"
  40. broadcast "{@P} Perma Day Activated! Dawn heals disabled!"
  41. command "/perma enable"
  42. delete {DH::Number}
  43. if arg-1 is equal to "stop" or "off" or "disable" or "reset":
  44. delete {DH::Number}
  45. command "/perma disable"
  46. broadcast "{@P} Dawn Heals Reset!"
  47. stop trigger
  48.  
  49. if arg-1 is equal to "playerheals" or "healplayers":
  50. delete {DH::NoHeal::*}
  51. loop all players:
  52. delete {DH::NoHeal::%loop-player%}
  53. if y coordinate of loop-player is greater than 60:
  54. set {_loc} to location of loop-player
  55. add 1 to y-coord of {_loc}
  56. set {_loc2} to (block at location at {_loc})
  57. add (255 - y-coord of {_loc}) to y-coord of {_loc2}
  58. # send "%{_loc}%"
  59. # send "%{_loc2}%"
  60. loop blocks from (block at location of {_loc}) to (block at location of {_loc2}):
  61. if loop-block is not air or leaves or fence or water or glass or snow layer or locked chest:
  62. set {DH::NoHeal::%loop-player%} to true
  63. else if y coordinate of loop-player is less than 60:
  64. set {DH::NoHeal::%loop-player%} to true
  65. wait 1 tick
  66. if {DH::NoHeal::%loop-player%} is true:
  67. send "{@P} You were not open to the sky, try again next time!" to loop-player
  68. else if {DH::NoHeal::%loop-player%} is not set:
  69. send "{@P} You were open to the sky! Congrats!" to loop-player
  70. apply regeneration to the loop-player for 5 seconds
  71. delete {DH::NoHeal::%loop-player%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement