Advertisement
m3ntalpain

Untitled

Oct 25th, 2014
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. local side = "top"
  2. local message - "Cell not detected, checking again in 30 seconds."
  3. local CellCheck - peripheral.isPresent(side)
  4.  
  5. while true do
  6. if CellCheck == true then
  7. shell.run("true")
  8. else
  9. print(message)
  10. sleep(30)
  11. os.reboot()
  12. end
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement