Advertisement
DabDaddy6223

mine_one.lua

Mar 5th, 2023
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.66 KB | None | 0 0
  1. local MaxDistanceBetweenHoles = 4
  2. local blockCountTick = 0
  3.  
  4. turtle.refuel()
  5.  
  6. while turtle.detect() do
  7.     turtle.dig()
  8.     turtle.forward()
  9.     blockCountTick = blockCountTick + 1
  10.     turtle.digDown()
  11.    
  12.     if blockCountTick == MaxDistanceBetweenHoles then
  13.         turtle.turnRight()
  14.         turtle.dig()
  15.         turtle.forward()
  16.         turtle.dig()
  17.         turtle.turnLeft()
  18.         turtle.turnLeft()
  19.         turtle.forward()
  20.         turtle.dig()
  21.         turtle.forward()
  22.         turtle.dig()
  23.         turtle.turnRight()
  24.         turtle.turnRight()
  25.         turtle.forward()
  26.         turtle.turnLeft()
  27.  
  28.         blockCountTick = 0
  29.     end
  30. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement