Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Colour2 = term.isColor()
- if Colour2 == true then
- term.setBackgroundColour(colors.blue)
- end
- term.clear()
- term.setCursorPos(9,9)
- term.write("InfiniSoft Reactor Control v2.1")
- while true do
- local r = peripheral.find("BigReactors-Reactor")
- local Energy = r.getEnergyStored()
- if Energy < 8000000 then
- r.setActive(true)
- sleep(0.1)
- elseif Energy > 9000000 then
- r.setActive(false)
- sleep(0.1)
- end
- local m = peripheral.wrap("left")
- local Colour = m.isColour()
- if Colour == true then
- m.setBackgroundColor(colors.blue)
- m.clear()
- m.setCursorPos(1,1)
- end
- local Active = r.getActive()
- local RF = r.getEnergyProducedLastTick()
- local Fuel = r.getFuelAmount()
- local Reactivity = r.getFuelReactivity()
- m.setCursorPos(1,1)
- if Colour == true then
- m.setTextColor(colors.lime)
- end
- m.write("Energy: ")
- if Colour == true then
- m.setTextColor(colors.white)
- end
- m.write(Energy)
- m.setCursorPos(1,2)
- if Colour == true then
- m.setTextColor(colors.lime)
- end
- m.write("Active: ")
- if Colour == true then
- m.setTextColor(colors.white)
- end
- m.write(Active)
- m.write(" ")
- m.setCursorPos(1,3)
- if Colour == true then
- m.setTextColor(colors.lime)
- end
- m.write("RF/t: ")
- if Colour == true then
- m.setTextColor(colors.white)
- end
- m.write(RF)
- m.setCursorPos(1,4)
- if Colour == true then
- m.setTextColor(colors.lime)
- end
- m.write("Fuel: ")
- if Colour == true then
- m.setTextColor(colors.white)
- end
- m.write(Fuel)
- m.write(" ")
- m.setCursorPos(1,5)
- if Colour == true then
- m.setTextColor(colors.lime)
- end
- m.write("Fuel Reactivity: ")
- if Colour == true then
- m.setTextColor(colors.white)
- end
- m.write(Reactivity)
- sleep(0.01)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement