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

11 lines
250 B
Lua

function mtinfo.export_recipes()
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