Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --fluidTank = tank
- --mon = monitor
- local fluidTank = peripheral.wrap("top")
- local mon = peripheral.wrap("right")
- --Change what's in the quotation marks to top,bottom,front,back,right,back based on which side it the different parts are
- mon.setTextScale(2)
- --Change the number in the parathanses up top to chose what size text you want(Goes up to 5)
- mon.clear()
- mon.setCursorPos(1,1)
- mon.write("Tank 1:")
- repeat
- local pertable = fluidTank.getTankInfo("unknown")
- local pertable1 = pertable[1]
- local h = 2
- for i,j in pairs(pertable1) do
- mon.setCursorPos(1,h)
- mon.write(tostring(i)..":"..tostring(j).." ")
- h = h + 1
- end
- sleep(1)
- until h==1000
- --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