Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Made by tylorddude123, Just change the 2 password lines to the password you choose and
- -- Have fun! BootPassv1.1.02. You must save it as startup and in the
- -- folder /.minecraft/saves/MAP NAME/computer/COMPUTER ID/startup
- print ("Welcome back to computer #", os.getComputerID(), "!")
- print("Loading...")
- sleep(2)
- print("Hello!");
- sleep(2)
- debug="shutdown"
- correct="password"
- opentime = 5
- maxtries=5
- tries=0
- function lock()
- password()
- if user == debug then
- print "Shutting down CraftOS"
- shell.run("shutdown")
- end
- if user == "password" then
- print "Password correct, booting computer..."
- correct()
- end
- if not(user == correct) or (user == debug) then
- if tries == maxtries -1 then
- if protectmode then
- protect()
- else
- print "Too many tries"
- print "Shutting down..."
- sleep (2)
- shell.run("shutdown")
- end
- else
- print "Incorrect Password."
- tries = tries+1
- print (maxtries - tries, " tries left.")
- sleep(1)
- lock()
- end
- end
- end
- function correct()
- sleep(1)
- shell.run("clear")
- shell.run("shell")
- end
- function password()
- write "Input password: "
- user=read("*")
- end
- lock()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement