kd8lvt

FTBWiki's Clock Program

Apr 13th, 2015
340
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | None | 0 0
  1. glass = peripheral.wrap("side the Bridge is on")
  2.  
  3. function addBox()
  4.  
  5.  glass.addBox(1,1,80,10,0xFFFFFF,0.2)
  6.  
  7. end
  8.  
  9. function timeDis()
  10.  
  11.  time = textutils.formatTime(os.time(), false)
  12.  glass.addText(5,2,"TIME: " .. time, 0xFF0000)
  13.  
  14. end
  15.  
  16. function start()
  17.  
  18.  while true do
  19.  glass.clear()
  20.  addBox()
  21.  timeDis()
  22.  sleep(0.1)
  23.  end
  24.  
  25. end
Advertisement
Add Comment
Please, Sign In to add comment