@@ -4448,6 +4448,16 @@ Definition tables
4448
4448
-- ^ "sprite" is a flat texture always facing the player.
4449
4449
-- ^ "upright_sprite" is a vertical flat texture.
4450
4450
-- ^ "mesh" uses the defined mesh model.
4451
+ -- ^ "wielditem" is used for dropped items (see builtin/game/item_entity.lua).
4452
+ -- For this use 'textures = {itemname}'.
4453
+ -- If the item has a 'wield_image' the object will be an extrusion of that,
4454
+ -- otherwise:
4455
+ -- If 'itemname' is a cubic node or nodebox the object will appear identical
4456
+ -- to 'itemname'.
4457
+ -- If 'itemname' is a plantlike node the object will be an extrusion of its
4458
+ -- texture.
4459
+ -- Otherwise for non-node items, the object will be an extrusion of
4460
+ -- 'inventory_image'.
4451
4461
visual_size = {x = 1, y = 1},
4452
4462
-- ^ `x` multiplies horizontal (X and Z) visual size.
4453
4463
-- ^ `y` multiplies vertical (Y) visual size.
@@ -4456,6 +4466,7 @@ Definition tables
4456
4466
-- ^ "cube" uses 6 textures in the way a node does.
4457
4467
-- ^ "sprite" uses 1 texture.
4458
4468
-- ^ "upright_sprite" uses 2 textures: {front, back}.
4469
+ -- ^ "wielditem" expects 'textures = {itemname}' (see 'visual' above).
4459
4470
colors = {}, -- number of required colors depends on visual
4460
4471
spritediv = {x = 1, y = 1},
4461
4472
-- ^ Used with spritesheet textures for animation and/or frame selection according
0 commit comments