Skip to content

Instantly share code, notes, and snippets.

@PilzAdam
Created November 2, 2013 15:07
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/7279851 to your computer and use it in GitHub Desktop.
Save PilzAdam/7279851 to your computer and use it in GitHub Desktop.
if nodedef and (nodedef.sunlight_propagates or nodedef.paramtype == "light")
and nodedef.liquidtype == "none"
and (minetest.get_node_light(above) >= 13 or 0) then
if name == "default:snow" or name == "default:snowblock" then
minetest.set_node(pos, {name = "default:dirt_with_snow"})
else
minetest.set_node(pos, {name = "default:dirt_with_grass"})
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment