mirror of
				https://github.com/FaceDeer/dfcaverns.git
				synced 2025-10-31 08:15:24 +01:00 
			
		
		
		
	make webs snappy
This commit is contained in:
		| @@ -137,7 +137,7 @@ minetest.register_node("big_webs:webbing", { | |||||||
| 	is_ground_content = false, | 	is_ground_content = false, | ||||||
| 	climbable = true, | 	climbable = true, | ||||||
| 	floodable = true, | 	floodable = true, | ||||||
| 	groups = {choppy = 2, webbing = 1, flammable=1, fall_damage_add_percent=-100, bouncy=20}, | 	groups = {snappy = 2, choppy = 2, webbing = 1, flammable=1, fall_damage_add_percent=-100, bouncy=20}, | ||||||
| 	sounds = sound, | 	sounds = sound, | ||||||
| 	on_construct = function(pos) | 	on_construct = function(pos) | ||||||
| 		minetest.get_node_timer(pos):start(30) | 		minetest.get_node_timer(pos):start(30) | ||||||
| @@ -185,7 +185,7 @@ minetest.register_node("big_webs:web_egg", { | |||||||
| 	is_ground_content = false, | 	is_ground_content = false, | ||||||
| 	climbable = true, | 	climbable = true, | ||||||
| 	floodable = true, | 	floodable = true, | ||||||
| 	groups = {choppy = 2, webbing = 1, flammable=1, fall_damage_add_percent=-100, bouncy=20}, | 	groups = {snappy = 2, choppy = 2, webbing = 1, flammable=1, fall_damage_add_percent=-100, bouncy=20}, | ||||||
| 	sounds = sound, | 	sounds = sound, | ||||||
| 	on_construct = function(pos) | 	on_construct = function(pos) | ||||||
| 		minetest.get_node_timer(pos):start(1) | 		minetest.get_node_timer(pos):start(1) | ||||||
|   | |||||||
| @@ -367,7 +367,7 @@ local decorate_level_3 = function(minp, maxp, seed, vm, node_arrays, area, data) | |||||||
| 			else | 			else | ||||||
| 				df_caverns.tunnel_ceiling(minp, maxp, area, vi, nvals_cracks, data, data_param2, false) | 				df_caverns.tunnel_ceiling(minp, maxp, area, vi, nvals_cracks, data, data_param2, false) | ||||||
| 			end | 			end | ||||||
| 			if c_webs_egg and not flooded_caverns and biome_name == "barren" and nvals_cracks[index2d] > 0.5 and math.random() < 0.2 then | 			if c_webs_egg and biome_name == "barren" and nvals_cracks[index2d] > 0.5 and math.random() < 0.1 then | ||||||
| 				local index = vi-ystride | 				local index = vi-ystride | ||||||
| 				if data[index] == c_air then | 				if data[index] == c_air then | ||||||
| 					data[index] = c_webs_egg | 					data[index] = c_webs_egg | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user