Advertisement
Celica45

LuaRightTest

Mar 26th, 2022 (edited)
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.61 KB | None | 0 0
  1. function miningRight()
  2.     turtle.turnRight()
  3.     if turtle.detect() then
  4.         for i = 1, 20 do
  5.                 if turtle.detect() then
  6.                     repeat
  7.                         turtle.dig()
  8.                         local success, digdig = turtle.detect()
  9.                     until(success == false)
  10.                 end
  11.                 turtle.forward()
  12.                 turtle.digDown()
  13.         end
  14.         turtle.turnLeft()
  15.         turtle.turnLeft()
  16.         for i = 1, 20 do
  17.             turtle.forward()
  18.         end
  19.         turtle.turnRight()
  20.     else
  21.         turtle.turnLeft()
  22.     end
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement