Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- p = peripheral.wrap("right")
- function lastTen()
- count = 0
- for i = 1, 10 do
- count1 = p.getStoredItems()["qty"]
- os.sleep(1)
- count2 = p.getStoredItems()["qty"]
- count = count2 - count1 + count
- end
- return(count / 10)
- end
- while true do
- print(lastTen())
- end
Advertisement
Add Comment
Please, Sign In to add comment