From e491c94f7a2b20c145ca0e1eb88cdddabe54d972 Mon Sep 17 00:00:00 2001 From: Quentin Bazin Date: Sun, 29 Mar 2020 15:36:59 +0200 Subject: [PATCH] [docs] Updated. --- docs/lua-api-block.md | 6 ++++++ docs/lua-api-gui-inventory.md | 9 +++++++++ docs/lua-api-recipe.md | 8 ++++++-- 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/docs/lua-api-block.md b/docs/lua-api-block.md index f5c2d99f2..64b9fec1a 100644 --- a/docs/lua-api-block.md +++ b/docs/lua-api-block.md @@ -47,6 +47,12 @@ Example: draw_type = "solid" -- this is the default value ``` +### `groups` + +Groups of the block. They can be used in recipes, and can also filter Lua-defined inventory widgets. + +See [Item#Attributes#groups](/lua-api-item#groups) for more details. + ### `hardness` Hardness of the block, affects mining speed. diff --git a/docs/lua-api-gui-inventory.md b/docs/lua-api-gui-inventory.md index 00722884b..93791f690 100644 --- a/docs/lua-api-gui-inventory.md +++ b/docs/lua-api-gui-inventory.md @@ -23,6 +23,15 @@ gui:inventory { ## Attributes +### `filter` + +Use a group as a filter for this inventory widget. + +Example: +``` +filter = "group:om_fuel" +``` + ### `inventory` Details of the inventory to use. diff --git a/docs/lua-api-recipe.md b/docs/lua-api-recipe.md index a79dd8439..6aa26bc7a 100644 --- a/docs/lua-api-recipe.md +++ b/docs/lua-api-recipe.md @@ -59,7 +59,7 @@ result = { Possible attributes: - `id`: String ID of the item created. -- `amount`: Amount of items in the created stack +- `amount`: Amount of items in the created stack. #### `pattern` @@ -78,6 +78,8 @@ pattern = { Mapping of the characters used in `pattern` to actual item string IDs. +**Note:** Keys can also be groups. See [Item#Attributes#groups](/lua-api-item#groups) for more details. + Example: ```lua keys = { @@ -103,7 +105,9 @@ input = { Possible attributes: - `id`: String ID of the item created. -- `amount`: Amount of items in the created stack +- `amount`: Amount of items in the created stack. + +**Note:** `id` can also be a group. See [Item#Attributes#groups](/lua-api-item#groups) for more details. #### `output`