I have seen noticed mobs like cows, sheep, horses, creepers, zombies, skeletons, and spiders do not walk when the player is in spectator mode. The only time they move is if they are forced to, for example if a creeper is next to a cat it will move, or if a zombie is on fire it will move. Endermen will not walk when player is in spectator, but they will teleport. When I switch to creative or survival mode these mobs start walking again.
Hi!
Thank you for your report!
We've already resolved this issue at MC-47533 , so I will close and link this ticket as a Duplicate.
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki