Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #import:iT4NKZfx;
- main:{
- print("turtle should be facing source chest");
- slots = [];
- input("press enter to read recipe");
- for(i=0;i<16;i++){
- if (getItemCount(i)==0){continue;};
- slots.add(i);
- };
- amount = tonumber(input("amount/cycle"));
- direction = getDirection();
- while (true) {
- #{
- setDirection(direction);
- for(i=0;i<slots.length;i++) {
- suck(slots[i],amount);
- };
- };
- craft();
- left();
- left();
- #{
- setDirection((direction + 2) % 4);
- for(i=0;i<16;i++){
- if (getItemCount(i)==0){continue;};
- drop(i, 64);
- };
- };
- left();
- left();
- }
- }
Add Comment
Please, Sign In to add comment