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
|
|
|
|
|
2020-02-19 20:39:44 +01:00
|
|
|
mtinfo.export_json(mtinfo.basepath.."/data/recipes.js", data, "mtinfo.recipes")
|
2020-01-06 13:31:18 +01:00
|
|
|
end)
|