Skip to content

Commit ddea6c4

Browse files
committedNov 10, 2016
Default: Make snowblock change 'dirt with grass' below
To be consistent with the snow slab.
1 parent 614e9cf commit ddea6c4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎mods/default/nodes.lua

+7
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,13 @@ minetest.register_node("default:snowblock", {
473473
dug = {name = "default_snow_footstep", gain = 0.2},
474474
dig = {name = "default_snow_footstep", gain = 0.2}
475475
}),
476+
477+
on_construct = function(pos)
478+
pos.y = pos.y - 1
479+
if minetest.get_node(pos).name == "default:dirt_with_grass" then
480+
minetest.set_node(pos, {name = "default:dirt_with_snow"})
481+
end
482+
end,
476483
})
477484

478485
minetest.register_node("default:ice", {

0 commit comments

Comments
 (0)
Please sign in to comment.