Darknio

Uhr mit Tag

Dec 24th, 2022 (edited)
1,278
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.10 KB | None | 0 0
  1. mon1 = peripheral.wrap("bottom")
  2. mon2 = peripheral.wrap("right")
  3. mon3 = peripheral.wrap("monitor_0")
  4. mon4 = peripheral.wrap("monitor_1")
  5.  
  6. mon1.setTextScale(2)
  7. mon2.setTextScale(1)
  8. mon3.setTextScale(2)
  9. mon4.setTextScale(1)
  10.  
  11.    
  12. while true do    
  13.     mon1.clear()
  14.     mon1.setCursorPos(1,1)
  15.     mon1.write(textutils.formatTime(os.time(),true))
  16.     mon1.setCursorPos(1,2)
  17.     mon1.write("Tag ")
  18.     mon1.write(textutils.serialize(os.day()),number)
  19.    
  20.     mon2.clear()
  21.     mon2.setCursorPos(1,1)
  22.     mon2.write(textutils.formatTime(os.time(),true))
  23.     mon2.setCursorPos(1,2)
  24.     mon2.write("Tag ")
  25.     mon2.write(textutils.serialize(os.day()),number)
  26.    
  27.     mon3.clear()
  28.     mon3.setCursorPos(1,1)
  29.     mon3.write(textutils.formatTime(os.time(),true))
  30.     mon3.setCursorPos(1,2)
  31.     mon3.write("Tag ")
  32.     mon3.write(textutils.serialize(os.day()),number)    
  33.    
  34.     mon4.clear()
  35.     mon4.setCursorPos(1,1)
  36.     mon4.write(textutils.formatTime(os.time(),true))
  37.     mon4.setCursorPos(1,2)
  38.     mon4.write("Tag ")
  39.     mon4.write(textutils.serialize(os.day()),number)
  40.    
  41.     sleep(1)
  42. end
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment