mirror of
https://codeberg.org/tenplus1/ambience.git
synced 2025-01-11 18:40:16 +01:00
only count river water flowing for sound
This commit is contained in:
parent
75318194f4
commit
12feefc206
6
init.lua
6
init.lua
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
--= Ambience lite by TenPlus1 (23rd August 2017)
|
--= Ambience lite by TenPlus1 (20th September 2017)
|
||||||
|
|
||||||
local max_frequency_all = 1000 -- larger number means more frequent sounds (100-2000)
|
local max_frequency_all = 1000 -- larger number means more frequent sounds (100-2000)
|
||||||
local SOUNDVOLUME = 1.0
|
local SOUNDVOLUME = 1.0
|
||||||
@ -189,7 +189,7 @@ local get_ambience = function(player)
|
|||||||
"fire:basic_flame", "fire:permanent_flame",
|
"fire:basic_flame", "fire:permanent_flame",
|
||||||
"default:lava_flowing", "default:lava_source", "default:jungletree",
|
"default:lava_flowing", "default:lava_source", "default:jungletree",
|
||||||
"default:water_flowing", "default:water_source", "default:ice",
|
"default:water_flowing", "default:water_source", "default:ice",
|
||||||
"default:river_water_flowing", "default:river_water_source",
|
"default:river_water_flowing",
|
||||||
"default:desert_sand", "default:desert_stone", "default:snowblock"
|
"default:desert_sand", "default:desert_stone", "default:snowblock"
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -200,7 +200,7 @@ local get_ambience = function(player)
|
|||||||
num_desert = (cn["default:desert_sand"] or 0) + (cn["default:desert_stone"] or 0)
|
num_desert = (cn["default:desert_sand"] or 0) + (cn["default:desert_stone"] or 0)
|
||||||
num_snow = (cn["default:snowblock"] or 0)
|
num_snow = (cn["default:snowblock"] or 0)
|
||||||
num_jungletree = (cn["default:jungletree"] or 0)
|
num_jungletree = (cn["default:jungletree"] or 0)
|
||||||
num_river = (cn["default:river_water_source"] or 0) + (cn["default:river_water_flowing"] or 0)
|
num_river = (cn["default:river_water_flowing"] or 0)
|
||||||
num_ice = (cn["default:ice"] or 0)
|
num_ice = (cn["default:ice"] or 0)
|
||||||
--[[
|
--[[
|
||||||
print (
|
print (
|
||||||
|
BIN
textures/trans.png
Normal file
BIN
textures/trans.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 75 B |
Loading…
Reference in New Issue
Block a user