Advertisement
Derek1017

Glasses

Apr 10th, 2015
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.30 KB | None | 0 0
  1. glass = peripheral.wrap("left")
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement