Advertisement
xbsktball10x

Untitled

Nov 29th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. function refill()
  2. for y = 2,16 do
  3. turtle.select(1)
  4. if turtle.compareUp() == true do
  5. turtle.select(y)
  6. turtle.suckUp()
  7. end
  8. end funtion
  9.  
  10.  
  11. even = false
  12. for k = 1,13 do
  13. for i = 1,23 do
  14. if turtle.getItemCount(x) == 0 then
  15. repeat turtle.select(x+1)
  16. x = x + 1
  17. if x == 15 then
  18. x = 1
  19. end
  20. end
  21.  
  22. turtle.dig()
  23. turtle.place()
  24. turtle.back()
  25. end
  26.  
  27. if even== false then
  28. turtle.turnRight()
  29. turtle.back()
  30. turtle.turnRight()
  31. even = true
  32.  
  33. else if even == true then
  34. turtle.turnLeft()
  35. turtle.back()
  36. turtle.turnLeft()
  37. even = false
  38. end
  39. end
  40.  
  41. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement