diff --git a/API.md b/API.md index 909eaa9..9b479f0 100644 --- a/API.md +++ b/API.md @@ -129,7 +129,7 @@ Recipes can be registered from a given URL containing a JSON file (HTTP support ```Lua i3.register_craft({ - url = "https://raw.githubusercontent.com/minetest-mods/i3/master/test.json" + url = "https://raw.githubusercontent.com/minetest-mods/i3/main/test_online_recipe.json" }) ``` diff --git a/test_online_recipe.json b/test_online_recipe.json new file mode 100644 index 0000000..aa08e59 --- /dev/null +++ b/test_online_recipe.json @@ -0,0 +1,8 @@ +{ + "items": [ + "default:stone, default:stone, default:stone", + "default:stone, , default:stone", + "default:stone, default:stone, default:stone" + ], + "result": "default:cobble 16" +}