datastorage.lua 220 B

12345678910111213
  1. local state = minetest.get_mod_storage()
  2. if not state:contains("heat_random") then
  3. state:from_table({
  4. heat_random = 1,
  5. humidity_random = 1,
  6. humidity_base = 50,
  7. wind_x = 0.5,
  8. wind_z = 0.5
  9. })
  10. end
  11. return state