henoireil

Untitled

Oct 24th, 2015
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. m = peripheral.wrap("right")
  2. ae = peripheral.wrap("left")
  3. cobble = ae.countOfItemType(4, 0)
  4. m.clear()
  5. m.setCursorPos(1,1)
  6.  
  7. --Call function "centerText("")" to set text
  8. --Use m.setCursorPos(1,y) to choose placement on screen
  9.  
  10. y2 = 1
  11.  
  12.  
  13. while true do
  14. m.clear()
  15. m.setCursorPos(2, 1)
  16. m.setTextColor(colors.yellow)
  17. m.write("Cobble :")
  18. m.setCursorPos(2, 2)
  19. m.write(cobble)
  20.  
  21. os.sleep(5)
  22. end
Advertisement
Add Comment
Please, Sign In to add comment