Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2020
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. tank = peripheral.wrap("back")
  2.  
  3. local tankinfo={}
  4. while true do
  5. tankinfo = tank.getTankInfo()
  6. if not next(tankinfo) then
  7. return "no"
  8. end
  9. for i in pairs(tankinfo) do
  10. p = tankinfo[i].name
  11. print(p .. i)
  12. end
  13. end
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement