microexpansion/init.lua
Amaz aab11df2a4 Add a method of accessing the storage cells
There are a couple of hacky bits, here and there, and it probably still has some bugs, but hey, it's a start!
2017-02-09 10:23:54 +00:00

21 lines
535 B
Lua

-- microexpansion/init.lua
microexpansion = {}
microexpansion.modpath = minetest.get_modpath("microexpansion") -- modpath
local modpath = microexpansion.modpath -- modpath pointer
-- logger
function microexpansion.log(content, log_type)
if not content then return false end
if log_type == nil then log_type = "action" end
minetest.log(log_type, "[MicroExpansion] "..content)
end
-- Load API
dofile(modpath.."/api.lua")
-- Load storage devices
dofile(modpath.."/storage.lua")
-- Load machines
dofile(modpath.."/machines.lua")