MaLittlePwny

Untitled

Oct 3rd, 2015
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. p = peripheral.wrap("right")
  2.  
  3. function lastTen()
  4. count = 0
  5. for i = 1, 10 do
  6. count1 = p.getStoredItems()["qty"]
  7. os.sleep(1)
  8. count2 = p.getStoredItems()["qty"]
  9. count = count2 - count1 + count
  10. end
  11. return(count / 10)
  12. end
  13.  
  14. while true do
  15. print(lastTen())
  16. end
Advertisement
Add Comment
Please, Sign In to add comment