Advertisement
ecco7777

portal controller

Feb 26th, 2015
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. re=peripheral.wrap("right")
  2. while true do
  3.  
  4. re.setFreq(1310)
  5. if re.get()=="false" then
  6. if turtle.select(1)=="false" then
  7. turtle.suck()
  8. turtle.select(1)
  9. turtle.drop()
  10. end
  11. end
  12. re.setFreq(1320)
  13. if re.get()=="false" then
  14. if turtle.select(2)=="false" then
  15. turtle.suck()
  16. turtle.select(2)
  17. turtle.drop()
  18. end
  19. end
  20. re.setFreq(1330)
  21. if re.get()=="false" then
  22. if turtle.select(3)=="false" then
  23. turtle.suck()
  24. turtle.select(3)
  25. turtle.drop()
  26. end
  27. end
  28. sleep(0.2)
  29. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement