Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local chest = peripheral.wrap("bottom")
- if chest == nil then
- print("No chest found.")
- return
- end
- for slot, item in pairs(chest.getAllStacks()) do
- if item ~= nil then
- print(("%d x %s in slot %d"):format(item.qty, item.name, slot))
- print(item.max_size)
- for _, group in pairs(item.itemGroups) do
- print(("Group: %s"):format(group.displayName))
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement