Guest User

startup

a guest
Oct 16th, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 KB | None | 0 0
  1. findtrain = function()
  2. for i=1, 4 do
  3. turtle.select(16)
  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 i=1, stacks do
  15. p=0
  16. while turtle.suck(64)==false&&p<4 do
  17. p += 1
  18. turtle.turnLeft()
  19. end
  20. findtrain()
  21. turtle.drop()
  22. end
Advertisement
Add Comment
Please, Sign In to add comment