summaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
diff options
context:
space:
mode:
authorAlex <24834740+GreenXenith@users.noreply.github.com>2018-12-10 18:57:04 -0800
committerParamat <paramat@users.noreply.github.com>2018-12-11 02:57:04 +0000
commita833bee9edaeb6df69d1e510759a7b33915a41e0 (patch)
treee316ad0094a27816d89af10fce16ccf125cc90a1 /doc/lua_api.txt
parent98fa8a154d8136ad19d723fd89164c9d833da52b (diff)
downloadminetest-a833bee9edaeb6df69d1e510759a7b33915a41e0.tar.gz
minetest-a833bee9edaeb6df69d1e510759a7b33915a41e0.tar.bz2
minetest-a833bee9edaeb6df69d1e510759a7b33915a41e0.zip
Add object visual type 'item' (#7870)
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r--doc/lua_api.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index adde1112f..dc87eee0e 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -5472,7 +5472,7 @@ Used by `ObjectRef` methods. Part of an Entity definition.
pointable = true,
-- Overrides selection box when false
- visual = "cube" / "sprite" / "upright_sprite" / "mesh" / "wielditem",
+ visual = "cube" / "sprite" / "upright_sprite" / "mesh" / "wielditem" / "item",
-- "cube" is a node-sized cube.
-- "sprite" is a flat texture always facing the player.
-- "upright_sprite" is a vertical flat texture.
@@ -5488,6 +5488,7 @@ Used by `ObjectRef` methods. Part of an Entity definition.
-- of its texture.
-- Otherwise for non-node items, the object will be an extrusion of
-- 'inventory_image'.
+ -- "item" is similar to "wielditem" but ignores the 'wield_image' parameter.
visual_size = {x = 1, y = 1},
-- `x` multiplies horizontal (X and Z) visual size.