Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("right")
- rs.setOutput("bottom", false)
- while true do
- id, message = rednet.receive()
- if message == "SternAn" then
- while true do
- if math.random(2) <= 1 then
- rs.setOutput("bottom", true)
- sleep(1)
- else
- rs.setOutput("bottom", false)
- sleep(1)
- end
- if redstone.getInput("top") then
- rs.setOutput("bottom", false)
- break
- end
- end
- elseif message == "LichtAn" then
- rs.setOutput("bottom", true)
- elseif message == "LichtAus" then
- rs.setOutput("bottom", false)
- end
- end
Add Comment
Please, Sign In to add comment