Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- reactor = peripheral.wrap("bottom")
- --info = reactor.getReactorInfo()
- while true do
- info = reactor.getReactorInfo()
- print(info.temperature)
- if info.temperature <= 2000 then
- reactor.chargeReactor()
- end
- if info.temperature == 2000 then
- reactor.activateReactor()
- end
- if info.temperature >= 5000 then
- reactor.stopReactor()
- end
- sleep(.1)
- end
Add Comment
Please, Sign In to add comment