Advertisement
patrick11514

Untitled

Mar 30th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. local tank = peripheral.wrap(<side in quotes>) --# wrap the tank as a peripheral
  2. local tankInfo = tank.getTankInfo("unknown") --# get the tank info
  3. local tankStats = tankInfo[1] --# store the first table returned
  4. print tankStats.rawName --# print the raw name of the fluid in the tank
  5. print tankStats.amount --# print the amount in the tank
  6. print tankStats.capacity --# print the capacity of the tank
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement