Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- irontank0 = peripheral.wrap("rcirontankvalvetile_0") -- MFR Bio Fuel
- irontank1 = peripheral.wrap("rcirontankvalvetile_1") -- Honey
- irontank2 = peripheral.wrap("rcirontankvalvetile_2") -- Ethanol
- irontank3 = peripheral.wrap("rcirontankvalvetile_3") -- Oil
- irontank4 = peripheral.wrap("rcirontankvalvetile_4") -- Fuel
- function getTank(tankPeriph)
- local tanks = tankPeriph.getTankInfo("unknown")
- return tanks[1]
- end
- function dispTanks()
- -- working on it
- -- TANK 0
- mon2.setCursorPos(rowPos, ironTank0Col)
- mon2.clearLine()
- local tank = getTank(irontank0)
- mon2.write("Iron Tank 0 (" .. tank.name .. ") : " .. tank.amount)
- -- TANK 1
- mon2.setCursorPos(rowPos, ironTank1Col)
- mon2.clearLine()
- local tank = getTank(irontank1)
- mon2.write("Iron Tank 1 (" .. tank.name .. ") : " .. tank.amount)
- -- TANK 2
- mon2.setCursorPos(rowPos, ironTank2Col)
- mon2.clearLine()
- local tank = getTank(irontank2)
- mon2.write("Iron Tank 2 (" .. tank.name .. ") : " .. tank.amount)
- -- TANK 3
- mon2.setCursorPos(rowPos, ironTank3Col)
- mon2.clearLine()
- local tank = getTank(irontank3)
- mon2.write("Iron Tank 3 (" .. tank.name .. ") : " .. tank.amount)
- -- TANK 4
- mon2.setCursorPos(rowPos, ironTank4Col)
- mon2.clearLine()
- local tank = getTank(irontank4)
- mon2.write("Iron Tank 4 (" .. tank.name .. ") : " .. tank.amount)
- end
Advertisement
Add Comment
Please, Sign In to add comment