Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function clear()
- term.clear()
- term.setCursorPos(1,1)
- end
- clear()
- print("welcome to martin0leung, skrillex6264 and michelle0leung's house, in order to open the door, please type in the password")
- function lock()
- os.pullEvent = os.pullEventRaw
- end
- local pass = "322221"
- term.setCursorPos(1,5)
- write("password:")
- input = read("*")
- if pass == input then
- print("Password correct!")
- redstone.setOutput("top",true)
- sleep(5)
- redstone.setOutput("top",false)
- shell.run("reboot")
- else
- print("password incorrect!")
- shell.run("reboot")
- end
Advertisement
Add Comment
Please, Sign In to add comment