Advertisement
Guest User

startup

a guest
Jul 1st, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 KB | None | 0 0
  1.  
  2. local pass = "Frogz"
  3. term.write("Enter the password: ")
  4. local try = read()
  5.  
  6. function wait(n)
  7.   os.sleep(n)
  8. end
  9.  
  10. while try ~= pass do
  11.   term.write("Entor the password: ")
  12.   try = read()
  13. end
  14. if try == pass then
  15.   redstone.setOutput("back", true)
  16.   wait(3)  
  17.   redstone.setOutput("back", false)
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement