2021-04-29 14:23:52 -07:00
|
|
|
|
|
|
|
alternode = {}
|
2021-05-14 18:01:05 -07:00
|
|
|
alternode.modname = core.get_current_modname()
|
|
|
|
alternode.modpath = core.get_modpath(alternode.modname)
|
2021-04-29 14:23:52 -07:00
|
|
|
|
2021-05-17 16:05:58 -07:00
|
|
|
function alternode.log(lvl, msg)
|
|
|
|
core.log(lvl, "[" .. alternode.modname .. "] " .. msg)
|
|
|
|
end
|
|
|
|
|
|
|
|
|
2021-05-14 18:01:05 -07:00
|
|
|
local scripts = {
|
|
|
|
"api",
|
|
|
|
"commands",
|
2021-05-14 18:48:18 -07:00
|
|
|
"formspec",
|
2021-05-16 09:25:19 -07:00
|
|
|
"tools",
|
2021-05-16 18:44:35 -07:00
|
|
|
"crafts",
|
2021-05-14 18:01:05 -07:00
|
|
|
}
|
2021-05-02 02:45:12 -07:00
|
|
|
|
2021-05-14 18:01:05 -07:00
|
|
|
for _, script in ipairs(scripts) do
|
|
|
|
dofile(alternode.modpath .. "/" .. script .. ".lua")
|
2021-04-29 14:23:52 -07:00
|
|
|
end
|