Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getLiquidAmount(side,tankSide)
- m=peripheral.wrap(side or "top")
- tankInfo=m.getTankInfo(tankSide or "down")
- key,tab=next(tankInfo)
- if tab["amount"]~= nil then
- return tonumber(tab["amount"])
- end
- end
- while 1 do
- print(getLiquidAmount())
- os.sleep(2)
- end
Advertisement
Add Comment
Please, Sign In to add comment