tomtrein

Untitled

Oct 16th, 2016
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local findtrain = function()
  2. turtle.select(16)
  3. for i=1, 4 do
  4. if turtle.compare() then
  5. turtle.turnLeft()
  6. end
  7. end
  8. turtle.select(1)
  9. end
  10.  
  11. findtrain()
  12. print("how many stacks")
  13. stacks = read()
  14. for o=1, stacks do
  15. p=0
  16. turtle.turnRight()
  17. while turtle.suck()==false do
  18. p = p+1
  19. if p==4 then
  20. break
  21. end
  22. turtle.Right()
  23. end
  24. findtrain()
  25. turtle.drop()
  26. end
Advertisement
Add Comment
Please, Sign In to add comment