forgotten lands sounds support (#25)

This commit is contained in:
wsor4035 2024-05-26 14:01:49 -04:00 committed by GitHub
parent b9b6d49619
commit a3ef7ba4a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 66 additions and 2 deletions

View File

@ -1,4 +1,3 @@
globals = {
"minetest",
"xcompat",
@ -14,4 +13,5 @@ read_globals = {
"fl_trees",
"hades_sounds",
"rp_sounds",
"sounds",
}

View File

@ -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

View File

@ -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

View File

@ -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