Skip to content

Instantly share code, notes, and snippets.

@Orpheon
Last active September 13, 2016 01:30
Show Gist options
  • Select an option

  • Save Orpheon/a0f39efc1e1b448e704023ecd62cb0c0 to your computer and use it in GitHub Desktop.

Select an option

Save Orpheon/a0f39efc1e1b448e704023ecd62cb0c0 to your computer and use it in GitHub Desktop.
while true do
minstack = 0
for i=1,16,1 do
turtle.select(i)
if i == 6 then
turtle.suck(1)
elseif i%4 ~= 0 and i<12 and turtle.getItemCount() <= minstack then
turtle.suckUp(1)
minstack = turtle.getItemCount()
end
end
craft_successful = turtle.craft()
if craft_successful then
turtle.dropDown()
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment