Zefram
2014-04-26 e748af927a0ec2b593fa3775b17bd40864ba6f60
commit | author | age
3bc6ca 1 -- Minetest 0.4.7 mod: technic
0ca19d 2 -- namespace: technic
R 3 -- (c) 2012-2013 by RealBadAngel <mk@realbadangel.pl>
82cba9 4
8e03d7 5 technic = {}
R 6
ee0765 7 local load_start = os.clock()
5d470c 8 local modpath = minetest.get_modpath("technic")
S 9 technic.modpath = modpath
10
0a5e52 11 -- Boilerplate to support intllib
be2f30 12 if intllib then
S 13     technic.getter = intllib.Getter()
14 else
15     technic.getter = function(s) return s end
16 end
17 local S = technic.getter
82cba9 18
ee0765 19 -- Read configuration file
82cba9 20 dofile(modpath.."/config.lua")
ee0765 21
S 22 -- Helper functions
e23f87 23 dofile(modpath.."/helpers.lua")
82cba9 24
ee0765 25 -- Items 
82cba9 26 dofile(modpath.."/items.lua")
R 27
ee0765 28 -- Craft recipes for items 
S 29 dofile(modpath.."/crafts.lua")
30
ee5c6c 31 -- Register functions
ee0765 32 dofile(modpath.."/register.lua")
ee5c6c 33
5d470c 34 -- Machines
S 35 dofile(modpath.."/machines/init.lua")
82cba9 36
d49742 37 -- Tools
S 38 dofile(modpath.."/tools/init.lua")
39
ee0765 40 -- Aliases for legacy node/item names
S 41 dofile(modpath.."/legacy.lua")
82cba9 42
ee0765 43 if minetest.setting_get("log_mod") then
be2f30 44     print(S("[Technic] Loaded in %f seconds"):format(os.clock() - load_start))
ee0765 45 end
S 46