mtinfo/recipes.lua

11 lines
262 B
Lua
Raw Normal View History

2020-01-06 13:31:18 +01:00
minetest.register_on_mods_loaded(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")
2020-01-06 13:31:18 +01:00
end)