Advertisement
jordyvl

clock

Nov 18th, 2014
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 KB | None | 0 0
  1. local monitor = peripheral.wrap( "top" )
  2. monitor.clear()
  3. monitor.setTextScale(2)
  4. monitor.setCursorPos(1,4)
  5. monitor.write("Welcome to blablabla")
  6.  
  7. while true do
  8.   monitor.setCursorPos(1,2)
  9.   monitor.clearLine()
  10.   local MCTime = textutils.formatTime(os.time(), false )
  11.   monitor.write(MCTime)
  12.   sleep(.5)
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement