The zombie will suddenly stand still, but still have an entity collision, and the first attack can cause damage, the second attack begins to be invalid but it will lose the durability of the weapon (including fire and other things that can cause damage).It seems not only zombies, but also other hostile creatures.
Related issues
Attachments
Comments


Thank you for using the bug tracker, however, this is a duplicate of MC-134974. Please use the search function, as well as Community Support before reporting an issue on the bug tracker.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki