Compare commits

..

2 Commits

Author SHA1 Message Date
Cody Young 49833b2270 Require all needed libraries 2023-03-21 13:33:08 -05:00
Cody Young 0f4fe2bb81 Add NBT custom name lookup 2023-03-21 13:32:56 -05:00
2 changed files with 8 additions and 0 deletions

View File

@ -20,6 +20,13 @@ local function ItemStack_new(item)
end
function ItemStack:getName()
--- check for custom name
if self.data.hasTagCompount() then
local nbt = self.data.getTagCompount()
if nbt.value.display and nbt.value.display.value.Name then
return nbt.value.display.value.Name.value
end
end
return self.data.getName()
end

View File

@ -1,3 +1,4 @@
local component = require("component")
local pipe = component.logisticspipe.getPipe()
local items = pipe.getAvailableItems()
print("Requesting all items I can find... this might take up a lot of storage space!")