@@ -2705,10 +2705,10 @@ Some of the values in the key-value store are handled specially:
27052705 See also: ` get_description ` in [ ` ItemStack ` ] ( #itemstack )
27062706* ` short_description ` : Set the item stack's short description.
27072707 See also: ` get_short_description ` in [ ` ItemStack ` ] ( #itemstack )
2708- * ` inventory_image ` : Override inventory_image
2709- * ` inventory_overlay ` : Override inventory_overlay
2710- * ` wield_image ` : Override wield_image
2711- * ` wield_overlay ` : Override wield_overlay
2708+ * ` inventory_image ` : Override inventory_image.name
2709+ * ` inventory_overlay ` : Override inventory_overlay.name
2710+ * ` wield_image ` : Override wield_image.name
2711+ * ` wield_overlay ` : Override wield_overlay.name
27122712* ` wield_scale ` : Override wield_scale, use vector.to_string
27132713* ` color ` : A ` ColorString ` , which sets the stack's color.
27142714* ` palette_index ` : If the item has a palette, this is used to get the
@@ -5849,8 +5849,8 @@ Utilities
58495849 particlespawner_exclude_player = true ,
58505850 -- core.generate_decorations() supports `use_mapgen_biomes` parameter (5.14.0)
58515851 generate_decorations_biomes = true ,
5852- -- Item definitions make use of the `inventory_image_animation `, `inventory_overlay_animation`,
5853- -- `wield_overlay_animation` and `wield_image_animation` field (5.16.0)
5852+ -- Item definition fields `inventory_image `, `inventory_overlay`, `wield_image`
5853+ -- and `wield_overlay` accept a table containing animation definitions. (5.16.0)
58545854 item_image_animation = true ,
58555855 }
58565856 ```
@@ -9855,6 +9855,13 @@ Tile animation definition
98559855}
98569856```
98579857
9858+ Item image definition
9859+ ---------------------
9860+
9861+ * ` "image.png" `
9862+ * ` {name="image.png", animation={Tile Animation definition}} `
9863+ * Basically a tile definition but for items
9864+
98589865Item definition
98599866---------------
98609867
@@ -9881,32 +9888,20 @@ Used by `core.register_node`, `core.register_craftitem`, and
98819888 -- {bendy = 2, snappy = 1},
98829889 -- {hard = 1, metal = 1, spikes = 1}
98839890
9884- inventory_image = " " ,
9885- -- Texture shown in the inventory GUI
9891+ inventory_image = < Item image definition > ,
9892+ -- Image shown in the inventory GUI
98869893 -- Defaults to a 3D rendering of the node if left empty.
98879894
9888- inventory_overlay = " " ,
9889- -- An overlay texture which is not affected by colorization
9895+ inventory_overlay = < Item image definition > ,
9896+ -- An overlay image which is not affected by colorization
98909897
9891- inventory_image_animation = {Tile Animation definition },
9892- -- Optional, animates the `inventory_image` if specified
9893-
9894- inventory_overlay_animation = {Tile Animation definition },
9895- -- Optional, animates the `inventory_overlay` if specified
9896-
9897- wield_image = " " ,
9898- -- Texture shown when item is held in hand
9898+ wield_image = < Item image definition > ,
9899+ -- Image shown when item is held in hand
98999900 -- Defaults to a 3D rendering of the node if left empty.
99009901
9901- wield_overlay = " " ,
9902+ wield_overlay = < Item image definition > ,
99029903 -- Like inventory_overlay but only used in the same situation as wield_image
99039904
9904- wield_image_animation = {Tile Animation definition }
9905- -- Optional, animates the `wield_image` if specified
9906-
9907- wield_overlay_animation = {Tile Animation definition }
9908- -- Optional, animates `wield_overlay` if specified
9909-
99109905 wield_scale = {x = 1 , y = 1 , z = 1 },
99119906 -- Scale for the item when held in hand
99129907
0 commit comments