2022-06-13 06:10:36 +02:00
|
|
|
local modname = minetest.get_current_modname()
|
|
|
|
local modpath = minetest.get_modpath(modname)
|
|
|
|
local S = minetest.get_translator(modname)
|
2014-03-09 10:38:18 +01:00
|
|
|
|
2022-06-13 06:10:36 +02:00
|
|
|
stairsplus = {
|
|
|
|
version = {3, 0, 0},
|
|
|
|
fork = "minetest_mods",
|
2014-03-09 10:38:18 +01:00
|
|
|
|
2022-06-13 06:10:36 +02:00
|
|
|
modname = modname,
|
|
|
|
modpath = modpath,
|
|
|
|
|
|
|
|
S = S,
|
|
|
|
|
|
|
|
has = {
|
2022-06-17 01:32:55 +02:00
|
|
|
default = minetest.get_modpath("default"),
|
2022-06-17 02:46:09 +02:00
|
|
|
i3 = minetest.get_modpath("i3"),
|
2022-06-13 06:10:36 +02:00
|
|
|
stairs = minetest.get_modpath("stairs"),
|
2022-06-17 02:46:09 +02:00
|
|
|
unified_inventory = minetest.get_modpath("unified_inventory"),
|
2022-06-13 06:10:36 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
log = function(level, messagefmt, ...)
|
|
|
|
return minetest.log(level, ("[%s] %s"):format(modname, messagefmt:format(...)))
|
|
|
|
end,
|
|
|
|
|
|
|
|
dofile = function(...)
|
|
|
|
return dofile(table.concat({modpath, ...}, DIR_DELIM) .. ".lua")
|
|
|
|
end,
|
|
|
|
}
|
2014-03-09 10:38:18 +01:00
|
|
|
|
2022-06-19 01:23:11 +02:00
|
|
|
-- please don't change the order in which things are loaded, without understanding why they're ordered like this
|
2022-06-14 01:11:20 +02:00
|
|
|
stairsplus.dofile("settings")
|
|
|
|
stairsplus.dofile("util")
|
2022-06-17 02:46:09 +02:00
|
|
|
|
2022-06-14 01:11:20 +02:00
|
|
|
stairsplus.dofile("api", "init")
|
2022-06-17 02:46:09 +02:00
|
|
|
|
2022-06-14 01:11:20 +02:00
|
|
|
stairsplus.dofile("shapes", "init")
|
2022-06-16 01:18:11 +02:00
|
|
|
stairsplus.dofile("groups", "init")
|
2022-09-22 17:28:55 +02:00
|
|
|
|
|
|
|
if stairsplus.settings.crafting_schemata_enabled then
|
|
|
|
stairsplus.dofile("craft_schemas", "init")
|
|
|
|
end
|
2022-06-16 01:18:11 +02:00
|
|
|
|
|
|
|
stairsplus.dofile("resources", "init")
|
2022-06-14 01:11:20 +02:00
|
|
|
stairsplus.dofile("circular_saw")
|
2022-06-16 01:18:11 +02:00
|
|
|
|
2022-06-27 17:47:36 +02:00
|
|
|
stairsplus.dofile("compat", "init")
|
2022-06-20 23:29:13 +02:00
|
|
|
|
|
|
|
stairsplus.dofile("aliases")
|