Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shell.run("clear")
- print("[1] Open main door")
- print("[2] Close main door")
- print("[3] Lights on")
- print("[4] Lights off")
- print("[5] Logout")
- input = read()
- if input == "1" then
- print("oening door")
- redstone.setOutput("back", true)
- sleep(1)
- end
- if input =="2" then
- print("closing door")
- redstone.setOutput("back", false)
- sleep(2)
- end
- if input == "3" then
- print("lights on")
- redstone.setOutput("left", true)
- sleep(2)
- end
- if input == "4" then
- print("lights off")
- redstone.setOutput("left", false)
- sleep(2)
- end
- if input == "5" then
- print("logging out")
- sleep(3)
- os.shutdown()
- else print("please stand by...") sleep(2) shell.run("insert program")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement