Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mon = peripheral.find("monitor")
- local barrel = peripheral.find("sophisticatedstorage:barrel")
- function PrintBarrel()
- mon.clear()
- mon.setCursorPos(1,1)
- i = 1
- for slot, item in pairs(barrel.list()) do
- mon.write(("%d x %s in slot %d"):format(item.count, item.name, slot))
- i = i + 1
- mon.setCursorPos(1,i)
- end
- end
- while true do
- PrintBarrel()
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement