Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local side = "top"
- local message - "Cell not detected, checking again in 30 seconds."
- local CellCheck - peripheral.isPresent(side)
- while true do
- if CellCheck == true then
- shell.run("true")
- else
- print(message)
- sleep(30)
- os.reboot()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement