View difference between Paste ID: 96htfrVW and cW81t46b
SHOW: | | - or go back to the newest paste.
1
local chest = peripheral.find("minecraft:chest")
2
for slot, item in pairs(chest.list()) do
3
  print(("%d x %s in slot %d"):format(item.count, item.name, slot))
4
end
5