Default: Make snowblock change 'dirt with grass' below
To be consistent with the snow slab.
This commit is contained in:
parent
614e9cfe8d
commit
ddea6c431e
@ -473,6 +473,13 @@ minetest.register_node("default:snowblock", {
|
|||||||
dug = {name = "default_snow_footstep", gain = 0.2},
|
dug = {name = "default_snow_footstep", gain = 0.2},
|
||||||
dig = {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", {
|
minetest.register_node("default:ice", {
|
||||||
|
Loading…
Reference in New Issue
Block a user