Add files via upload

This commit is contained in:
Skandarella 2022-12-12 12:34:12 +01:00 committed by GitHub
commit 1ddb6a1b66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 754 additions and 0 deletions

32
LICENSE Normal file
View File

@ -0,0 +1,32 @@
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Ambience mod Copyright (c) 2022 TenPlus1
Modified Code by Liil/Wilhelmine/Skandarella (c) 2022 under (MIT) License (c) 2022
All sounds are from Freesound (www.freesound.org) and licensed under Plublic Domain or Creative Commons. Thanks for the sounds to:
Connum, symphoid, speedenza, mensageirocs, univ-lyon3, jalastram, kinoton, retroguy23, reinsamba, straget, vykroft, inspectorj, klankbeeld,
soundofsong, l-finck, folkart, felix_blume, Snipes3000, supersciri, juskiddink, qubodup, haysmit, inchadney, jaromarsalek, danjocross,
samarobryn, edufigueres, shortrecord, arnaud, digifishmusic, urupin, sonatorio, genghis-attenborough, eric5335, szegvari, samsterbirdies,
electroviolence, zixem, szegvari, iampagan and zouliangqaz.

7
depends.txt Normal file
View File

@ -0,0 +1,7 @@
default
ambience
livingfloatlands?
livingdesert?
livingjungle?
livingcaves?
naturalbiomes?

1
description.txt Normal file
View File

@ -0,0 +1 @@
Adds ambient sounds to the landscapes of Living Floatlands, Living Desert, Living Jungle, Living Caves and Natural Biomes

24
init.lua Normal file
View File

@ -0,0 +1,24 @@
local modname = "wilhelminessounds"
local modpath = minetest.get_modpath(modname)
local mg_name = minetest.get_mapgen_setting("mg_name")
-- Load support for intllib.
local path = minetest.get_modpath(minetest.get_current_modname()) .. "/"
local S = minetest.get_translator and minetest.get_translator("wilhelminessounds") or
dofile(path .. "intllib.lua")
-- plants
dofile(path .. "livingcavessounds.lua") --
dofile(path .. "livingdesertsounds.lua") --
dofile(path .. "livingfloatlandssounds.lua") --
dofile(path .. "livingjunglesounds.lua") --
dofile(path .. "naturalbiomessounds.lua") --
print (S("[MOD] Sounds loaded"))

3
intllib.lua Normal file
View File

@ -0,0 +1,3 @@
-- Support for the old multi-load method
dofile(minetest.get_modpath("intllib").."/init.lua")

92
livingcavessounds.lua Normal file
View File

@ -0,0 +1,92 @@
ambience.add_set("bacteriacave", {
frequency = 25,
nodes = {"livingcaves:bacteriacave_bottom"},
sounds = {
{name = "livingcaves_bacteriacave", length = 12, ephemeral = true},
{name = "livingcaves_bacteriacave2", length = 9, ephemeral = true},
{name = "livingcaves_bacteriacave3", length = 12, ephemeral = true},
{name = "livingcaves_bacteriacave4", length = 14, ephemeral = true},
{name = "livingcaves_bacteriacave5", length = 11, ephemeral = true},
{name = "livingcaves_bacteriacave6", length = 25, ephemeral = true},
},
nodes = {"livingcaves:bacteriacave_bottom"},
sound_check = function(def)
local c = (def.totals["livingcaves:bacteriacave_bottom"] or 0)
if c > 5 then
return "bacteriacave"
end
end
})
ambience.add_set("dripstonecave", {
frequency = 30,
nodes = {"livingcaves:dripstonecave_bottom"},
sounds = {
{name = "livingcaves_dripstone", length = 6, ephemeral = true},
{name = "livingcaves_dripstone2", length = 5, ephemeral = true},
{name = "livingcaves_dripstone3", length = 7, ephemeral = true},
{name = "livingcaves_dripstone4", length = 11, ephemeral = true},
{name = "livingcaves_dripstone5", length = 20, ephemeral = true},
{name = "livingcaves_dripstone6", length = 4, ephemeral = true},
{name = "livingcaves_dripstone7", length = 4, ephemeral = true},
},
nodes = {"livingcaves:dripstonecave_bottom"},
sound_check = function(def)
local c = (def.totals["livingcaves:dripstonecave_bottom"] or 0)
if c > 5 then
return "dripstonecave"
end
end
})
ambience.add_set("icecave", {
frequency = 30,
nodes = {"livingcaves:icecave_ice"},
sounds = {
{name = "livingcaves_icecave", length = 15, ephemeral = true},
{name = "livingcaves_icecave2", length = 22, ephemeral = true},
{name = "livingcaves_icecave33", length = 8, ephemeral = true},
},
nodes = {"livingcaves:icecave_ice"},
sound_check = function(def)
local c = (def.totals["livingcaves:icecave_ice"] or 0)
if c > 5 then
return "icecave"
end
end
})
ambience.add_set("mushcave", {
frequency = 30,
nodes = {"livingcaves:mushcave_bottom"},
sounds = {
{name = "livingcaves_mushcave", length = 10, ephemeral = true},
{name = "livingcaves_mushcave2", length = 14, ephemeral = true},
{name = "livingcaves_mushcave3", length = 8, ephemeral = true},
{name = "livingcaves_mushcave4", length = 14, ephemeral = true},
{name = "livingcaves_mushcave5", length = 10, ephemeral = true},
{name = "livingcaves_mushcave6", length = 10, ephemeral = true},
{name = "livingcaves_mushcave7", length = 8, ephemeral = true},
{name = "livingcaves_mushcave8", length = 12, ephemeral = true},
},
nodes = {"livingcaves:mushcave_bottom"},
sound_check = function(def)
local c = (def.totals["livingcaves:mushcave_bottom"] or 0)
if c > 5 then
return "mushcave"
end
end
})

83
livingdesertsounds.lua Normal file
View File

@ -0,0 +1,83 @@
ambience.add_set("livingdesert_desert_day", {
frequency = 45,
nodes = {"livingdesert:coldsteppe_ground"},
sounds = {
{name = "livingdesert_desertsound6", length = 12, ephemeral = true},
{name = "livingdesert_desertsound2", length = 6, ephemeral = true},
{name = "livingdesert_desertsound3", length = 12, ephemeral = true},
},
nodes = {"livingdesert:coldsteppe_ground"},
sound_check = function(def)
local c = (def.totals["livingdesert:coldsteppe_ground"] or 0)
if (def.tod > 0.2 and def.tod < 0.8)
and c > 5 then
return "livingdesert_desert_day"
end
end
})
ambience.add_set("livingdesert_desert_night", {
frequency = 45,
nodes = {"livingdesert:coldsteppe_ground"},
sounds = {
{name = "livingdesert_desertsound5", length = 4, ephemeral = true},
{name = "livingdesert_desertsound4", length = 6, ephemeral = true},
{name = "livingdesert_desertsound3", length = 12, ephemeral = true},
{name = "wilhelminessounds_nighttime", length = 21, ephemeral = true},
},
nodes = {"livingdesert:coldsteppe_ground"},
sound_check = function(def)
local c = (def.totals["livingdesert:coldsteppe_ground"] or 0)
if (def.tod < 0.2 or def.tod > 0.8) and c > 5 then
return "livingdesert_desert_night"
end
end
})
ambience.add_set("livingdesert_steppe", {
frequency = 45,
nodes = {"livingdesert:coldsteppe_ground2"},
sounds = {
{name = "livingdesert_desertsound1", length = 15, ephemeral = true},
{name = "livingdesert_desertsound2", length = 6, ephemeral = true},
{name = "livingdesert_desertsound3", length = 12, ephemeral = true},
},
nodes = {"livingdesert:coldsteppe_ground2"},
sound_check = function(def)
local c = (def.totals["livingdesert:coldsteppe_ground2"] or 0)
if (def.tod > 0.2 and def.tod < 0.8)
and c > 5 then
return "livingdesert_steppe"
end
end
})
ambience.add_set("livingdesert_steppe_night", {
frequency = 45,
nodes = {"livingdesert:coldsteppe_ground2"},
sounds = {
{name = "livingdesert_desertsound5", length = 4, ephemeral = true},
{name = "livingdesert_desertsound4", length = 6, ephemeral = true},
{name = "livingdesert_desertsound3", length = 12, ephemeral = true},
{name = "wilhelminessounds_nighttime", length = 21, ephemeral = true},
},
nodes = {"livingdesert:coldsteppe_ground2"},
sound_check = function(def)
local c = (def.totals["livingdesert:coldsteppe_ground2"] or 0)
if (def.tod < 0.2 or def.tod > 0.8) and c > 5 then
return "livingdesert_steppe_night"
end
end
})

170
livingfloatlandssounds.lua Normal file
View File

@ -0,0 +1,170 @@
ambience.add_set("livingfloatlands_coldsteppe_day", {
frequency = 45,
nodes = {"livingfloatlands:coldsteppe_litter"},
sounds = {
{name = "livingfloatlands_coldsteppe", length = 10, ephemeral = true},
{name = "livingfloatlands_coldsteppe2", length = 4, ephemeral = true},
{name = "livingfloatlands_coldsteppe3", length = 13, ephemeral = true},
},
nodes = {"livingfloatlands:coldsteppe_litter"},
sound_check = function(def)
local c = (def.totals["livingfloatlands:coldsteppe_litter"] or 0)
if (def.tod > 0.2 and def.tod < 0.8)
and c > 5 then
return "livingfloatlands_coldsteppe_day"
end
end
})
ambience.add_set("livingfloatlands_coldsteppe_night", {
frequency = 45,
nodes = {"livingfloatlands:coldsteppe_litter"},
sounds = {
{name = "livingfloatlands_coldsteppe4", length = 7, ephemeral = true},
{name = "livingfloatlands_coldsteppe5", length = 14, ephemeral = true},
{name = "livingfloatlands_coldsteppe6", length = 10, ephemeral = true},
{name = "wilhelminessounds_owlandwind", length = 8, ephemeral = true},
{name = "wilhelminessounds_owlandwind2", length = 5, ephemeral = true},
},
nodes = {"livingfloatlands:coldsteppe_litter"},
sound_check = function(def)
local c = (def.totals["livingfloatlands:coldsteppe_litter"] or 0)
if (def.tod < 0.2 or def.tod > 0.8) and c > 5 then
return "livingfloatlands_coldsteppe_night"
end
end
})
ambience.add_set("livingfloatlands_giantforest_day", {
frequency = 45,
nodes = {"livingfloatlands:giantforest_litter"},
sounds = {
{name = "livingfloatlands_giantforest", length = 7, ephemeral = true},
{name = "livingfloatlands_giantforest2", length = 4, ephemeral = true},
{name = "livingfloatlands_giantforest3", length = 9, ephemeral = true},
{name = "livingfloatlands_giantforest4", length = 5, ephemeral = true},
{name = "livingfloatlands_giantforest5", length = 5, ephemeral = true},
},
nodes = {"livingfloatlands:giantforest_litter"},
sound_check = function(def)
local c = (def.totals["livingfloatlands:giantforest_litter"] or 0)
if (def.tod > 0.2 and def.tod < 0.8)
and c > 5 then
return "livingfloatlands_giantforest_day"
end
end
})
ambience.add_set("livingfloatlands_giantforest_night", {
frequency = 45,
nodes = {"livingfloatlands:giantforest_litter"},
sounds = {
{name = "livingfloatlands_giantforest6", length = 17, ephemeral = true},
{name = "livingfloatlands_giantforest7", length = 12, ephemeral = true},
{name = "livingfloatlands_giantforest8", length = 10, ephemeral = true},
},
nodes = {"livingfloatlands:giantforest_litter"},
sound_check = function(def)
local c = (def.totals["livingfloatlands:giantforest_litter"] or 0)
if (def.tod < 0.2 or def.tod > 0.8) and c > 5 then
return "livingfloatlands_giantforest_night"
end
end
})
ambience.add_set("livingfloatlands_paleodesert_day", {
frequency = 35,
nodes = {"livingfloatlands:paleodesert_litter"},
sounds = {
{name = "livingfloatlands_paleodesert3", length = 7, ephemeral = true},
{name = "livingdesert_desertsound1", length = 15, ephemeral = true},
{name = "livingdesert_desertsound2", length = 6, ephemeral = true},
},
nodes = {"livingfloatlands:paleodesert_litter"},
sound_check = function(def)
local c = (def.totals["livingfloatlands:paleodesert_litter"] or 0)
if (def.tod > 0.2 and def.tod < 0.8)
and c > 5 then
return "livingfloatlands_paleodesert_day"
end
end
})
ambience.add_set("livingfloatlands_paleodesert_night", {
frequency = 40,
nodes = {"livingfloatlands:paleodesert_litter"},
sounds = {
{name = "livingfloatlands_paleodesert2", length = 4, ephemeral = true},
{name = "livingfloatlands_paleodesert3", length = 7, ephemeral = true},
{name = "wilhelminessounds_cricket", length = 14, ephemeral = true},
{name = "livingfloatlands_paleodesert", length = 5, ephemeral = true},
},
nodes = {"livingfloatlands:paleodesert_litter"},
sound_check = function(def)
local c = (def.totals["livingfloatlands:paleodesert_litter"] or 0)
if (def.tod < 0.2 or def.tod > 0.8) and c > 5 then
return "livingfloatlands_paleodesert_night"
end
end
})
ambience.add_set("livingfloatlands_paleojungle_day", {
frequency = 45,
nodes = {"livingfloatlands:paleojungle_litter"},
sounds = {
{name = "livingfloatlands_paleojungle", length = 13, ephemeral = true},
{name = "livingfloatlands_paleojungle2", length = 5, ephemeral = true},
{name = "livingfloatlands_paleojungle3", length = 4, ephemeral = true},
},
nodes = {"livingfloatlands:paleojungle_litter"},
sound_check = function(def)
local c = (def.totals["livingfloatlands:paleojungle_litter"] or 0)
if (def.tod > 0.2 and def.tod < 0.8)
and c > 5 then
return "livingfloatlands_paleojungle_day"
end
end
})
ambience.add_set("livingfloatlands_paleojungle_night", {
frequency = 35,
nodes = {"livingfloatlands:paleojungle_litter"},
sounds = {
{name = "livingfloatlands_paleojungle4", length = 24, ephemeral = true},
{name = "wilhelminessounds_cricket2", length = 16, ephemeral = true},
{name = "wilhelminessounds_nighttime", length = 21, ephemeral = true},
},
nodes = {"livingfloatlands:paleojungle_litter"},
sound_check = function(def)
local c = (def.totals["livingfloatlands:paleojungle_litter"] or 0)
if (def.tod < 0.2 or def.tod > 0.8) and c > 5 then
return "livingfloatlands_paleojungle_night"
end
end
})

42
livingjunglesounds.lua Normal file
View File

@ -0,0 +1,42 @@
ambience.add_set("livingjungle_day", {
frequency = 60,
nodes = {"livingjungle:jungleground"},
sounds = {
{name = "livingjungle_jungleday", length = 17, ephemeral = true},
{name = "livingjungle_jungleday2", length = 35, ephemeral = true},
{name = "livingjungle_jungleday3", length = 5, ephemeral = true},
{name = "livingjungle_jungleday4", length = 1, ephemeral = true},
},
nodes = {"livingjungle:jungleground"},
sound_check = function(def)
local c = (def.totals["livingjungle:jungleground"] or 0)
if (def.tod > 0.2 and def.tod < 0.8)
and c > 5 then
return "livingjungle_day"
end
end
})
ambience.add_set("livingjungle_night", {
frequency = 60,
nodes = {"livingjungle:jungleground"},
sounds = {
{name = "livingjungle_junglenite", length = 28, ephemeral = true},
{name = "livingjungle_junglenite2", length = 8, ephemeral = true},
{name = "livingjungle_junglenite3", length = 2, ephemeral = true},
{name = "livingjungle_junglenite4", length = 2, ephemeral = true},
},
nodes = {"livingjungle:jungleground"},
sound_check = function(def)
local c = (def.totals["livingjungle:jungleground"] or 0)
if (def.tod < 0.2 or def.tod > 0.8) and c > 5 then
return "livingjungle_night"
end
end
})

2
mod.conf Normal file
View File

@ -0,0 +1,2 @@
name = wilhelminessounds

298
naturalbiomessounds.lua Normal file
View File

@ -0,0 +1,298 @@
ambience.add_set("naturalbiomes_alderswamp_day", {
frequency = 55,
nodes = {"naturalbiomes:alderswamp_litter"},
sounds = {
{name = "naturalbiomes_alderswamp5", length = 7, ephemeral = true},
{name = "naturalbiomes_alderswamp4", length = 9, ephemeral = true},
{name = "naturalbiomes_alderswamp3", length = 5, ephemeral = true},
},
nodes = {"naturalbiomes:alderswamp_litter"},
sound_check = function(def)
local c = (def.totals["naturalbiomes:alderswamp_litter"] or 0)
if (def.tod > 0.2 and def.tod < 0.8)
and c > 5 then
return "naturalbiomes_alderswamp_day"
end
end
})
ambience.add_set("naturalbiomes_alderswamp_night", {
frequency = 55,
nodes = {"naturalbiomes:alderswamp_litter"},
sounds = {
{name = "wilhelminessounds_nighttime2", length = 15, ephemeral = true},
{name = "naturalbiomes_alderswamp", length = 13, ephemeral = true},
{name = "naturalbiomes_alderswamp2", length = 6, ephemeral = true},
},
nodes = {"naturalbiomes:alderswamp_litter"},
sound_check = function(def)
local c = (def.totals["naturalbiomes:alderswamp_litter"] or 0)
if (def.tod < 0.2 or def.tod > 0.8) and c > 5 then
return "naturalbiomes_alderswamp_night"
end
end
})
ambience.add_set("naturalbiomes_alpine_day", {
frequency = 50,
nodes = {"naturalbiomes:alpine_litter"},
sounds = {
{name = "naturalbiomes_alpine", length = 3, ephemeral = true},
{name = "naturalbiomes_alpine2", length = 4, ephemeral = true},
{name = "naturalbiomes_alpine3", length = 4, ephemeral = true},
{name = "naturalbiomes_alpine4", length = 10, ephemeral = true},
},
nodes = {"naturalbiomes:alpine_litter"},
sound_check = function(def)
local c = (def.totals["naturalbiomes:alpine_litter"] or 0)
if (def.tod > 0.2 and def.tod < 0.8)
and c > 5 then
return "naturalbiomes_alpine_day"
end
end
})
ambience.add_set("naturalbiomes_alpine_night", {
frequency = 50,
nodes = {"naturalbiomes:alpine_litter"},
sounds = {
{name = "wilhelminessounds_cricket2", length = 16, ephemeral = true},
{name = "wilhelminessounds_nighttime2", length = 15, ephemeral = true},
{name = "wilhelminessounds_owl", length = 8, ephemeral = true},
},
nodes = {"naturalbiomes:alpine_litter"},
sound_check = function(def)
local c = (def.totals["naturalbiomes:alpine_litter"] or 0)
if (def.tod < 0.2 or def.tod > 0.8) and c > 5 then
return "naturalbiomes_alpine_night"
end
end
})
ambience.add_set("naturalbiomes_bambooforest_day", {
frequency = 50,
nodes = {"naturalbiomes:bambooforest_litter"},
sounds = {
{name = "naturalbiomes_bambooforest3", length = 2, ephemeral = true},
{name = "naturalbiomes_bambooforest4", length = 3, ephemeral = true},
{name = "wilhelminessounds_cricket2", length = 16, ephemeral = true},
{name = "wilhelminessounds_cricket", length = 14, ephemeral = true},
},
nodes = {"naturalbiomes:bambooforest_litter"},
sound_check = function(def)
local c = (def.totals["naturalbiomes:bambooforest_litter"] or 0)
if (def.tod > 0.2 and def.tod < 0.8)
and c > 5 then
return "naturalbiomes_bambooforest_day"
end
end
})
ambience.add_set("naturalbiomes_bambooforest_night", {
frequency = 60,
nodes = {"naturalbiomes:bambooforest_litter"},
sounds = {
{name = "naturalbiomes_bambooforest", length = 17, ephemeral = true},
{name = "naturalbiomes_bambooforest2", length = 48, ephemeral = true},
{name = "wilhelminessounds_owl", length = 8, ephemeral = true},
{name = "wilhelminessounds_nighttime", length = 21, ephemeral = true},
},
nodes = {"naturalbiomes:bambooforest_litter"},
sound_check = function(def)
local c = (def.totals["naturalbiomes:bambooforest_litter"] or 0)
if (def.tod < 0.2 or def.tod > 0.8) and c > 5 then
return "naturalbiomes_bambooforest_night"
end
end
})
ambience.add_set("naturalbiomes_heath_day", {
frequency = 55,
nodes = {"naturalbiomes:heath_litter"},
sounds = {
{name = "naturalbiomes_heath3", length = 14, ephemeral = true},
{name = "naturalbiomes_heath4", length = 11, ephemeral = true},
{name = "naturalbiomes_heath5", length = 18, ephemeral = true},
},
nodes = {"naturalbiomes:heath_litter"},
sound_check = function(def)
local c = (def.totals["naturalbiomes:heath_litter"] or 0)
if (def.tod > 0.2 and def.tod < 0.8)
and c > 2 then
return "naturalbiomes_heath_day"
end
end
})
ambience.add_set("naturalbiomes_heath_night", {
frequency = 55,
nodes = {"naturalbiomes:heath_litter"},
sounds = {
{name = "naturalbiomes_heath2", length = 1, ephemeral = true},
{name = "naturalbiomes_heath", length = 2, ephemeral = true},
{name = "wilhelminessounds_owl", length = 8, ephemeral = true},
{name = "wilhelminessounds_nighttime", length = 21, ephemeral = true},
},
nodes = {"naturalbiomes:heath_litter"},
sound_check = function(def)
local c = (def.totals["naturalbiomes:heath_litter"] or 0)
if (def.tod < 0.2 or def.tod > 0.8) and c > 2 then
return "naturalbiomes_heath_night"
end
end
})
ambience.add_set("naturalbiomes_mediterran_day", {
frequency = 50,
nodes = {"naturalbiomes:mediterran_litter"},
sounds = {
{name = "naturalbiomes_mediterran", length = 6, ephemeral = true},
{name = "naturalbiomes_mediterran2", length = 6, ephemeral = true},
{name = "naturalbiomes_mediterran3", length = 8, ephemeral = true},
{name = "naturalbiomes_mediterran4", length = 9, ephemeral = true},
{name = "naturalbiomes_mediterran5", length = 8, ephemeral = true},
},
nodes = {"naturalbiomes:mediterran_litter"},
sound_check = function(def)
local c = (def.totals["naturalbiomes:mediterran_litter"] or 0)
if (def.tod > 0.2 and def.tod < 0.8)
and c > 5 then
return "naturalbiomes_mediterran_day"
end
end
})
ambience.add_set("naturalbiomes_mediterran_night", {
frequency = 50,
nodes = {"naturalbiomes:mediterran_litter"},
sounds = {
{name = "naturalbiomes_mediterran6", length = 5, ephemeral = true},
{name = "wilhelminessounds_nighttime2", length = 15, ephemeral = true},
{name = "wilhelminessounds_nighttime", length = 21, ephemeral = true},
{name = "wilhelminessounds_cricket", length = 14, ephemeral = true},
},
nodes = {"naturalbiomes:mediterran_litter"},
sound_check = function(def)
local c = (def.totals["naturalbiomes:mediterran_litter"] or 0)
if (def.tod < 0.2 or def.tod > 0.8) and c > 5 then
return "naturalbiomes_mediterran_night"
end
end
})
ambience.add_set("naturalbiomes_outback_day", {
frequency = 50,
nodes = {"naturalbiomes:outback_litter"},
sounds = {
{name = "naturalbiomes_outback2", length = 4, ephemeral = true},
{name = "naturalbiomes_outback3", length = 11, ephemeral = true},
{name = "naturalbiomes_outback4", length = 5, ephemeral = true},
{name = "naturalbiomes_outback", length = 14, ephemeral = true},
},
nodes = {"naturalbiomes:outback_litter"},
sound_check = function(def)
local c = (def.totals["naturalbiomes:outback_litter"] or 0)
if (def.tod > 0.2 and def.tod < 0.8)
and c > 5 then
return "naturalbiomes_outback_day"
end
end
})
ambience.add_set("naturalbiomes_outback_night", {
frequency = 50,
nodes = {"naturalbiomes:outback_litter"},
sounds = {
{name = "livingfloatlands_paleojungle4", length = 24, ephemeral = true},
{name = "wilhelminessounds_cricket2", length = 16, ephemeral = true},
{name = "wilhelminessounds_cricket", length = 14, ephemeral = true},
},
nodes = {"naturalbiomes:outback_litter"},
sound_check = function(def)
local c = (def.totals["naturalbiomes:outback_litter"] or 0)
if (def.tod < 0.2 or def.tod > 0.8) and c > 5 then
return "naturalbiomes_outback_night"
end
end
})
ambience.add_set("naturalbiomes_wetsavanna_day", {
frequency = 55,
nodes = {"naturalbiomes:savannalitter"},
sounds = {
{name = "naturalbiomes_wetsavanna", length = 10, ephemeral = true},
{name = "naturalbiomes_wetsavanna2", length = 13, ephemeral = true},
{name = "naturalbiomes_wetsavanna5", length = 8, ephemeral = true},
{name = "naturalbiomes_wetsavanna6", length = 8, ephemeral = true},
},
nodes = {"naturalbiomes:savannalitter"},
sound_check = function(def)
local c = (def.totals["naturalbiomes:savannalitter"] or 0)
if (def.tod > 0.2 and def.tod < 0.8)
and c > 5 then
return "naturalbiomes_wetsavanna_day"
end
end
})
ambience.add_set("naturalbiomes_wetsavanna_night", {
frequency = 50,
nodes = {"naturalbiomes:savannalitter"},
sounds = {
{name = "naturalbiomes_wetsavanna3", length = 3, ephemeral = true},
{name = "naturalbiomes_wetsavanna4", length = 1, ephemeral = true},
{name = "wilhelminessounds_cricket2", length = 16, ephemeral = true},
{name = "wilhelminessounds_cricket", length = 14, ephemeral = true},
},
nodes = {"naturalbiomes:savannalitter"},
sound_check = function(def)
local c = (def.totals["naturalbiomes:savannalitter"] or 0)
if (def.tod < 0.2 or def.tod > 0.8) and c > 5 then
return "naturalbiomes_wetsavanna_night"
end
end
})

BIN
screenshot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 974 KiB