Advertisement
Guest User

Untitled

a guest
Nov 21st, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. turtle.refuel()
  2. FlipFlop = false
  3. function mineLine(int)
  4. for i=int, 1, -1 do
  5. turtle.digForward()
  6. turtle.digDown()
  7. turtle.forward()
  8. end
  9. end
  10.  
  11. function newLine()
  12. if (FlipFlop == false) then
  13. FlipFlop = true
  14. turtle.turnLeft()
  15. turtle.forward()
  16. turtle.turnLeft()
  17. else
  18. FlipFlop = false
  19. turtle.turnRight()
  20. turtle.forward()
  21. turtle.turnRight()
  22. end
  23. end
  24.  
  25. function alternateFlipFlop()
  26. if (FlipFlop == false) then
  27. FlipFlop = true
  28. else
  29. FlipFlop = false
  30. end
  31. end
  32.  
  33. function quary(x, y)
  34. while(true) do
  35. if y, 1, -1 do
  36. mineLine(x)
  37. newLine()
  38. end
  39. alternateFlipFlop()
  40. end
  41. end
  42.  
  43.  
  44. while(true) do
  45. quary(5, 5)
  46. turtle.digDown()
  47. turtle.down()
  48. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement