1
0
mirror of https://github.com/t-affeldt/regional_weather.git synced 2025-07-18 00:10:39 +02:00

Add new textures, tweak effects, add fog and freezing of river water

This commit is contained in:
Till Affeldt
2020-04-22 00:54:27 +02:00
parent e0b8d6d835
commit 32ab2c4d23
27 changed files with 223 additions and 65 deletions

View File

@ -14,6 +14,13 @@ or not regional_weather.settings.snow then
return
end
local destruction_handler = function(pos)
pos.y = pos.y - 1
if minetest.get_node(pos).name == "default:dirt_with_snow" then
minetest.set_node(pos, {name = "default:dirt_with_grass"})
end
end
for i = 1,5 do
local node_box = {
type = "fixed",
@ -43,12 +50,8 @@ for i = 1,5 do
minetest.set_node(pos, {name = "default:dirt_with_snow"})
end
end,
on_destruct = function(pos)
pos.y = pos.y - 1
if minetest.get_node(pos).name == "default:dirt_with_snow" then
minetest.set_node(pos, {name = "default:dirt_with_grass"})
end
end
on_destruct = destruction_handler,
on_flood = destruction_handler
})
end