mtinfo/tools.lua
2021-02-10 07:54:51 +01:00

17 lines
338 B
Lua

local tool_mapped_keys = {
"name",
"description",
"groups",
"inventory_image",
"stack_max",
"tool_capabilities",
"range"
}
function mtinfo.export_tools()
local data = {}
mtinfo.map_list(data, minetest.registered_tools, tool_mapped_keys)
mtinfo.export_json(mtinfo.basepath.."/data/tools.js", data, "mtinfo.tools")
end