Guest User

montime2.lua

a guest
Sep 14th, 2022
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.25 KB | None | 0 0
  1. while true do
  2. local monitor = peripheral.wrap("top")
  3. monitor.setTextScale(1)
  4.  
  5. term.clear()
  6. term.setCursorPos(1,1)
  7. local nTime = os.time()
  8. local nDay = os.day()
  9. print("" .. textutils.formatTime(nTime, false))
  10. print("Day " .. nDay)
  11. sleep(0.1)
  12. end
Advertisement
Add Comment
Please, Sign In to add comment