mtinfo/tools.lua
BuckarooBanzay 4691175a30 enhance ui
2021-01-16 21:03:43 +01:00

17 lines
340 B
Lua

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