So I wanted to see ghast vision but whenever I enter spectator mode, ghasts will just despawn. Even with a name tag. It's pretty obvious to reproduce the bug anyways, but I'll tell you all. Try a ghast without a name tag, then enter spectator. Then try it with a name tag.
I also looked for an issue with the likings of this, but did not find one, so don't hate all over me if it is a duplicate.
Linked issues
duplicates 1
Comments 5
See MC-46776
that part is MC-54556
intended, if only a spectator stays near a mob the mob despawns as a spectator is counted as no player