The bug
Most monster spawn eggs are disabled in peaceful mode. They cannot be used, and even in survival, the item is not consumed. However, the arm still swings.
How to reproduce
/difficulty peacefulGet a zombie spawn egg
Try to use it on the ground
Expected result
No response
Observed result
Hand swing animation plays
Can confirm