This macro is optimized for PvP in Minecraft version 1.7.10. Install your sword on slot 1 or 3. Then, in the Keyran program, bind the macro to any mouse button. When holding the assigned button, the macro will automatically perform the actions optimal for the fight.