Solved Speeding up/slowing down day time

Discussion in 'Plugin Development' started by RandomPanda30, Apr 14, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    RandomPanda30

    Hai there, so I was wondering is there a way to speed up the day time in a world. I've looked all over the internet and tried many methods but nothing has seemed to work. I was wondering can this actually be done and if so, how?

    Thanks, ~Panda
     
  2. add x to time every x ticks
     
  3. Offline

    RandomPanda30

    See the problem is I know to do that but I'm confused how to...do it basically. I have a countdown timer for 1 minute and I'd like to sync the clock to go from 1000L (7am in MC) to 13000L (7pm in MC) problem is I just cannot cipher how to do this...

    Managed to fix it by doing some fancy (not so fancy math) -

    Code:
        private long difference = 13000 - 1000;
        private long tt = (TimeCollection.getTimeUntilPurge() * 60) * 20;
        private long tt2 = difference / tt;
    
    getWorld().getTime() + (tt2 * 20));
     
    Last edited by a moderator: Apr 14, 2015
Thread Status:
Not open for further replies.

Share This Page