Advertisement
Guest User

test

a guest
Feb 19th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.23 KB | None | 0 0
  1. p=peripheral.wrap("left")
  2. while true do
  3.  
  4. time1=os.time()
  5.  
  6. a=p.getStoredItems()
  7. amount1=a.qty
  8.  
  9. sleep(5)
  10.  
  11. a=p.getStoredItems()
  12. amount2=a.qty
  13.  
  14. time2=os.time()-time1
  15. print((amount1-amount2)/(time2*1000))
  16.  
  17. end
  18.  
  19. shell.run("lua")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement