Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --TangentLock
- --Ver. 2 rev. B
- --Last Revised 12/25/2011
- --Author TangentDelta (alias Hydrogen)
- --Revised by TangentDelta (alias Hydrogen)
- --Notes Thanks for the support guys :D
- --Platform ComputerCraft minecraft LUA virtual machine
- code = "eggs"
- debug = "ham"
- output = "left"
- tries = 5
- write "Password: "
- for triescnt = 1,tries,1 do
- password = read()
- if password == debug then
- print "Debug Activated"
- break
- end
- if password == (code) then
- print "Password Correct. Ending Session"
- redstone.setOutput(output, true)
- sleep(5)
- redstone.setOutput(output, false)
- os.shutdown()
- else
- print ("Password Incorrect. Tries left: ",tries-triescnt)
- write "Password: "
- end
- if triescnt == tries then
- print "Maximum Tries Reached."
- sleep(2)
- print "shutting Down"
- sleep(1)
- os.shutdown()
- else
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement