Cara, considerando que você tenha as espadas na hotbar, pode usar isso aqui (fiz agora, não testei kk se não funcionar só falar)
Código:
$${
//////////////////////////////////;
// PERSONALIZE COMO QUISER //////;
&delay_entre_hits = "120ms"; // Delay entre os hits;
#durabilidade = 100; // Durabilidade para trocar de espada;
////////////////;
////////////;
////////;
/////;
//;
toggle(a);
if(!a);
log(off);
stop;
endif;
log(on);
&id_espadas = "267|iron_sword|268|wooden_sword|272|stone_sword|276|diamond_sword";
wait(1);
set(#yaw,"%YAW%");
inc(#yaw,180);
if(#yaw >= 360);
dec(#yaw,360);
endif;
set(#pitch,"%PITCH%");
do();
ifmatches(%ITEM%,"^(%&id_espadas%)$");
if(%DURABILITY% > %#durabilidade%);
look(%#yaw%,%#pitch%);
key(attack);
wait(%&delay_entre_hits%);
else;
inventoryup(1);
wait(3t);
endif;
else;
inventoryup(1);
wait(3t);
endif;
loop;
}$$