Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Version 0.3--
- --made by Kyle Hendry(Void)--
- --this program is to act as a safeguard to prevent meltdowns and export reactor info to monitor displays over red net--
- function Clear()
- term.setBackgroundColor(colours.black)
- term.clear()
- term.setCursorPos(1,1)
- end
- print("RednetID: " .. os.getComputerID())
- print("What side is the modem on?")
- side = read()
- peripheral.wrap(side)
- rednet.open(side)
- function SendInfo(side)
- while true do
- temp = getHeat()
- EU = getEUOutput()
- print("Reactor Temp: " .. temp)
- print("")
- print("Reactor Output: " .. EU .. "EU/t")
- sleep(2)
- end
- end
- Clear()
- print("What side is the reactor on?")
- reactor = read()
- peripheral.wrap("reactor")
- Clear()
- print("Enter Password To Begin Reactor Start Sequence.")
- start = read()
- maxTemp = getMaxHeat()
- overheat = maxTemp * .80
- maxAttempt = 0
- temp = getHeat()
- function Shutdown(reactor)
- redstone.setOutput(reactor, false)
- rednet.close(side)
- os.reboot()
- end
- function Startup(reactor, temp, overheat)
- Clear()
- print("Password Accepted Begining Startup...")
- sleep(5)
- Clear()
- redstone.setOutput(reactor, true)
- if temp ~= overheat then
- Clear()
- print("System is Active and Normal")
- SendInfo()
- else
- Shutdown()
- end
- end
- if start == "1776" then
- maxAttempt = 0
- Startup()
- elseif maxAttempt < 3 then
- print("Incorrect password please try again")
- Clear()
- maxAttempt= maxAttempt + 1
- else
- print("To many attempts made please wait 1 minute")
- sleep(60)
- os.reboot()
- end
Add Comment
Please, Sign In to add comment