CompCrafter

Untitled

Oct 25th, 2015
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. local tankSide = "back" --Change it to the side where your tank is connected to
  2. t = peripheral.wrap(tankSide)
  3. data = t.getTankInfo(tankSide)
  4.  
  5. for i, liquid in pairs(data) do
  6. print(liquid["rawName"]) --The name of the liquid, as it is called in game
  7. print(liquid["amount"]) --The current amount of the liquid in the tank
  8. print(liquid["capacity"]) --The total capacity of the liquid in the tank
  9. print(liquid["name"]) --The name of the liquid, as it is called in the source code
  10. print(liquid["id"]) --The ID of the liquid
  11. end
Add Comment
Please, Sign In to add comment