celevator-cd2025/init.lua
cheapie 571bdaf927 Add generic keyswitch
Can trigger any input the mesecons input modules can, useful for requiring a "key" (area access) to call an elevator or to lock/unlock a floor
2024-08-28 19:05:35 -05:00

31 lines
508 B
Lua

local components = {
"framework",
"car",
"doors",
"drive_null",
"drive_entity",
"controller",
"callbuttons",
"pilantern",
"fs1switch",
"dispatcher",
"dbdkiosk",
"genericswitch",
"decorations",
"crafts",
}
local integrations = {
"laptop",
"mesecons",
"digilines",
}
for _,i in ipairs(integrations) do
if minetest.get_modpath(i) then table.insert(components,i) end
end
for _,v in ipairs(components) do
dofile(string.format("%s%s%s.lua",minetest.get_modpath("celevator"),DIR_DELIM,v))
end