Skip to content

Commit

Permalink
add support for forgotten lands sounds
Browse files Browse the repository at this point in the history
  • Loading branch information
wsor4035 committed May 26, 2024
1 parent f5c848a commit f9d0301
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .luacheckrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

globals = {
"minetest",
"xcompat",
Expand All @@ -14,4 +13,5 @@ read_globals = {
"fl_trees",
"hades_sounds",
"rp_sounds",
"sounds",
}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion mod.conf
Original file line number Diff line number Diff line change
@@ -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
63 changes: 63 additions & 0 deletions src/sounds/forgotten_lands.lua
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f9d0301

Please sign in to comment.