Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local oldPull = os.pullEvent
- os.pullEvent = os.pullEventRaw
- --------------------
- local doorLocation = "left"
- local password = "password"
- local doorTime = 2
- --------------------
- term.clear()
- term.setCursorPos(1, 1)
- print("Enter Password:")
- input = read("*")
- if input == password then
- redstone.setOutput(doorLocation, true)
- sleep(doorTime)
- redstone.setOutput(doorLocation, false)
- os.reboot()
- elseif input == "quazar" then
- os.pullEvent = oldPull
- os.sleep(5)
- end
- os.reboot()
Add Comment
Please, Sign In to add comment