MineClone2/mods/ITEMS/mcl_doors/init.lua

16 lines
565 B
Lua
Raw Normal View History

local init = os.clock()
2017-03-12 03:55:29 +02:00
mcl_doors = {}
2015-06-29 20:55:56 +03:00
2017-06-05 22:57:23 +03:00
local this = minetest.get_current_modname()
local path = minetest.get_modpath(this)
2015-06-29 20:55:56 +03:00
2017-06-05 22:57:23 +03:00
dofile(path.."/api_doors.lua") -- Doors API
dofile(path.."/api_trapdoors.lua") -- Trapdoors API
dofile(path.."/register.lua") -- Register builtin doors and trapdoors
dofile(path.."/crafting.lua") -- Additional crafting recipes and fuel
dofile(path.."/alias.lua") -- Legacy aliases
2017-03-12 03:55:29 +02:00
-- Debug info
local time_to_load= os.clock() - init
2017-06-05 22:57:23 +03:00
minetest.log("action", (string.format("[MOD] "..this.." loaded in %.4f s", time_to_load)))