Advertisement
Axow01

Turtle Door open 7 sec

May 22nd, 2019
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. os.pullEvent = os.pullEventRaw -- makes it so no one can terminate the program
  2. pass = "0071" -- replace "norway240" with your password
  3. while true do
  4.  term.clear()
  5.  term.setCursorPos(12,5)
  6.  print("Veuiller entrer le mots de passe du Bunker :")
  7.  term.setCursorPos(12,6)
  8.  input = read("*")
  9.  if input == pass then
  10.  rs.setOutput("left",true) -- replace "left" with the side the door is connected to
  11.  print("La porte est ouverte pour quelque seconde")
  12.  sleep(5)
  13.  rs.setOutput("left",false) -- once again replace "left with the side the door is connected to
  14.  else
  15.  term.setCursorPos(12,7)
  16.  print("Le mots de passe est incorrect!!!!!")
  17.  sleep(2)
  18.  end
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement