Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local pullEvent = os.pullEvent
- local password = "penis"
- rednet.open("left")
- while true do
- term.clear()
- term.setCursorPos(1,1)
- print("Passwort: ")
- input = read("*")
- if input == password then
- id,message = rednet.receive()
- if id == 6 and message == "is open" then
- rs.setOutput("bottom",false)
- rednet.send(6,"is closed")
- elseif id == 6 and message == "is closed" then
- rs.setOutput("bottom",true)
- rednet.send(6,"is open")
- end
- else
- print("Falsches Passwort")
- end
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement