Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function writeRF(mon, value)
- mon.clear()
- local x,y = mon.getSize()
- x = math.floor(x / 2)
- mon.setCursorPos(x, 0)
- mon.write(value)
- end
- local mon = perpherial.wrap("top")
- local reactor = perpherial.wrap("right")
- local buffer = 10000000
- local cutOff = 7500000
- if reactor.getActive() == true then
- reactor.setActive(false)
- end
- while true do
- local currBuffer = reactor.getEnergyStored()
- writeRF(currBuffer .. " RF.")
- if currBuffer < cutOff and reactor.getActive() == true then
- reactor.setActive(false)
- end
- if currbuffer > cutOff and reactor.getActive() == false then
- reactor.setActive(true)
- end
- sleep(5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement