Advertisement
Grexxity

test

May 11th, 2023 (edited)
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. local chest = peripheral.wrap("bottom")
  2. if chest == nil then
  3.   print("No chest found.")
  4.   return
  5. end
  6.  
  7. for slot, item in pairs(chest.getAllStacks()) do
  8.   if item ~= nil then
  9.     print(("%d x %s in slot %d"):format(item.qty, item.name, slot))
  10.     print(item.max_size)
  11.     for _, group in pairs(item.itemGroups) do
  12.       print(("Group: %s"):format(group.displayName))
  13.     end
  14.   end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement