Advertisement
Guest User

quarry1

a guest
Mar 12th, 2014
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.68 KB | None | 0 0
  1. local function Forward(forward1)
  2.  for o = 1, forward1 do
  3.    if block then
  4.      turtle.dig()
  5.      turtle.forward(1)
  6.    else
  7.      turtle.forward(1)
  8.    end
  9.  end
  10. end
  11.  
  12. term.write("How many blocks down? ")
  13. down = read()
  14. term.write("How many blocks forward? ")
  15. forward = read()
  16. term.write("How many blocks sideways? ")
  17. side = read()
  18. print("I will go "..forward.." forward, "..down.." down, "..side.." sideways")
  19. block = turtle.detect()
  20.  
  21. for i = 1, down do
  22.    Forward(forward)
  23.    turtle.turnRight()
  24.    Forward(side)
  25.    turtle.turnRight()
  26.    Forward(forward)
  27.    turtle.turnRight()
  28.    Forward(side)
  29.    turtle.turnRight()
  30.    turtle.digDown()
  31.    turtle.down()
  32. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement