Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local boolean Continue = true;
- local int i = 1;
- function checkForEnough(slotNum)
- if turtle.getItemCount(slotNum) < 64 then
- turtle.suck();
- turtle.select(slotNum+1);
- turtle.drop();
- if turtle.getItemCount(slotNum) < 64 then
- Continue = false;
- end
- turtle.select(1)
- end
- end
- while(true) do
- Continue = true;
- turtle.select(1)
- turtle.suck();
- checkForEnough(1);
- if Continue then
- turtle.select(2)
- turtle.suck();
- checkForEnough(2);
- end
- if Continue then
- turtle.select(3)
- turtle.suck();
- checkForEnough(3);
- end
- if Continue then
- turtle.craft();
- turtle.dropDown();
- turtle.select(1);
- end
- i=1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement