Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- Shell.run("clear")
- os.pullEvent = os.pullEventRaw
- textutils.slowPrint("Password to open/Close the door")
- input = read("*")
- open = "pass" --Password HERE (OPEN)
- close = "pass2" --Password HERE (CLOSE)
- Developer = "dev" -- Change if you want to
- if input == (Developer) then
- Shell.run("clear")
- break
- end
- if input == (open) then
- textutils.slowPrint("Opened the door")
- rs.setOutput("side", true) -- Change the side where the redstone output is
- end
- if input == (Close) then
- textutils.slowPrint("Closed the door")
- rs.setOutput("bottom", false)
- sleep(3)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement