Advertisement
Guest User

password

a guest
Feb 21st, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.50 KB | None | 0 0
  1. password = "gold"
  2. pass2 = "Gold"
  3.  
  4. while true do
  5.  
  6.     term.clear()
  7.     term.setCursorPos(1,1)
  8.     print("What is the block in the middle made of?")
  9.     input = read()
  10.     if input == password or pass2 then
  11.         print("Correct!")
  12.         redstone.setOutput("left", true)
  13.         sleep(5)
  14.         redstone.setOutput("left", false)
  15.         sleep(1)
  16.     end
  17.     if input ~= password or pass2 then
  18.         print("Nope!")
  19.         sleep(20)
  20.     end
  21. end
  22. --this says that the program is now complete
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement