2016-04-01 20:02:19 -04:00
|
|
|
-- Minetest 0.4.7 mod: technic
|
|
|
|
-- namespace: technic
|
|
|
|
-- (c) 2012-2013 by RealBadAngel <mk@realbadangel.pl>
|
|
|
|
|
2016-04-01 22:10:20 -04:00
|
|
|
local load_start = os.clock()
|
|
|
|
|
2016-04-01 20:02:19 -04:00
|
|
|
technic = rawget(_G, "technic") or {}
|
Updated several mods for Minetest 0.4.16
castles modpack, areas, biome_lib, blox, boost_cart, plantlife modpack
caverealms, coloredwood, concrete, currency, farming redo, home decor,
ilights, mesecons, moreores, pipeworks, signs_lib, technic, unified inventory
unified bricks, unified dyes, worldedit, and xban2
2017-06-16 18:12:21 -04:00
|
|
|
technic.creative_mode = minetest.settings:get_bool("creative_mode")
|
2016-04-01 20:02:19 -04:00
|
|
|
|
|
|
|
|
|
|
|
local modpath = minetest.get_modpath("technic")
|
|
|
|
technic.modpath = modpath
|
|
|
|
|
2016-04-01 22:10:20 -04:00
|
|
|
|
2016-04-01 20:02:19 -04:00
|
|
|
-- Boilerplate to support intllib
|
2016-04-01 22:10:20 -04:00
|
|
|
if rawget(_G, "intllib") then
|
2016-04-01 20:02:19 -04:00
|
|
|
technic.getter = intllib.Getter()
|
|
|
|
else
|
|
|
|
technic.getter = function(s,a,...)if a==nil then return s end a={a,...}return s:gsub("(@?)@(%(?)(%d+)(%)?)",function(e,o,n,c)if e==""then return a[tonumber(n)]..(o==""and c or"")else return"@"..o..n..c end end) end
|
|
|
|
end
|
|
|
|
local S = technic.getter
|
|
|
|
|
|
|
|
-- Read configuration file
|
|
|
|
dofile(modpath.."/config.lua")
|
|
|
|
|
|
|
|
-- Helper functions
|
|
|
|
dofile(modpath.."/helpers.lua")
|
|
|
|
|
|
|
|
-- Items
|
|
|
|
dofile(modpath.."/items.lua")
|
|
|
|
|
|
|
|
-- Craft recipes for items
|
|
|
|
dofile(modpath.."/crafts.lua")
|
|
|
|
|
|
|
|
-- Register functions
|
|
|
|
dofile(modpath.."/register.lua")
|
|
|
|
|
2017-02-02 21:36:23 -05:00
|
|
|
-- Radiation
|
|
|
|
dofile(modpath.."/radiation.lua")
|
|
|
|
|
2016-04-01 20:02:19 -04:00
|
|
|
-- Machines
|
|
|
|
dofile(modpath.."/machines/init.lua")
|
|
|
|
|
|
|
|
-- Tools
|
|
|
|
dofile(modpath.."/tools/init.lua")
|
|
|
|
|
|
|
|
-- Aliases for legacy node/item names
|
|
|
|
dofile(modpath.."/legacy.lua")
|
|
|
|
|
Updated several mods for Minetest 0.4.16
castles modpack, areas, biome_lib, blox, boost_cart, plantlife modpack
caverealms, coloredwood, concrete, currency, farming redo, home decor,
ilights, mesecons, moreores, pipeworks, signs_lib, technic, unified inventory
unified bricks, unified dyes, worldedit, and xban2
2017-06-16 18:12:21 -04:00
|
|
|
if minetest.settings:get_bool("log_mods") then
|
2016-04-01 20:02:19 -04:00
|
|
|
print(S("[Technic] Loaded in %f seconds"):format(os.clock() - load_start))
|
|
|
|
end
|
|
|
|
|