Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local pullEvent = os.pullEvent
- os.pullEvent = os.pullEventRaw
- while true do
- term.clear()
- term.setCursorPos(1, 1)
- print("The area outside this facility is free of taint.")
- term.setCursorPos(1, 2)
- print("Please leave all tainted items behind when leaving this facility.")
- term.setCursorPos(1, 3)
- print("Please enter password to begin door opening procedure: ")
- input = read()
- if input == "password" then
- term.clear()
- term.setCursorPos(1, 1)
- print("Password correct, please stand by. Pyrotheum purging in progress...")
- redstone.setBundledOutput("back", 3)
- sleep(2)
- term.clear()
- term.setCursorPos(1, 1)
- print("Each door will remain open for 10 seconds. After second door closes, chamber will be flooded with pyrotheum.")
- redstone.setBundledOutput("back", 9)
- sleep(10)
- redstone.setBundledOutput("back", 5)
- sleep(10)
- redstone.setBundledOutput("back", 0)
- end
- if input == "debug" then
- os.pullEvent = pullEvent
- end
- if input ~= "password" and input ~= "debug" then
- term.clear()
- term.setCursorPos(1, 1)
- print("Password correct, please stand by. Pyrotheum purging in progress...")
- redstone.setBundledOutput("back", 3)
- sleep(2)
- term.clear()
- term.setCursorPos(1, 1)
- print("Each door will remain open for 10 seconds. After second door closes, chamber will be flooded with pyrotheum.")
- redstone.setBundledOutput("back", 9)
- sleep(10)
- redstone.setBundledOutput("back", 0)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment