Posted 17 March 2013 - 03:00 PM
I found this code on the FTB forums nut it does not seem to take the items from the chest or deposit them into a chest and I was wondering if anyone had any ideas.
while true do
if turtle.getItemCount(1) == 1 and turtle.getItemCount(2) == 1 then-- if the turtle has an item in slot 1 and 2
turtle.select(1)-- select first slot
if not turtle.craft() then-- try to craft the two swords together, if it doesn't work, one was already fully repaired
for i = 1,2 do-- try to put both swords down into the barrel (only the fully repaired will go in)
turtle.select(i)
turtle.dropDown()
end
end
else-- if the turtle does not have an item in slot 1 and 2
turtle.suck()-- get another item from the input chest
end
end
Edited by