Skip to content

Instantly share code, notes, and snippets.

@Orpheon
Last active September 11, 2016 14:08
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 Orpheon/a0290074981dc7a47eababaacaebe047 to your computer and use it in GitHub Desktop.
Save Orpheon/a0290074981dc7a47eababaacaebe047 to your computer and use it in GitHub Desktop.
while true do
turtle.select(1)
i = 1
while i <= 16 do
successful = turtle.suck(1)
successful = successful or turtle.suckUp(1)
successful = successful or turtle.suckDown(1)
if successful then
i = i+1
end
end
i = 1
while i <= 16 do
if turtle.place() == true then
i = i+1
end
end
turtle.turnRight()
for i=1,16,1 do
turtle.select(i)
turtle.drop()
end
turtle.turnLeft()
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment