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

17 lines
334 B
Lua

local item_mapped_keys = {
"name",
"description",
"groups",
"inventory_image",
"stack_max",
"tool_capabilities",
"range"
}
mtinfo.export_items = function()
local data = {}
mtinfo.map_list(data, minetest.registered_items, item_mapped_keys)
mtinfo.export_json(mtinfo.basepath.."/data/items.js", data, "mtinfo.items")
end