Skip to content

Instantly share code, notes, and snippets.

@indrora
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save indrora/8819685 to your computer and use it in GitHub Desktop.
Save indrora/8819685 to your computer and use it in GitHub Desktop.
function digGravel()
while turtle.detect() do
turtle.dig()
end
end
function strafeLeft()
turtle.turnLeft()
turtle.forward()
turtle.turnRight()
end
function strafeRight()
turtle.turnRight()
turtle.forward()
turtle.turnLeft()
end
function digOnePart()
turtle.up()
strafeLeft()
for x=1,3,1 do
digGravel()
strafeRight()
end
turtle.down()
for x=1,3,1 do
digGravel()
strafeLeft()
end
turtle.down()
for x=1,3,1 do
digGravel()
strafeRight()
end
turtle.up()
strafeLeft()
end
for x=1,10,1 do
digOnePart()
turtle.forward()
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment