$${
do();
look(EAST);
look(,55);
pick(leaves);
key(use);
wait(10ms);
pick(shears);
key(attack);
if(%DURABILITY%<80);
look(EAST

;
look(,275);
key(use);
wait(1)
gui(inventory);
getslotitem(42,#id,#stack);
if(%#stack%!>10);
gui();
else;
for(#slot,9,35);
getslotitem(%#slot%,#id,#stack);
if(%#stack%=64);
slotclick(%#slot%,l,true);
wait(1ms);
endif;
next;
gui();
endif;
endif;
loop;
}$$