1
0
Fork 0
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:
rubenwardy 2017-02-03 22:28:09 +00:00
parent f2aa2c6a98
commit f2f9a92351
2 changed files with 10 additions and 1 deletions

View file

@ -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()