mirror of
				https://codeberg.org/tenplus1/ambience.git
				synced 2025-10-31 07:45:23 +01:00 
			
		
		
		
	tweak icecrack and birds
This commit is contained in:
		| @@ -177,7 +177,7 @@ ambience.add_set("beach", { | |||||||
|  |  | ||||||
| ambience.add_set("ice", { | ambience.add_set("ice", { | ||||||
|  |  | ||||||
| 	frequency = 250, | 	frequency = 80, | ||||||
|  |  | ||||||
| 	sounds = { | 	sounds = { | ||||||
| 		{name = "icecrack", length = 5, gain = 1.1}, | 		{name = "icecrack", length = 5, gain = 1.1}, | ||||||
| @@ -193,7 +193,7 @@ ambience.add_set("ice", { | |||||||
| 			+(def.totals["mcl_core:ice"] or 0) | 			+(def.totals["mcl_core:ice"] or 0) | ||||||
| 			+ (def.totals["mcl_core:packed_ice"] or 0) | 			+ (def.totals["mcl_core:packed_ice"] or 0) | ||||||
|  |  | ||||||
| 		if c > 100 then return "ice" end | 		if c > 400 then return "ice" end | ||||||
| 	end | 	end | ||||||
| }) | }) | ||||||
|  |  | ||||||
| @@ -326,7 +326,7 @@ ambience.add_set("day", { | |||||||
| 		-- use handy function to count all nodes in group:leaves | 		-- use handy function to count all nodes in group:leaves | ||||||
| 		local c = ambience.group_total(def.totals, "leaves") | 		local c = ambience.group_total(def.totals, "leaves") | ||||||
|  |  | ||||||
| 		if (def.tod > 0.2 and def.tod < 0.8) and def.pos.y > -10 and c > 5 then | 		if (def.tod > 0.2 and def.tod < 0.8) and def.pos.y > 0 and c > 50 then | ||||||
| 			return "day" | 			return "day" | ||||||
| 		end | 		end | ||||||
| 	end | 	end | ||||||
| @@ -345,7 +345,8 @@ ambience.add_set("night", { | |||||||
| 		{name = "cricket", length = 6, ephemeral = true}, | 		{name = "cricket", length = 6, ephemeral = true}, | ||||||
| 		{name = "deer", length = 7, ephemeral = true}, | 		{name = "deer", length = 7, ephemeral = true}, | ||||||
| 		{name = "frog", length = 1, ephemeral = true}, | 		{name = "frog", length = 1, ephemeral = true}, | ||||||
| 		{name = "frog", length = 1, pitch = 1.2, ephemeral = true} | 		{name = "frog", length = 1, pitch = 1.2, ephemeral = true}, | ||||||
|  | 		{name = "wind", length = 9} | ||||||
| 	}, | 	}, | ||||||
|  |  | ||||||
| 	sound_check = function(def) | 	sound_check = function(def) | ||||||
| @@ -353,7 +354,7 @@ ambience.add_set("night", { | |||||||
| 		-- use handy function to count all nodes in group:leaves | 		-- use handy function to count all nodes in group:leaves | ||||||
| 		local c = ambience.group_total(def.totals, "leaves") | 		local c = ambience.group_total(def.totals, "leaves") | ||||||
|  |  | ||||||
| 		if (def.tod < 0.2 or def.tod > 0.8) and def.pos.y > -10 and c > 5 then | 		if (def.tod < 0.2 or def.tod > 0.8) and def.pos.y > 0 and c > 50 then | ||||||
| 			return "night" | 			return "night" | ||||||
| 		end | 		end | ||||||
| 	end | 	end | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user