Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- password = "itemlock"
- while true do
- term.clear()
- term.setCursorPos(1,1)
- print( "Josh's door lock")
- write "Password:"
- input = read("*")
- if input == password then
- redstone.setOutput("left",true)
- sleep(10)
- elseif input == "BD" then
- break
- else
- print "Wrong PAssword! Who the fuck are you? try again?"
- sleep(2)
- redstone.setOutput("right",true)
- sleep(10)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement