Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- reactor = peripheral.find("BigReactors-Reactor")
- function ReactorCheckOFF()
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.red)
- textutils.slowPrint("Minimum Buffer Reached")
- sleep(2)
- term.setCursorPos(1,2)
- term.setTextColor(colors.green)
- textutils.slowPrint("Deactivating Reactor")
- reactor.setActive(false)
- sleep(10)
- end
- function ReactorCheckON()
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.orange)
- textutils.slowPrint("Minimum Buffer not Reached")
- sleep(2)
- term.setTextColor(colors.lime)
- term.setCursorPos(1,2)
- textutils.slowPrint("Activating Reactor")
- reactor.setActive(true)
- sleep(10)
- end
- while true do
- if redstone.getInput("back") == true then
- print("receiving")
- ReactorCheckON()
- else
- ReactorCheckOFF()
- end
- sleep(5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement