Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.setBackgroundColor(colors.gray)
- term.setTextColor(colors.green)
- sSide = "back"
- password = "1234"
- yes = "yes"
- term.clear()
- term.setCursorPos(1,1)
- print("SILO A:")
- print("TYPE: CHEMICAL")
- print("SUBJECT: VILLAGE")
- sleep(1)
- write("loading")
- textutils.slowWrite("...", 1.5)
- sleep(1)
- term.clear()
- term.setCursorPos(1,2)
- print("ENTER AUTHENTIFICATION CODE TO")
- print("CONTINUE WITH LAUNCH SEQUENCE")
- term.setCursorPos(2,5)
- write("CODE:")
- input1 = read("*")
- term.setTextColor(colors.red)
- term.setCursorPos(21,7)
- if input1 == password then
- term.setTextColor(colors.blue)
- print("ACCEPTED")
- term.setCursorPos(21,8)
- term.setTextColor(colors.green)
- write("loading")
- textutils.slowWrite("...", 1.5)
- term.clear()
- term.setCursorPos(2,2)
- print("ARE YOU SURE THAT YOU WANT TO LAUNCH?")
- term.setCursorPos(5,18)
- term.setTextColor(colors.red)
- print("THIS PROCESS IS IRREVERSIBLE")
- term.setCursorPos(3,3)
- term.setTextColor(colors.green)
- input2 = read()
- if input2 == yes then
- term.clear()
- term.setCursorPos(1,2)
- print("Opening Silo...")
- redstone.setBundledOutput(sSide, colors.white)
- sleep(1)
- redstone.setBundledOutput(sSide, colors.lightGray)
- sleep(1)
- redstone.setBundledOutput(sSide, colors.lightBlue)
- sleep(5)
- redstone.setBundledOutput(sSide, 0)
- print("Calculating Missile Path...")
- sleep(1.5)
- print("Locating Target...")
- sleep(1.5)
- print("Running Aerodynamic Simulation...")
- sleep(1.5)
- write("Firing in")
- textutils.slowWrite(" 3 2 1 ", 2)
- print()
- term.setTextColor(colors.red)
- print("IGNTITION")
- redstone.setBundledOutput(sSide, colors.green)
- sleep(5)
- term.clear()
- term.setCursorPos(1,2)
- term.setTextColor(colors.green)
- print("Closing Silo...")
- redstone.setBundledOutput(sSide, colors.blue)
- sleep(5)
- redstone.setBundledOutput(sSide, colors.black)
- sleep(1)
- redstone.setBundledOutput(sSide, colors.gray)
- sleep(1)
- redstone.setBundledOutput(sSide, 0)
- term.setCursorPos(13,8)
- term.setTextColor(colors.red)
- print("AutoShutdown in 5 seconds")
- sleep(5)
- os.shutdown()
- else
- term.setTextColor(colors.red)
- term.setCursorPos(4,8)
- print("Launch Cancelled. AutoShutdown in 5 seconds")
- sleep(5)
- os.shutdown()
- end
- else
- term.setCursorPos(20,7)
- term.setTextColor(colors.red)
- print("DENIED")
- term.setCursorPos(13,8)
- print("AutoShutdown in 5 seconds")
- redstone.setBundledOutput(sSide, colors.lime)
- sleep(5)
- os.shutdown()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement