Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Higgs1
Last active August 29, 2015 14:27
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 Higgs1/a81855e4775b776bca7f to your computer and use it in GitHub Desktop.
Save Higgs1/a81855e4775b776bca7f to your computer and use it in GitHub Desktop.
Computer Craft Induction Smelter Turtle
-- 1. Label Computer
-- 2. Save file as "/startup"
while true do
for slot=1,16 do
if turtle.getItemCount(slot) > 0 then
turtle.select(slot)
for j=slot+1,16 do
if turtle.compareTo(j) then
turtle.select(j)
turtle.transferTo(slot)
turtle.select(slot)
end
end
local count = turtle.getItemCount()
if count >= 2 then
count = math.floor(count / 2)
turtle.drop(count * 2)
os.sleep(count + 0.05)
break
end
end
end
os.sleep(0)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment