Default: Thicker snow nodebox

This commit is contained in:
paramat 2015-07-24 01:24:13 +01:00
parent 2885ae6018
commit cbea61e8dd

@ -356,19 +356,19 @@ minetest.register_node("default:snow", {
node_box = { node_box = {
type = "fixed", type = "fixed",
fixed = { fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.5+2/16, 0.5}, {-0.5, -0.5, -0.5, 0.5, -0.25, 0.5},
}, },
}, },
groups = {crumbly=3,falling_node=1}, groups = {crumbly = 3, falling_node = 1},
sounds = default.node_sound_dirt_defaults({ sounds = default.node_sound_dirt_defaults({
footstep = {name="default_snow_footstep", gain=0.25}, footstep = {name = "default_snow_footstep", gain = 0.25},
dug = {name="default_snow_footstep", gain=0.75}, dug = {name = "default_snow_footstep", gain = 0.75},
}), }),
on_construct = function(pos) on_construct = function(pos)
pos.y = pos.y - 1 pos.y = pos.y - 1
if minetest.get_node(pos).name == "default:dirt_with_grass" then if minetest.get_node(pos).name == "default:dirt_with_grass" then
minetest.set_node(pos, {name="default:dirt_with_snow"}) minetest.set_node(pos, {name = "default:dirt_with_snow"})
end end
end, end,
}) })