Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- password = "gold"
- pass2 = "Gold"
- while true do
- term.clear()
- term.setCursorPos(1,1)
- print("What is the block in the middle made of?")
- input = read()
- if input == password or pass2 then
- print("Correct!")
- redstone.setOutput("left", true)
- sleep(5)
- redstone.setOutput("left", false)
- sleep(1)
- end
- if input ~= password or pass2 then
- print("Nope!")
- sleep(20)
- end
- end
- --this says that the program is now complete
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement