From a3ef7ba4a4df2e93850d871a62ddd94d1d3f7082 Mon Sep 17 00:00:00 2001 From: wsor4035 <24964441+wsor4035@users.noreply.github.com> Date: Sun, 26 May 2024 14:01:49 -0400 Subject: [PATCH] forgotten lands sounds support (#25) --- .luacheckrc | 2 +- README.md | 1 + mod.conf | 2 +- src/sounds/forgotten_lands.lua | 63 ++++++++++++++++++++++++++++++++++ 4 files changed, 66 insertions(+), 2 deletions(-) create mode 100644 src/sounds/forgotten_lands.lua diff --git a/.luacheckrc b/.luacheckrc index 8e8ff9a..be1d024 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -1,4 +1,3 @@ - globals = { "minetest", "xcompat", @@ -14,4 +13,5 @@ read_globals = { "fl_trees", "hades_sounds", "rp_sounds", + "sounds", } diff --git a/README.md b/README.md index 5661b77..ba388d4 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ See the respective sub apis doc file in /doc for detailed documentation. | Farlands Reloaded | x | x | x | | Exile | x | | | | KSurvive 2 | x | | | +| Forgotten Lands | x | | | For functions see /doc/functions.md for the specifics relating to the function diff --git a/mod.conf b/mod.conf index 5dc21e6..c89ed8b 100644 --- a/mod.conf +++ b/mod.conf @@ -1,3 +1,3 @@ name = xcompat description = Provides cross compatibility between mods and games for sounds and crafting materials. -optional_depends = default, fl_stone, fl_trees, mcl_sounds, hades_sounds, ks_sounds, nodes_nature, fl_topsoil, fl_trees, mcl_core, farming, x_farming +optional_depends = default, fl_stone, fl_trees, mcl_sounds, hades_sounds, ks_sounds, nodes_nature, fl_topsoil, fl_trees, mcl_core, farming, x_farming, sounds diff --git a/src/sounds/forgotten_lands.lua b/src/sounds/forgotten_lands.lua new file mode 100644 index 0000000..96eb7d9 --- /dev/null +++ b/src/sounds/forgotten_lands.lua @@ -0,0 +1,63 @@ +local sound_api = {} + +function sound_api.node_sound_default(soundtable) + return soundtable +end + +function sound_api.node_sound_stone_defaults(soundtable) + return sounds.stone(soundtable) +end + +function sound_api.node_sound_dirt_defaults(soundtable) + return sounds.dirt(soundtable) +end + +function sound_api.node_sound_grass_defaults(soundtable) + return sounds.grass(soundtable) +end + +function sound_api.node_sound_sand_defaults(soundtable) + return sounds.sand(soundtable) +end + +function sound_api.node_sound_gravel_defaults(soundtable) + return sounds.gravel(soundtable) +end + +function sound_api.node_sound_wood_defaults(soundtable) + return sounds.wood(soundtable) +end + +function sound_api.node_sound_leaves_defaults(soundtable) + return soundtable +end + +function sound_api.node_sound_glass_defaults(soundtable) + return sounds.glass(soundtable) +end + +function sound_api.node_sound_ice_defaults(soundtable) + return soundtable +end + +function sound_api.node_sound_metal_defaults(soundtable) + return soundtable +end + +function sound_api.node_sound_water_defaults(soundtable) + return soundtable +end + +function sound_api.node_sound_lava_defaults(soundtable) + return soundtable +end + +function sound_api.node_sound_snow_defaults(soundtable) + return soundtable +end + +function sound_api.node_sound_wool_defaults(soundtable) + return soundtable +end + +return sound_api \ No newline at end of file