Minetest time?

Post Reply
mauvebic
Member
Posts: 1550
Joined: Fri Jan 27, 2012 11:32

Minetest time?

by mauvebic » Post

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.

User avatar
jordan4ibanez
Member
Posts: 1923
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Post

it's military time with an extra 0
hello, am program. do language in rust. make computer do. okay i go now.

mauvebic
Member
Posts: 1550
Joined: Fri Jan 27, 2012 11:32

by mauvebic » Post

so a minetest day is 2400 intervals?

Jordach
Member
Posts: 4534
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach
Location: Blender Scene

by Jordach » Post

Yes, but, why dont you use sleep timers instead.

mauvebic
Member
Posts: 1550
Joined: Fri Jan 27, 2012 11:32

by mauvebic » Post


mauvebic
Member
Posts: 1550
Joined: Fri Jan 27, 2012 11:32

by mauvebic » Post

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! :-)
Last edited by mauvebic on Thu May 17, 2012 15:00, edited 1 time in total.

Jordach
Member
Posts: 4534
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach
Location: Blender Scene

by Jordach » Post

I remember that trick from another seasons mod. Someone tried and made everything lag like hell.

mauvebic
Member
Posts: 1550
Joined: Fri Jan 27, 2012 11:32

by mauvebic » Post

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.

User avatar
Mallot1
Member
Posts: 85
Joined: Wed Jun 27, 2012 04:38

by Mallot1 » Post

/time 7000:day
/time 0: night

User avatar
Stef
Member
Posts: 394
Joined: Wed Apr 04, 2012 10:46
Location: Belgium

by Stef » Post

I use /time 5000: sun comes up
Sorry for my crappy english, im dutch :D

User avatar
Calinou
Moderator
Posts: 3169
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou
Location: Troyes, France
Contact:

by Calinou » Post

/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.

User avatar
cimbakahn
Member
Posts: 39
Joined: Sat Aug 29, 2015 20:03
IRC: cimbakahn
In-game: cimbakahn

Re: Minetest time?

by cimbakahn » Post

I do
/time 12000
and
/set time_speed 0
cdb_efde67d3a97d

Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests