Add test file for online recipe

This commit is contained in:
Jean-Patrick Guerrero 2021-01-17 00:41:47 +01:00
parent ed3ab46846
commit 7b125c71d2
2 changed files with 9 additions and 1 deletions

2
API.md
View File

@ -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"
})
```

8
test_online_recipe.json Normal file
View File

@ -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"
}