When in singleplayer, if you type in the command /gamemode 3, meaning to switch to spectator mode, all hostile mobs dissapear.
[SOLVED] Turns out this was intended. People, stop posting in the commments about this being a duplicate. I KNOW THAT.
Linked issues
duplicates 1
Attachments
Comments 5
@@unknown: This is not a duplicate of MC-46776. Instead it is a bug that was introduced by that bug's fix. Please reopen.
To illustrate what is wrong here, try this:
Name a mob.
Go to spectator mode. (If you are in multiplayer, no other players may be nearby when you do this.)
The mob despawns.
this is intended, like Fenhl said a fix for MC-46776 but that named mobs despawn, isn't supposed to happen, however this isn't that bug report
this bug report says all hostiles despawn then, that is intended
I opened MC-54556 for the issue I described.
Duplicate of MC-46776