Skip to content
Snippets Groups Projects
Commit ddea6c43 authored by paramat's avatar paramat
Browse files

Default: Make snowblock change 'dirt with grass' below

To be consistent with the snow slab.
parent 614e9cfe
No related branches found
No related tags found
No related merge requests found
......@@ -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", {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment