Farrk

TANKS_liquidamount_1.6.4

Dec 18th, 2013
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. function getLiquidAmount(side,tankSide)
  2. m=peripheral.wrap(side or "top")
  3. tankInfo=m.getTankInfo(tankSide or "down")
  4. key,tab=next(tankInfo)
  5. if tab["amount"]~= nil then
  6. return tonumber(tab["amount"])
  7. end
  8. end
  9.  
  10. while 1 do
  11. print(getLiquidAmount())
  12. os.sleep(2)
  13. end
Advertisement
Add Comment
Please, Sign In to add comment