MaLittlePwny

Untitled

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