Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mfe = peripheral.wrap("right")
- reactor = peripheral.wrap("bottom")
- function mfeenergy()
- energy = mfe.getEUStored() / mfe.getEUCapacity()
- energy = energy * 100
- end
- while true do
- if reactor.getHeat() < 4000 then
- mfeenergy()
- if energy > 90 then
- rs.setOutput("bottom", false)
- sleep(1)
- end
- if energy < 20 then
- rs.setOutput("bottom", true)
- sleep(1)
- end
- else
- rs.setOutput("bottom", false)
- sleep(1)
- end
- term.clear()
- term.setCursorPos(1,1)
- print(reactor.getHeat())
- print(energy)
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement