Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local col_offset = 2
- local tanks = {
- peripheral.wrap("rcirontankvalvetile_0"), -- MFR Bio Fuel
- peripheral.wrap("rcirontankvalvetile_1"), -- Honey
- peripheral.wrap("rcirontankvalvetile_2"), -- Ethanol
- peripheral.wrap("rcirontankvalvetile_3"), -- Oil
- peripheral.wrap("rcirontankvalvetile_4"), -- Fuel
- }
- function displayTank(data, i)
- for _, tank in pairs(data.getTankInfo("unknown")) do
- mon2.setCursorPos(rowPos, i + col_offset)
- mon2.clearLine()
- mon2.write("Iron Tank " .. i .. " (" .. tank.name .. ") : " .. tank.amount)
- end
- end
- function dispTanks()
- for i, tank in pairs(tanks) do
- displayTank(irontank0, i - 1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment