Page 1 of 1

Minetest time?

PostPosted: Thu May 17, 2012 00:20
by mauvebic
I basically know very little of how time works in minetest. basically if i want daylight i do /time 6000 or /time 0 for night.

Im assuming each unit is a second. How long is a day?

I have things that grow, and these things need to grow faster than the seasons change (obvs).
my nature growing intervals are set at 1200 (used to be 3600), and the seasons are set to change at every 1500 (using minetest.after). I tried setting the timer to something higher like 3600 but nothing happened. is there a limit to timers?

Im not really crazy about winter knocking at my door when wild flowers and plants *just* grew.

PostPosted: Thu May 17, 2012 12:29
by jordan4ibanez
it's military time with an extra 0

PostPosted: Thu May 17, 2012 13:11
by mauvebic
so a minetest day is 2400 intervals?

PostPosted: Thu May 17, 2012 14:31
by Jordach
Yes, but, why dont you use sleep timers instead.

PostPosted: Thu May 17, 2012 14:59
by mauvebic

PostPosted: Thu May 17, 2012 15:00
by mauvebic
buuut that gives me an idea: im already storing season info in a seperate file, i could store os.time too and make my own lua timer... thanks! :-)

PostPosted: Thu May 17, 2012 15:02
by Jordach
I remember that trick from another seasons mod. Someone tried and made everything lag like hell.

PostPosted: Fri May 18, 2012 12:25
by mauvebic
well... minetest.after 1500 seems to work w/o lag so ill leave it like that and just store the season in a seperate file.

I took a look at the other seasons mod, honestly i couldnt understand how / if it worked. the scopes for the file read/write functions were wrong.

PostPosted: Tue Jul 17, 2012 02:58
by Mallot1
/time 7000:day
/time 0: night

PostPosted: Tue Jul 17, 2012 05:57
by Stef
I use /time 5000: sun comes up

PostPosted: Tue Jul 17, 2012 08:57
by Calinou
/time 6000
^ day
/time 22000
^ night

/set time_speed 72
^ time speed, 72 is the default. 1 = a day/night cycle is 24 hours, 360 = 4 minutes, 0 = no cycle.

Re: Minetest time?

PostPosted: Tue May 17, 2016 01:49
by cimbakahn
I do
/time 12000
and
/set time_speed 0