Ben_jammin0

Untitled

Jul 24th, 2021 (edited)
787
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. dog = -2
  2. man = 0
  3. --digBigTwoPointOh
  4. function nextRowRight() --proceed to the next row
  5.     turtle.turnRight()
  6.     digForward()
  7.     turtle.turnRight()
  8. end
  9. function nextRowLeft() --proceed to the next row
  10.     turtle.turnLeft()
  11.     digForward()
  12.     turtle.turnLeft()
  13. end
  14. function digForward()
  15.     turtle.dig()
  16.     turtle.digUp()
  17.     turtle.forward()
  18. end
  19. function digFifty()
  20.     for space = 1,20,1 do
  21.     digForward()
  22.     end
  23. end
  24. function goHome()
  25.     turtle.turnLeft()
  26.     for home = 1,20,1 do
  27.         turtle.forward()
  28.     end
  29. end
  30. function deposite()
  31.     turtle.turnLeft()
  32.     for items = 1,16,1 do
  33.         turtle.select(items)
  34.         turtle.drop()
  35.     end
  36.     turtle.turnLeft()
  37.     turtle.turnLeft()
  38. end
  39. function main()
  40.     for levels = 1,30,1 do
  41.         for geebs = 1,10,1 do
  42.             turtle.refuel(all)
  43.             digFifty()
  44.             nextRowRight()
  45.             digFifty()
  46.             nextRowLeft()
  47.         end
  48.         goHome()
  49.         for goUp = 0, dog, 1 do
  50.             turtle.up()
  51.         end
  52.         turtle.refuel(all)
  53.         deposite()
  54.         for goDown = 0, man, 1 do
  55.             turtle.digDown()
  56.             turtle.down()
  57.         end
  58.         man = man + 2
  59.         dog = dog + 2
  60.     end
  61.     for finish = 0, man-2, 1 do
  62.         turtle.up()
  63.     end
  64. end
  65. main()
RAW Paste Data