Advertisement
Skip_21

Crusher with CC Computer 1 Side (Immersive Engineering)

Mar 7th, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.54 KB | None | 0 0
  1. rednet.open("top")
  2.  
  3. while true do
  4.     term.clear()
  5.     term.setCursorPos(1,1)
  6.     print("Crush or NoCrush ?")
  7.     input = read()
  8.     print("How long before forced shtudown ? (in seconds)(0 = No forced Shutdown)")
  9.     security = tonumber(read())
  10.     if input == "Crush" or input == "NoCrush" then
  11.         rednet.send(Computer2ID, input)
  12.         rednet.set(TurtleID, input)
  13.         if security > 0 and input == "Crush" then
  14.             sleep(security)
  15.             rednet.send(9, "NoCrush")
  16.         end
  17.     else
  18.         print("Error ! No possibility found !")
  19.         print("Restarting !")
  20.         sleep(3)
  21.     end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement