3 season.which = minetest.settings:get("season") or "reallife"
5 if season.which == "reallife" then
6 local dayofyear = os.date("*t").yday
7 if dayofyear >= 79 and dayofyear < 172 then
8 season.which = "spring"
9 elseif dayofyear < 266 then
10 season.which = "summer"
11 elseif dayofyear < 355 then
12 season.which = "autumn"
14 season.which = "winter"
18 function season.pick(spring, summer, autumn, winter)
25 return t[season.which]