Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tank = peripheral.wrap("back")
- local tankinfo={}
- while true do
- tankinfo = tank.getTankInfo()
- if not next(tankinfo) then
- return "no"
- end
- for i in pairs(tankinfo) do
- p = tankinfo[i].name
- print(p .. i)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement