mirror of
https://github.com/minetest-mods/i3.git
synced 2024-12-27 03:10:39 +01:00
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
|
```Lua
|
||||||
i3.register_craft({
|
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
8
test_online_recipe.json
Normal 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"
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user