Minecraft wiki entry for Combat, associated text: If you have iron or diamond swords, charge and spam-click.‌[Bedrock Edition only] You will need to be extremely fast as they explode relatively quickly.