Split some code to own files

This commit is contained in:
Jean-Patrick Guerrero
2021-06-25 04:21:23 +02:00
parent b1fff8617b
commit c1bd944465
9 changed files with 201 additions and 199 deletions

11
API.md
View File

@ -141,7 +141,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/main/test_online_recipe.json"
url = "https://raw.githubusercontent.com/minetest-mods/i3/main/etc/test_online_recipe.json"
})
```
@ -237,15 +237,6 @@ Returns a map of search filters, indexed by name.
### Miscellaneous
#### `i3.group_stereotypes`
This is the table indexing the item groups by stereotypes.
You can add a stereotype like so:
```Lua
i3.group_stereotypes.radioactive = "mod:item"
```
#### `i3.export_url`
If set, the mod will export all the cached recipes and usages in a JSON format