mirror of
https://github.com/mt-mods/xcompat.git
synced 2024-12-22 17:10:18 +01:00
forgotten lands sounds support (#25)
This commit is contained in:
parent
b9b6d49619
commit
a3ef7ba4a4
@ -1,4 +1,3 @@
|
||||
|
||||
globals = {
|
||||
"minetest",
|
||||
"xcompat",
|
||||
@ -14,4 +13,5 @@ read_globals = {
|
||||
"fl_trees",
|
||||
"hades_sounds",
|
||||
"rp_sounds",
|
||||
"sounds",
|
||||
}
|
||||
|
@ -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
|
||||
|
||||
|
2
mod.conf
2
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
|
||||
|
63
src/sounds/forgotten_lands.lua
Normal file
63
src/sounds/forgotten_lands.lua
Normal 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
|
Loading…
Reference in New Issue
Block a user