Advertisement
Guest User

glasses

a guest
Mar 15th, 2015
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. glass = peripheral.wrap("right")
  2. function addBox()
  3.  glass.addBox(1,1,80,10,0xFFFFFF,0.2)
  4. end
  5. function timeDis()
  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.   timeDis()
  14.   sleep(0.1)
  15.  end
  16. end
  17. start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement