Skip to content

Instantly share code, notes, and snippets.

@PilzAdam
Created June 25, 2013 14:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PilzAdam/5859007 to your computer and use it in GitHub Desktop.
Save PilzAdam/5859007 to your computer and use it in GitHub Desktop.
local d = 0.51
minetest.register_node("default:snow", {
description = "Snow",
tiles = {"default_snow.png", "default_snow.png", "default_snow_side.png"},
inventory_image = "default_snowball.png",
wield_image = "default_snowball.png",
is_ground_content = true,
paramtype = "light",
buildable_to = true,
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-d, -0.5, -d, d, -0.5+2/16, d},
{-d, -0.5-8/16, -d, d, -0.5, -d},
{-d, -0.5-8/16, d, d, -0.5, d},
{-d, -0.5-8/16, -d, -d, -0.5, d},
{ d, -0.5-8/16, -d, d, -0.5, d},
},
},
selection_box = {
type = "fixed",
fixed = {
{-d, -0.5, -d, d, -0.5+2/16, d},
}
},
groups = {crumbly=3,attached_node=1},
sounds = default.node_sound_dirt_defaults({
footstep = {name="default_snow_footstep", gain=0.25},
dug = {name="default_snow_footstep", gain=0.75},
}),
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment