summaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
diff options
context:
space:
mode:
authorrubenwardy <rubenwardy@gmail.com>2017-02-03 22:28:09 +0000
committerrubenwardy <rubenwardy@gmail.com>2017-02-04 22:07:55 +0000
commitf2f9a923515386d787a245fac52f78e815b3a839 (patch)
tree4493917a60f3ea682a25d93e4f8a994b69044e81 /doc/lua_api.txt
parentf2aa2c6a986dec47856c49ae5f54fbf3c688e027 (diff)
downloadminetest-f2f9a923515386d787a245fac52f78e815b3a839.tar.gz
minetest-f2f9a923515386d787a245fac52f78e815b3a839.tar.bz2
minetest-f2f9a923515386d787a245fac52f78e815b3a839.zip
Add per-stack descriptions using ItemStack Metadata
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r--doc/lua_api.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 2f5e3706c..dd20ae904 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -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()