Advertisement
Habnef4

Test

Jan 28th, 2017
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. local x = 1
  2.  
  3. turtle.select(1)
  4. turtle.forward()
  5. for i=1,100 do
  6. if turtle.detectDown() == false then
  7. turtle.placeDown()
  8. turtle.forward()
  9. if turtle.getItemCount == 1 then
  10. local x = x + 1
  11. turtle.select(x)
  12. end
  13. else
  14. turtle.turnRight()
  15. turtle.forward()
  16. turtle.turnRight()
  17. turtle.forward()
  18. end
  19. end
  20.  
  21. for i=1,100 do
  22. if turtle.detectDown() == false then
  23. turtle.placeDown()
  24. turtle.forward()
  25. if turtle.getItemCount == 1 then
  26. local x = x + 1
  27. turtle.select(x)
  28. end
  29. else
  30. turtle.turnLeft()
  31. turtle.forward()
  32. turtle.turnLeft()
  33. turtle.forward()
  34. end
  35. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement