Zatilla7

Tank superviser (uses monitor)

Apr 17th, 2014
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. m = peripheral.wrap("top")
  2. --m = tank
  3. l = peripheral.wrap("right")
  4. l.setTextScale(0.5)
  5. l.clear()
  6. --l = monitor(confusing, I know)
  7. pertable = m.getTankInfo("top")
  8. pertable1 = pertable[1]
  9. local h = 1
  10. for a,b in pairs(pertable) do
  11. --l.setCursorPos(1,h)
  12. --l.write(tostring(a) .. " ")
  13. --h = h + 1
  14. for t,u in pairs(B) do
  15. l.setCursorPos(1,h)
  16. l.write(tostring(u))
  17. h = h + 1
  18. end
  19. h = h + 1
  20. end
  21. --l.setCursorPos(1,h)
  22. --l.write(tostring(#pertable))
  23. --h = h + 1
  24. for i,j in pairs(pertable1) do
  25. l.setCursorPos(1,h)
  26. l.write(tostring(i)..":"..tostring(j))
  27. h = h + 1
  28. end
Advertisement
Add Comment
Please, Sign In to add comment