Default: Make snowblock change 'dirt with grass' below

To be consistent with the snow slab.
This commit is contained in:
paramat 2016-11-08 17:30:58 +00:00
parent 614e9cfe8d
commit ddea6c431e
1 changed files with 7 additions and 0 deletions

View File

@ -473,6 +473,13 @@ minetest.register_node("default:snowblock", {
dug = {name = "default_snow_footstep", gain = 0.2},
dig = {name = "default_snow_footstep", gain = 0.2}
}),
on_construct = function(pos)
pos.y = pos.y - 1
if minetest.get_node(pos).name == "default:dirt_with_grass" then
minetest.set_node(pos, {name = "default:dirt_with_snow"})
end
end,
})
minetest.register_node("default:ice", {