139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
|
};
-- crystal = {
-- op = fQuant;
-- };
item = {
name = {"item", "items"};
string = function(x, n)
local i = minetest.registered_items[x]
return tostring(n) .. 'x ' .. i.short_description
end;
image = function(x, n)
return ItemStack(x):get_definition().inventory_image
end;
inventory = function(x, n, stack)
x = ItemStack(x)
|
|
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
|
};
-- crystal = {
-- op = fQuant;
-- };
item = {
name = {"item", "items"};
string = function(x, n)
local i = core.registered_items[x]
return tostring(n) .. 'x ' .. i.short_description
end;
image = function(x, n)
return ItemStack(x):get_definition().inventory_image
end;
inventory = function(x, n, stack)
x = ItemStack(x)
|