Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon = peripheral.find("monitor")
- chest = peripheral.wrap("top")
- items = chest.list()
- totalCount = 0
- for slot, item in pairs(items) do
- totalCount = totalCount + (item.count or 0)
- end
- -- Contagem no Monitor
- mon.clear()
- mon.setCursorPos(2.5,1)
- mon.setTextColor(colors.lightGray)
- mon.write("Coal")
- mon.setCursorPos(1,3)
- mon.setTextColor(colors.white)
- mon.write(totalCount.."/576")
- sleep(0.3)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement