Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("bottom")
- p = 1
- while true do
- id, message = rednet.receive()
- if message == "TürImmer" then
- p = p + 1
- if p % 2 == 0 then
- rs.setOutput("top", true)
- else
- rs.setOutput("top", false)
- end
- elseif message == "Tür3sek" then
- rs.setOutput("top", true)
- sleep(3)
- rs.setOutput("top", false)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement