@@ -31,6 +31,7 @@ core.register_entity(":__builtin:item", {
31
31
spritediv = {x = 1 , y = 1 },
32
32
initial_sprite_basepos = {x = 0 , y = 0 },
33
33
is_visible = false ,
34
+ infotext = " " ,
34
35
},
35
36
36
37
itemstring = ' ' ,
@@ -50,6 +51,7 @@ core.register_entity(":__builtin:item", {
50
51
local c = s
51
52
local itemtable = stack :to_table ()
52
53
local itemname = nil
54
+ local description = " "
53
55
if itemtable then
54
56
itemname = stack :to_table ().name
55
57
end
@@ -58,6 +60,7 @@ core.register_entity(":__builtin:item", {
58
60
if core .registered_items [itemname ] then
59
61
item_texture = core .registered_items [itemname ].inventory_image
60
62
item_type = core .registered_items [itemname ].type
63
+ description = core .registered_items [itemname ].description
61
64
end
62
65
local prop = {
63
66
is_visible = true ,
@@ -66,6 +69,7 @@ core.register_entity(":__builtin:item", {
66
69
visual_size = {x = s , y = s },
67
70
collisionbox = {- c , - c , - c , c , c , c },
68
71
automatic_rotate = math.pi * 0.5 ,
72
+ infotext = description ,
69
73
}
70
74
self .object :set_properties (prop )
71
75
end ,
0 commit comments