Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Options:
- Time: 10
- #Number of minutes between dawns. Usually 20, use 10 with time flies
- P: &5[&6UHC&5]&6
- Command /nickskytest:
- permission: skript.op
- trigger:
- loop all players:
- if y coordinate of loop-player is greater than 60:
- set {_loc} to location of loop-player
- set {_loc2} to (block at location at {_loc})
- add (255 - y-coord of {_loc}) to y-coord of {_loc2}
- send "%{_loc}%"
- send "%{_loc2}%"
- loop blocks from (block at location of {_loc}) to (block at location of {_loc2}):
- if loop-block is not air or leaves or fence or water or glass:
- send "You are not open to the sky" to loop-player
- send "%loop-block%" to loop-player
- command /dawnheals <text> [<integer>]:
- permission: skript.op
- usage: /dawnheals <start|stop|healplayers> [<duration of game>]
- aliases: /dh
- trigger:
- if arg-1 is equal to "start" or "enable" or "on" or "go":
- if arg-2 is not set:
- set {DH::Number} to 12
- if arg-2 is set:
- set {DH::Number} to arg-2
- loop {DH::Number} times:
- if {DH::Number} is not set:
- stop trigger
- wait {@Time} minutes
- command "/dawnheals healplayers"
- broadcast "{@P} Perma Day Activated! Dawn heals disabled!"
- command "/perma enable"
- delete {DH::Number}
- if arg-1 is equal to "stop" or "off" or "disable" or "reset":
- delete {DH::Number}
- command "/perma disable"
- broadcast "{@P} Dawn Heals Reset!"
- stop trigger
- if arg-1 is equal to "playerheals" or "healplayers":
- delete {DH::NoHeal::*}
- loop all players:
- delete {DH::NoHeal::%loop-player%}
- if y coordinate of loop-player is greater than 60:
- set {_loc} to location of loop-player
- add 1 to y-coord of {_loc}
- set {_loc2} to (block at location at {_loc})
- add (255 - y-coord of {_loc}) to y-coord of {_loc2}
- # send "%{_loc}%"
- # send "%{_loc2}%"
- loop blocks from (block at location of {_loc}) to (block at location of {_loc2}):
- if loop-block is not air or leaves or fence or water or glass or snow layer or locked chest:
- set {DH::NoHeal::%loop-player%} to true
- else if y coordinate of loop-player is less than 60:
- set {DH::NoHeal::%loop-player%} to true
- wait 1 tick
- if {DH::NoHeal::%loop-player%} is true:
- send "{@P} You were not open to the sky, try again next time!" to loop-player
- else if {DH::NoHeal::%loop-player%} is not set:
- send "{@P} You were open to the sky! Congrats!" to loop-player
- apply regeneration to the loop-player for 5 seconds
- delete {DH::NoHeal::%loop-player%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement