Very nice :) - I did something sort of like this recently although left it bundled in with my base game. Not sure if you want to add:
-- Grass---------node_sound_grass()
-- Grass Dry---node_sound_grass_dry()
-- Kelp-----------node_sound_kelp()
-- Coral----------node_sound_coral()
I found those have semi-custom levels etc, they were set directly against the nodes as sort of overrides to base sounds, I pulled them out as I wanted a sort of generic base sound set I could use easily. Hopefully my settings below make sense more than happy if you want to add them or not also a link to my git version of sounds \/:
(
https://github.com/sirrobzeroone/minete ... sic_sounds)
note - mtg_basic_sounds.node_dug_place_sound = sounds.node
Code: Select all
function mtg_basic_sounds.node_sound_grass(tbl_sounds)
tbl_sounds = tbl_sounds or {}
tbl_sounds.footstep = tbl_sounds.footstep or
{name = "default_grass_footstep", gain = 0.25}
tbl_sounds.dug = tbl_sounds.dug or
{name = "default_dirt_footstep", gain = 1.0}
tbl_sounds.place = tbl_sounds.place or
{name = "default_place_node", gain = 1.0}
mtg_basic_sounds.node_dug_place_sound(tbl_sounds)
return tbl_sounds
end
function mtg_basic_sounds.node_sound_grass_dry(tbl_sounds)
tbl_sounds = tbl_sounds or {}
tbl_sounds.footstep = tbl_sounds.footstep or
{name = "default_grass_footstep", gain = 0.4}
tbl_sounds.dug = tbl_sounds.dug or
{name = "default_dirt_footstep", gain = 1.0}
tbl_sounds.place = tbl_sounds.place or
{name = "default_place_node", gain = 1.0}
mtg_basic_sounds.node_dug_place_sound(tbl_sounds)
return tbl_sounds
end
function mtg_basic_sounds.node_sound_kelp(tbl_sounds)
tbl_sounds = tbl_sounds or {}
tbl_sounds.footstep = tbl_sounds.footstep or
{name = "default_sand_footstep", gain = 0.05}
tbl_sounds.dig = tbl_sounds.dig or
{name = "default_dig_snappy", gain = 0.2}
tbl_sounds.dug = tbl_sounds.dug or
{name = "default_grass_footstep", gain = 0.25}
tbl_sounds.place = tbl_sounds.place or
{name = "default_place_node", gain = 1.0}
return tbl_sounds
end
function mtg_basic_sounds.node_sound_coral(tbl_sounds)
tbl_sounds = tbl_sounds or {}
tbl_sounds.footstep = tbl_sounds.footstep or
{name = "default_hard_footstep", gain = 0.3}
tbl_sounds.dig = tbl_sounds.dig or
{name = "default_dig_snappy", gain = 0.2}
tbl_sounds.dug = tbl_sounds.dug or
{name = "default_grass_footstep", gain = 0.25}
tbl_sounds.place = tbl_sounds.place or
{name = "default_place_node_hard", gain = 1.0}
return tbl_sounds
end
Also did you get Paramats changes here?
https://github.com/minetest/minetest_ga ... f12a06266c
Thanks for pulling these out as its the sounds I am finding the most useful from MTG :).