The bug
Some mobs that flee after being attacked by a player in creative no longer flees when being attacked by a player in creative.
Villagers, baby piglins and baby hoglins are the only mobs that are not affected by this bug.
To reproduce
Spawn a strider
In creative mode, hit the strider
→ ❌ No retreating sounds are heard from the strider
Affected mobs
Chicken
Cow / Mooshroom
Donkey / Mule
Llama / Trader llama
Horse / Skeleton horse / Zombie horse
Fox
Parrot
Pig
Rabbit (Including the Killer Bunny)
Sheep
Strider
Wandering trader
Baby polar bear
The cat has this issue still. They do not flee when hit on java but on bedrock they do flee.