Hi, i have a little problem with my script, the script need to:
At server time 17:00 to start a sun reset animation, when the sun every (custom delay) 4 ticks turn 30 minecraft minutes back, and when the sun arrive at 07:00 position, script need stop.
But, my scritp at 17:00 set time to 17:00 every 1 tick ("while" delay, i presume), the sun remain in the same position, and the test part of script spam in chat only 17:00.
Server Version: CraftBukkit version git-PaperSpigot-"4c7641d" (MC: 1.8.8) (Implementing API version 1.8.8-R0.1-SNAPSHOT)
Skript Version: 2.1.2
SkQuery Version: 3.21.4
[doublepost=1601228579,1600971092][/doublepost]Please.
At server time 17:00 to start a sun reset animation, when the sun every (custom delay) 4 ticks turn 30 minecraft minutes back, and when the sun arrive at 07:00 position, script need stop.
But, my scritp at 17:00 set time to 17:00 every 1 tick ("while" delay, i presume), the sun remain in the same position, and the test part of script spam in chat only 17:00.
Server Version: CraftBukkit version git-PaperSpigot-"4c7641d" (MC: 1.8.8) (Implementing API version 1.8.8-R0.1-SNAPSHOT)
Skript Version: 2.1.2
SkQuery Version: 3.21.4
Code:
Options:
Delay: 4 tick
at 17:00:
set {_sunreset} to 17:00
while {_sunreset} > 07:00:
remove 30 minutes from {_sunreset}
set time to {_sunreset}
wait {@Delay}
loop all players: # This is only for test the script.
send "%time%" to loop-player