Advertisement
DYankee

TurtleTest1

Dec 13th, 2020 (edited)
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.50 KB | None | 0 0
  1. print("please enter area you would like to mine.")
  2. print("x = ")
  3. x = io.read()
  4. print("y = ")
  5. y = io.read()
  6. print("z = ")
  7. z = io.read()
  8. MineArea = x * y * z
  9.  
  10.  
  11.  
  12.  
  13. function Mine()
  14.   repeat while x > 0
  15.     do
  16.       turtle.dig()
  17.       turtle.forward()
  18.       turtle.digDown()
  19.       turtle.digUp()
  20.       x = x-1
  21.   --[[repeat while z > 0
  22.     do
  23.       turtle.turnRight()
  24.       turtle.dig()
  25.       turtle.digDown()
  26.       turtle.digUp()
  27.       turtle.turnRight
  28.       z = z-1
  29.       x=10]]
  30. end
  31.  
  32. Mine()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement