I am attempting to make a script that on execution, whether it's a command or gui click trigger, it will speed up time until it reaches the target time. For example if I wanted the world time to change to 6:00, I could run a command, lets say /examplecmd. It would then speed up time until it hit 6:00 in the world, instead of instantly changing to that time with the built in /time command. I attempted to make it, but I don't really know where to start...
PS: I know the code probably doesn't make sense whatsoever, I just wanted to try and get a feel for what the code might look like.
MC Version: 1.11.2
Skript Version: Bensku dev31b (latest)
Addons:
code_language.skript:
command /examplecmd:
trigger:
set {_ct} to time in world "MCHG-MAP"
set {_tt} to 6:00
set {_diff} to difference between {_ct} and {_tt}
loop {_diff} times:
make console execute command "time add 1"
wait 1 tick
PS: I know the code probably doesn't make sense whatsoever, I just wanted to try and get a feel for what the code might look like.
MC Version: 1.11.2
Skript Version: Bensku dev31b (latest)
Addons:
- Skellett 1.9.6 (latest)
- TuSke 1.8.1 (latest)