mirror of
https://github.com/D00Med/scifi_nodes.git
synced 2024-12-22 16:10:18 +01:00
e40f9747b0
* 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>
29 lines
742 B
Lua
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 |