Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- os.pullEvent = os.pullEventRaw --This is the piece of code that prevents people from using ctrl + c to kill or reboot the pc. This is useless if you do not save this as startup
- term.clear()
- term.setCursorPos(1, 1)
- print("Welcome to FA Base") --This you can rename to whatever you want to. This is a message that tells people where they are about to enter into
- term.setCursorPos(1, 3)
- sleep(1)
- print("Please Enter Password")
- input = read("*") --This is the piece of code that makes the letters you type in into asterisks "*" to prevent people from seeing your password
- if input == "Password" then --Here you can type any password you choose
- print("Correct Password")
- rs.setBundledOutput ("top", colors.white) --This uses rednet cables. Replace white with whatever color you want
- sleep(3)
- rs.setBundledOutput ("top",rs.getBundledOutput ("top")-colors.white) --Same as above. this just ends the redstone signal. Replace white
- end --This is the end of this Variable. You can copy and paste this to create more Variables. Replace the colors with different ones and change the "password"
- if input == "Root" then --This is just the Command or password to kill the program. You can change Root to any sort of "administrator" Password you want
- print("Closing Software")
- sleep(1)
- term.clear()
- term.setCursorPos(1, 1)
- sleep(2)
- return --This is the command that ends the program. Do not change this
- end
- end
- -- Thank you for checking out my basic program
- -- This code is unbeatable, but if they get your admin code you are done for
- -- Please ensure when you save this on your computercraft Computer, to save it as either "disk/startup" or just "startup".
- -- When using "disk/startup", you need to ensure you have a disk drive with a floppy disk in.
- -- This program was written by ZeroCool5254 for my base on the ftbunleashed.net server. Go check them out.
- -- If you are in game feel free to send me a message.
- -- Also, for a version with no help:http://pastebin.com/Y8qerbm4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement