Guest User

test

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