Shulkers prevent other hostile mobs from spawning, despite the fact that they neither spawn nor despawn naturally. Naming the shulker or placing them in a boat will cause them to stop counting towards the mob cap, which is intended per MC-182897, even though nothing changed. They can't despawn regardless, so they should never be counted towards the mob cap.
Almost all other mobs that don't despawn naturally will not be counted towards the mob cap: this includes:
Mobs that have picked up loot
Mobs in boats
Elder Guardians
Named mobs
Thank you for your report!
We're tracking this issue in MC-261793, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.