Advertisement
virtualdxs

ComputerCraft Terminal Glasses Clock

Jul 19th, 2015
351
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. glass = peripheral.wrap("back")
  2. function addBox()
  3. glass.addBox(1,1,80,10,0xFFFFFF,0.2)
  4. end
  5. function timeDisp()
  6. time = textutils.formatTime(os.time(), false)
  7. glass.addText(5,2,"TIME: " .. time, 0xFF0000)
  8. end
  9. function start()
  10. while true do
  11. glass.clear()
  12. addBox()
  13. timeDisp()
  14. sleep(0.1)
  15. end
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement