From 7b125c71d2459d0256ef56376ac4cff5cc3c5db6 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Sun, 17 Jan 2021 00:41:47 +0100 Subject: [PATCH] Add test file for online recipe --- API.md | 2 +- test_online_recipe.json | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 test_online_recipe.json 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" +}