mirror of
				https://github.com/luanti-org/minetest_game.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	Default: Thicker snow nodebox
This commit is contained in:
		@@ -356,19 +356,19 @@ minetest.register_node("default:snow", {
 | 
			
		||||
	node_box = {
 | 
			
		||||
		type = "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({
 | 
			
		||||
		footstep = {name="default_snow_footstep", gain=0.25},
 | 
			
		||||
		dug = {name="default_snow_footstep", gain=0.75},
 | 
			
		||||
		footstep = {name = "default_snow_footstep", gain = 0.25},
 | 
			
		||||
		dug = {name = "default_snow_footstep", gain = 0.75},
 | 
			
		||||
	}),
 | 
			
		||||
 | 
			
		||||
	on_construct = function(pos)
 | 
			
		||||
		pos.y = pos.y - 1
 | 
			
		||||
		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,
 | 
			
		||||
})
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user