Zatilla7

Tanks

Apr 18th, 2014
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. --fluidTank = tank
  2. --mon = monitor
  3. local fluidTank = peripheral.wrap("top")
  4. local mon = peripheral.wrap("right")
  5. --Change what's in the quotation marks to top,bottom,front,back,right,back based on which side it the different parts are
  6. mon.setTextScale(2)
  7. --Change the number in the parathanses up top to chose what size text you want(Goes up to 5)
  8. mon.clear()
  9. mon.setCursorPos(1,1)
  10. mon.write("Tank 1:")
  11. repeat
  12. local pertable = fluidTank.getTankInfo("unknown")
  13. local pertable1 = pertable[1]
  14. local h = 2
  15. for i,j in pairs(pertable1) do
  16. mon.setCursorPos(1,h)
  17. mon.write(tostring(i)..":"..tostring(j).." ")
  18. h = h + 1
  19. end
  20. sleep(1)
  21. until h==1000
  22. --Credits to Dog from the computer craft forums for alot of help on debugging and bettering this code
Advertisement
Add Comment
Please, Sign In to add comment