Advertisement
yutaponabe

minecraft ComputerCraft pass door

Feb 27th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. --seting pass--
  2. pass = ("1234")
  3. ---------------
  4.  
  5. while true do
  6. print("Enter password.")
  7. a = read()
  8. if a == pass then
  9. print("Password correct!")
  10. rs.setOutput("right", true)
  11. sleep(3)
  12. rs.setOutput("right", false)
  13. elseif a == "exit" then
  14. print("Good bay")
  15. else
  16. print("Password incorrect!")
  17.  
  18. rs.setOutput("top", true)
  19. print("Enter Masster Pass")
  20. b = read()
  21. if b == "4321" then
  22. print("password correct!")
  23. rs.setOutput("top", false)
  24. else
  25. print("password incoorretc!")
  26. end
  27. end
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement