Advertisement
MavricMC

Basic Miner

May 30th, 2021 (edited)
289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.96 KB | None | 0 0
  1. --Remember to fuel up the turtle first and equip a the right tool for the job--
  2. x = 10
  3.  
  4. y = 10
  5.  
  6. z = 10
  7.  
  8. turn = false
  9. up = false
  10. for z = 1, x do
  11.     if (up) then
  12.         turtle.digDown()
  13.         turtle.down()
  14.         turtle.turnLeft()
  15.         turtle.turnLeft()
  16.     end
  17.     up = true    
  18.     yk = false
  19.     for y = 1, y do
  20.         if (yk) then
  21.             if (turn) then
  22.                 turtle.turnLeft()
  23.                 turtle.dig()
  24.                 turtle.forward()
  25.                 turtle.turnLeft()
  26.                 turn = false
  27.             else
  28.                 turtle.turnRight()
  29.                 turtle.dig()
  30.                 turtle.forward()
  31.                 turtle.turnRight()
  32.                 turn = true
  33.             end
  34.         end
  35.         yk = true
  36.         xk = false
  37.         for x = 1, x do
  38.             if (xk) then
  39.                 turtle.dig()
  40.                 turtle.forward()
  41.             end
  42.             xk = true
  43.         end
  44.     end
  45. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement