Speed up time script

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

CKR367

Member
Feb 1, 2017
64
2
0
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...:emoji_joy:

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)
 
Status
Not open for further replies.