Skip to content

Commit

Permalink
[docs] Updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
Unarelith committed Mar 29, 2020
1 parent 5c8d926 commit e491c94
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
6 changes: 6 additions & 0 deletions docs/lua-api-block.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
9 changes: 9 additions & 0 deletions docs/lua-api-gui-inventory.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 6 additions & 2 deletions docs/lua-api-recipe.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand All @@ -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 = {
Expand All @@ -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`

Expand Down

0 comments on commit e491c94

Please sign in to comment.