Add test file for online recipe
This commit is contained in:
parent
ed3ab46846
commit
7b125c71d2
2
API.md
2
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"
|
||||
})
|
||||
```
|
||||
|
||||
|
|
|
@ -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"
|
||||
}
|
Ŝarĝante…
Reference in New Issue