Advertisement
MrBartek

Clock - TechCraft

Aug 22nd, 2019
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | None | 0 0
  1. m = peripheral.wrap("monitor_15")
  2. m.clear()
  3. m.setTextScale(4)
  4. m.setTextColor(colors.red)
  5. function updateClock(m)
  6.   while true do
  7.         mcT = os.time()
  8.         --m.setCursorPos(1,5)
  9.         --m.clearLine()
  10.         m.setCursorPos(3,2)
  11.         m.write(textutils.formatTime(mcT))
  12.         --m.setCursorPos(1,2)
  13.         --m.clearLine()
  14.         --m.setCursorPos(3,2)
  15.         --m.write("Jour "..os.day())
  16.         sleep(0.1)
  17.   end
  18. end
  19. updateClock(m)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement