Margresse404

Untitled

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