mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00:00
Add per-stack descriptions using ItemStack Metadata
This commit is contained in:
parent
f2aa2c6a98
commit
f2f9a92351
2 changed files with 10 additions and 1 deletions
|
@ -1473,6 +1473,10 @@ Item stacks can store metadata too. See `ItemStackMetaRef`.
|
|||
|
||||
Item metadata only contains a key-value store.
|
||||
|
||||
Some of the values in the key-value store are handled specially:
|
||||
|
||||
* `description`: Set the itemstack's description. Defaults to idef.description
|
||||
|
||||
Example stuff:
|
||||
|
||||
local meta = stack:get_meta()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue