1
0
mirror of https://github.com/D00Med/scifi_nodes.git synced 2024-06-29 22:46:07 +02:00
scifi_nodes/init.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

34 lines
722 B
Lua

--scifi_nodes by D00Med
scifi_nodes = {}
local MP = minetest.get_modpath("scifi_nodes")
dofile(MP.."/sounds.lua")
if minetest.get_modpath("xpanes") then
dofile(MP.."/panes.lua")
end
dofile(MP.."/common.lua")
if minetest.get_modpath("default") then
-- only load builder and chest if the default mod is available
-- the formspecs depend on it
dofile(MP.."/builder.lua")
dofile(MP.."/chest.lua")
end
dofile(MP.."/plants.lua")
dofile(MP.."/nodes.lua")
dofile(MP.."/doors.lua")
dofile(MP.."/switch.lua")
dofile(MP.."/protected_switch.lua")
dofile(MP.."/nodeboxes.lua")
dofile(MP.."/palm_scanner.lua")
dofile(MP.."/digicode.lua")
dofile(MP.."/models.lua")
dofile(MP.."/octagon_panes.lua")
dofile(MP.."/crafts.lua")