[Skript] Speeding up the night time.

Discussion in 'Programming' started by DrunkyHorse, Jul 12, 2019 at 12:15 AM.

  1. Hello. I'm trying to make a skript that speeds up the night time when one player is "sleeping" and one other is "playing" in minecraft. I tried a lot of codes but without result. This is a simple code to check if time set works fine but.. it doesn't. https://pastebin.com/aKgB7Yak All of the numbers here are ticks, but it seems like skript can't work with ticks in this case. So then i tried with time like.. time. https://pastebin.com/AtuSemey There works only "set time to 10:00". I think its impossible to add 1:00 to 10:00. If I use "execute console command" or "execute player command" works at all, but is so big spam at console/player chat. Does anyone can help with this, I'll be very happy. ... (If I have any errors with the text here, sorry! I'm from Europe.)
  2. Not a script expert, but you shouldn't use commands for this that get executed by a player or by the console instead there should be a sit time function that you could use. Get the current time and add a x amount to that time.
  3. There is the problem. I can't find way to add 1:00 to the current time of the world. I can add ticks to the time, but I believe that skript can't do that function with using of ticks. :/
  4. Just try it. I create java plugins and I always try things.