Skip to content

Instantly share code, notes, and snippets.

@indrora

indrora/digger.lua

Last active Aug 29, 2015
Embed
What would you like to do?
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
You can’t perform that action at this time.