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

11 lines
252 B
Lua

mtinfo.export_recipes = function()
local data = {}
for name in pairs(minetest.registered_nodes) do
data[name] = minetest.get_all_craft_recipes(name)
end
mtinfo.export_json(mtinfo.basepath.."/data/recipes.js", data, "mtinfo.recipes")
end