Advertisement
thedanster7000

quarry

Dec 13th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.07 KB | None | 0 0
  1. depth = 0
  2. function forwardCustom()
  3.     if (turtle.forward()) then
  4.         rednet.send(3,"Moving","jebBot")
  5.     else
  6.         rednet.send(3,"Shutting Down","jebBot")
  7.         os.shutdown()
  8.     end
  9. end
  10. while (depth<50) do
  11.     for i=1,5,1 do
  12.         forwardCustom()
  13.         turtle.digDown()
  14.     end
  15.     turtle.turnLeft()
  16.     for i=1,4,1 do
  17.         forwardCustom()
  18.         turtle.digDown()
  19.     end
  20.     turtle.turnLeft()
  21.     for i=1,4,1 do
  22.         forwardCustom()
  23.         turtle.digDown()
  24.     end
  25.     turtle.turnLeft()
  26.     for i=1,3,1 do
  27.         forwardCustom()
  28.         turtle.digDown()
  29.     end
  30.     turtle.turnLeft()
  31.     for i=1,3,1 do
  32.         forwardCustom()
  33.         turtle.digDown()
  34.     end
  35.     turtle.turnLeft()
  36.     for i=1,2,1 do
  37.         forwardCustom()
  38.         turtle.digDown()
  39.     end
  40.     turtle.turnLeft()
  41.     for i=1,2,1 do
  42.         forwardCustom()
  43.         turtle.digDown()
  44.     end
  45.     turtle.turnLeft()
  46.     forwardCustom()
  47.     turtle.digDown()
  48.     turtle.turnLeft()
  49.     forwardCustom()
  50.     turtle.digDown()
  51.     turtle.down()
  52.     turtle.turnRight()
  53.     forwardCustom()
  54.     forwardCustom()
  55.     turtle.turnRight()
  56.     forwardCustom()
  57.     forwardCustom()
  58.     turtle.dig()
  59.     forwardCustom()
  60.     turtle.turnRight()
  61.     turtle.turnRight()
  62.     depth = depth + 1
  63. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement