Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function clearMonitor()
- term.clear()
- term.setCursorPos(1, 1)
- end
- function enterPassword()
- clearMonitor()
- print("Enter Password:")
- local password = read("*")
- if password == "mog" then
- clearMonitor()
- print("Welcome Home ETvd")
- redstone.setOutput("back", true)
- print("Type 'off' to deactivate redstone signal.")
- while true do
- local input = read()
- if input == "off" then
- redstone.setOutput("back", false)
- clearMonitor()
- print("Lights Off, Cya")
- break
- else
- print("Invalid comman. Type 'off' to turn off lights")
- end
- end
- else
- clearMonitor()
- print("Employees Only")
- end
- end
- clearMonitor()
- enterPassword()
Add Comment
Please, Sign In to add comment