Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Controller Computer
- pass = "pie"
- rednet.open("left")
- while true do
- id, msg = rednet.receive()
- if msg == "door" then
- rednet.send(id, "controller")
- else
- if msg == pass then
- rednet.send(id, "open")
- else
- redstone.setOutput("top", true)
- sleep(2)
- redstone.setOutput("top", false)
- rednet.send(id, "memelord")
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement