mirror of
https://github.com/t-affeldt/climate_api.git
synced 2024-12-22 17:00:36 +01:00
14 lines
260 B
Lua
14 lines
260 B
Lua
local state = minetest.get_mod_storage()
|
|
|
|
if not state:contains("noise_timer") then
|
|
state:from_table({
|
|
heat_random = 1,
|
|
humidity_random = 1,
|
|
humidity_base = 50,
|
|
wind_x = 0.5,
|
|
wind_z = 0.5,
|
|
noise_timer = math.random(0, 300000)
|
|
})
|
|
end
|
|
|
|
return state |