Margresse404

Untitled

Sep 12th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. monitors = peripheral.find("monitor")
  2.  
  3. counter = 1
  4. monitors.clear()
  5. monitors.setCursorPos(1,1)
  6.  
  7. function newLine()
  8. local x
  9. local y
  10. x, y = monitors.getCursorPos()
  11. y = y + 1
  12. monitors.setCursorPos(1,y)
  13. end
  14.  
  15. while counter < 11 do
  16. monitors.write(counter)
  17. newLine()
  18. counter = counter + 1
  19. sleep(5)
  20. end
Advertisement
Add Comment
Please, Sign In to add comment