mtinfo/items.lua
2020-01-06 14:12:37 +01:00

17 lines
332 B
Lua

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