mtinfo/lbm.lua
BuckarooBanzay c3f1070630 export data as js-files with global storage
makes it possible to view it locally without webserver
2020-02-19 20:39:44 +01:00

15 lines
293 B
Lua

local lbm_mapped_keys = {
"label",
"name",
"nodenames",
"run_at_every_load"
}
minetest.register_on_mods_loaded(function()
local data = {}
mtinfo.map_list(data, minetest.registered_lbms, lbm_mapped_keys)
mtinfo.export_json(mtinfo.basepath.."/data/lbm.js", data, "mtinfo.lbm")
end)