Advertisement
joeyahines

Untitled

Jun 25th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. rednet.open("bottom")
  2. state = 1
  3. while true do
  4. launch = rednet.receive("launch", 1)
  5. if launch then
  6. if(state == 1) then
  7. redstone.setOutput("left", false)
  8. state = 0
  9. else
  10. redstone.setOutput("left", true)
  11. state = 1
  12. end
  13. else
  14. redstone.setOutput("left", false)
  15. end
  16. os.sleep(1)
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement