bookrunner/init.lua

28 lines
579 B
Lua
Raw Normal View History

2022-09-30 10:12:14 -07:00
local modname = minetest.get_current_modname()
local modpath = minetest.get_modpath(modname)
local S = minetest.get_translator(modname)
book_runner = {
author = "flux",
license = "AGPL_v3",
version = {year = 2022, month = 9, day = 30},
fork = "flux",
modname = modname,
modpath = modpath,
S = S,
has = {
},
log = function(level, messagefmt, ...)
return minetest.log(level, ("[%s] %s"):format(modname, messagefmt:format(...)))
end,
dofile = function(...)
return dofile(table.concat({modpath, ...}, DIR_DELIM) .. ".lua")
end,
}
book_runner.dofile("command")