2013-07-17 21:14:01 +04:00
|
|
|
-- Minetest 0.4.7 mod: technic
|
2013-04-04 03:17:39 +04:00
|
|
|
-- namespace: technic
|
|
|
|
-- (c) 2012-2013 by RealBadAngel <mk@realbadangel.pl>
|
2013-01-27 17:03:46 +04:00
|
|
|
|
2013-06-30 09:12:02 +04:00
|
|
|
technic = {}
|
|
|
|
|
2013-07-17 23:34:35 +04:00
|
|
|
local load_start = os.clock()
|
2013-07-11 20:19:09 +04:00
|
|
|
local modpath = minetest.get_modpath("technic")
|
|
|
|
technic.modpath = modpath
|
|
|
|
|
2013-10-30 21:50:24 +04:00
|
|
|
-- Boilerplate to support intllib
|
2013-10-30 21:45:32 +04:00
|
|
|
if intllib then
|
|
|
|
technic.getter = intllib.Getter()
|
|
|
|
else
|
|
|
|
technic.getter = function(s) return s end
|
|
|
|
end
|
|
|
|
local S = technic.getter
|
2013-07-02 02:03:36 +04:00
|
|
|
|
2013-07-17 23:34:35 +04:00
|
|
|
-- Read configuration file
|
2013-01-27 17:03:46 +04:00
|
|
|
dofile(modpath.."/config.lua")
|
2013-07-17 23:34:35 +04:00
|
|
|
|
|
|
|
-- Helper functions
|
2013-02-22 01:01:49 +04:00
|
|
|
dofile(modpath.."/helpers.lua")
|
2013-01-27 17:03:46 +04:00
|
|
|
|
2013-07-17 23:34:35 +04:00
|
|
|
-- Items
|
2013-01-27 17:03:46 +04:00
|
|
|
dofile(modpath.."/items.lua")
|
|
|
|
|
2013-07-17 23:34:35 +04:00
|
|
|
-- Craft recipes for items
|
|
|
|
dofile(modpath.."/crafts.lua")
|
|
|
|
|
2013-07-02 02:03:36 +04:00
|
|
|
-- Register functions
|
2013-07-17 23:34:35 +04:00
|
|
|
dofile(modpath.."/register.lua")
|
2013-07-11 03:04:58 +04:00
|
|
|
|
2013-07-11 20:19:09 +04:00
|
|
|
-- Machines
|
|
|
|
dofile(modpath.."/machines/init.lua")
|
2013-02-06 18:34:01 +04:00
|
|
|
|
2013-07-11 23:10:14 +04:00
|
|
|
-- Tools
|
|
|
|
dofile(modpath.."/tools/init.lua")
|
|
|
|
|
2013-07-17 23:34:35 +04:00
|
|
|
-- Aliases for legacy node/item names
|
|
|
|
dofile(modpath.."/legacy.lua")
|
|
|
|
|
|
|
|
if minetest.setting_get("log_mod") then
|
2013-10-30 21:45:32 +04:00
|
|
|
print(S("[Technic] Loaded in %f seconds"):format(os.clock() - load_start))
|
2013-07-17 23:34:35 +04:00
|
|
|
end
|
|
|
|
|