1
0
mirror of https://github.com/D00Med/scifi_nodes.git synced 2024-11-10 20:20:35 +01:00
scifi_nodes/sounds.lua
Buckaroo Banzai e40f9747b0
Opt-depend on all mods (#58)
* move "dye" to optional depends and disable recipes if default or dye are not available
* replace default.LIGHT_MAX with minetest.LIGHT_MAX
* add sound-switch and use default if available
* enable crate and builder only if default mod is available
* move default mod to opt-depends and use screwdriver only if available

Co-authored-by: BuckarooBanzay <BuckarooBanzay@users.noreply.github.com>
2021-08-27 09:22:15 +02:00

29 lines
742 B
Lua

-- sound definitions
function scifi_nodes.node_sound_wood_defaults()
if minetest.get_modpath("default") then
-- default game
return default.node_sound_wood_defaults()
end
end
function scifi_nodes.node_sound_glass_defaults()
if minetest.get_modpath("default") then
-- default game
return default.node_sound_glass_defaults()
end
end
function scifi_nodes.node_sound_metal_defaults()
if minetest.get_modpath("default") then
-- default game
return default.node_sound_metal_defaults()
end
end
function scifi_nodes.node_sound_stone_defaults()
if minetest.get_modpath("default") then
-- default game
return default.node_sound_stone_defaults()
end
end