patrick11514

Untitled

Mar 30th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. local tank = peripheral.wrap(<side in quotes>)
  2. local tankInfo = tank.getTankInfo("unknown")
  3. local tankStats = tankInfo[1]
  4. if not tankStats.contents then --# tankStats.contents instead of tank.contents
  5. print( "No fluid" )
  6. else
  7. print( "Amount: " .. tankStats.contents.amount ) --# tankStats.contents.amount instead of tank.contents.amount
  8. end
Add Comment
Please, Sign In to add comment