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
- count = count + p.getStoredItems()["qty"]
- os.sleep(1)
- end
- return(count / 10)
- end
- while true do
- print(lastTen())
- end
Advertisement
Add Comment
Please, Sign In to add comment