mirror of
https://github.com/fluxionary/minetest-book_runner.git
synced 2025-03-15 12:21:24 +00:00
28 lines
579 B
Lua
28 lines
579 B
Lua
|
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")
|