mirror of
https://github.com/minetest-mods/craftguide.git
synced 2025-07-10 03:50:26 +02:00
Add API call to open crafting guide (#59)
This commit is contained in:
11
README.md
11
README.md
@ -80,3 +80,14 @@ Removes all recipe filters and adds a new one.
|
||||
#### `craftguide.get_recipe_filters()`
|
||||
|
||||
Returns a map of recipe filters, indexed by name.
|
||||
|
||||
### Miscellaneous
|
||||
|
||||
#### `craftguide.show(player_name, item, show_usages)`
|
||||
|
||||
Opens the craft guide with the current filter applied.
|
||||
|
||||
* `player_name`: string param.
|
||||
* `item`: optional, string param. If set, this item is pre-selected. If the item does not exist or has no recipe, use the player's previous selection. By default, player's previous selection is used
|
||||
* `show_usages`: optional, boolean param. If true, show item usages.
|
||||
|
||||
|
Reference in New Issue
Block a user