Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("bottom")
- state = 1
- while true do
- launch = rednet.receive("launch", 1)
- if launch then
- if(state == 1) then
- redstone.setOutput("left", false)
- state = 0
- else
- redstone.setOutput("left", true)
- state = 1
- end
- else
- redstone.setOutput("left", false)
- end
- os.sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement