henoireil

Untitled

Oct 24th, 2015
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. m = peripheral.wrap("right")
  2. ae = peripheral.wrap("left")
  3. m.clear()
  4. m.setCursorPos(1,1)
  5.  
  6. --Call function "centerText("")" to set text
  7. --Use m.setCursorPos(1,y) to choose placement on screen
  8.  
  9. y2 = 1
  10.  
  11.  
  12. while true do
  13. m.clear()
  14.  
  15. m.setCursorPos(2, 1)
  16. m.setTextColor(colors.yellow)
  17. m.write("Diamants :")
  18. m.setCursorPos(2, 2)
  19. m.write(ae.countOfItemType(264, 0))
  20.  
  21. m.setCursorPos(2, 4)
  22. m.setTextColor(colors.yellow)
  23. m.write("Or :")
  24. m.setCursorPos(2, 5)
  25. m.write(ae.countOfItemType(266, 0))
  26.  
  27. m.setCursorPos(2, 7)
  28. m.setTextColor(colors.yellow)
  29. m.write("Fer :")
  30. m.setCursorPos(2, 8)
  31. m.write(ae.countOfItemType(265, 0))
  32.  
  33. m.setCursorPos(2, 7)
  34. m.setTextColor(colors.yellow)
  35. m.write("Copper :")
  36. m.setCursorPos(2, 8)
  37. m.write(ae.countOfItemType(8883, 64))
  38.  
  39. os.sleep(5)
  40. end
Advertisement
Add Comment
Please, Sign In to add comment