local term = require("term") local component = require("component") term.clear() print("Getting GPU's") local gpu = component.gpu local t2gpu = "" for addr in component.list("gpu") do local herp,derp = component.proxy(addr).maxResolution() if herp == 80 and derp == 25 then t2gpu = addr end end t2gpu = component.proxy(t2gpu) print("Setting Screens to GPU's") gpu.bind("ebb2f831-6176-4015-894e-15483b0fb590") t2gpu.bind("e3b8edaf-1805-43d2-ba14-7e89bfc9dad2") print("Setting Resolutions") gpu.setResolution(80,25) t2gpu.setResolution(45,15) os.sleep(5) while true do term.clear() print("Getting Tanks") local tank1 = component.invoke("cdd816d3-a080-43bd-bef2-0d542ed33ef7", "getTankFraction") * 100 local value = math.floor(tank1) print("Lava Tank : " .. tank1 .. "% full") t2gpu.setForeground(0xFF25FF) t2gpu.set(1, 1, "Lava Tank: ") t2gpu.setForeground(0xFFFFFF) t2gpu.set(1, 2, value .. "%") os.sleep(2) end