Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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