Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon = peripheral.wrap("top")
- mon.clear()
- while true do
- term.clear()
- term.setCursorPos(1, 1)
- print("Enter Password:")
- local input = read("*")
- if input == "159159159" then
- mon.setCursorPos(1, 3)
- mon.write("Access")
- mon.setCursorPos(1, 4)
- mon.write("Granted")
- redstone.setOutput("bottom", true)
- sleep(6)
- redstone.setOutput("bottom", false)
- mon.clear()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement