Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- --------------------
- local doorLocation = "left"
- local password = "password"
- local doorTime = 2
- --------------------
- while true do
- 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)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement