daily pastebin goal
29%
SHARE
TWEET

startup

a guest Feb 20th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. term.setCursorPos(1,1)
  2. term.clear()
  3.  
  4. motdepasse = "2525"
  5.  
  6. print("Temps d'ouverture de la porte (seconde) ?")
  7.  
  8. time = read()
  9. time = tonumber(time)
  10.  
  11. print("Veuillez saisir le mot de passe :")
  12.  
  13. text = read("*")
  14.  
  15. if text == (motdepasse) then
  16.  
  17. write("La porte restera ouverte pendant "..time.." seconde(s)")
  18.  
  19. redstone.setOutput("left", true)
  20.  
  21. term.setCursorPos(1,1)
  22. term.clear()
  23. sleep(time)
  24.  
  25. redstone.setOutput("left", false)
  26.  
  27. else
  28.  
  29. write("Le mot de passe que vous avez saisi est incorrect !")
  30. sleep(3)
  31.  
  32. end
  33.  
  34. os.shutdown()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top