Skip to content

Commit 988fe53

Browse files
committed
[docs/lua-api-block] Added 'inventory_image' documentation.
1 parent aee82ca commit 988fe53

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/lua-api-block.md

+13
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,19 @@ id = "cobblestone"
7575

7676
IDs are usually of the form `mod:block` but the `mod:` prefix is prepended automatically so it's not needed.
7777

78+
### `inventory_image`
79+
80+
Texture used for inventory rendering.
81+
82+
Example:
83+
```lua
84+
inventory_image = "cobblestone_item.png"
85+
```
86+
87+
If you set this parameter the block will be displayed as an item in the inventory using this texture.
88+
89+
The texture is loaded from `mods/<your-mod>/textures/items/`.
90+
7891
### `is_light_source`
7992

8093
Defines if the block is the light source or not.

0 commit comments

Comments
 (0)