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