PasaP

Direwolf liquid transfer rate

Aug 28th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. p=peripheral.wrap("left")
  2. while true do
  3.  
  4. time1=os.time()
  5.  
  6. a=p.getTankInfo()
  7. amount1=a[1].contents.amount
  8.  
  9. sleep(60)
  10.  
  11. a=p.getTankInfo()
  12. amount2=a[1].contents.amount
  13.  
  14. time2=os.time()-time1
  15. difference=math.abs((amount1-amount2)/(time2*1000))
  16. print(difference.." mB/t - "..(difference*20).." mB/s")
  17.  
  18. end
  19.  
  20. shell.run("lua")
Add Comment
Please, Sign In to add comment