mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 14:31:50 +00:00
added item.description() to itemlib, and update docs
This commit is contained in:
parent
b4d41a59e4
commit
59d706323a
5 changed files with 55 additions and 0 deletions
|
|
@ -98,6 +98,13 @@ inventory.set_all_data(...)
|
|||
```
|
||||
for moving is inefficient, use inventory.move or inventory.move_range.
|
||||
```lua
|
||||
-- Get item caption
|
||||
inventory.get_caption(
|
||||
-- id of inventory
|
||||
invid: int,
|
||||
-- slot id
|
||||
slot: int
|
||||
)
|
||||
-- Set item caption
|
||||
inventory.set_caption(
|
||||
-- id of inventory
|
||||
|
|
@ -107,6 +114,13 @@ inventory.set_caption(
|
|||
-- Item Caption
|
||||
caption: string
|
||||
)
|
||||
-- Get item description
|
||||
inventory.get_description(
|
||||
-- id of inventory
|
||||
invid: int,
|
||||
-- slot id
|
||||
slot: int
|
||||
)
|
||||
-- Set item description
|
||||
inventory.set_description(
|
||||
-- id of inventory
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue