Switching to Peaceful Doesn't Remove All Hostile Mobs from the World
Switching the World to peaceful only removes hostile mobs in the chunks loaded around the player.
I was expecting all of the hostile mobs to be removed from the world (apart from those exempt, such as the Ender Dragon or shulkers)
Steps to Reproduce:
- Begin in a world with the diffuclty set to easy or higher
- Enclose a hostile mob in a walled area
- Teleport away (/tp ~1000 ~ ~)
- Switch the game difficulty to Peaceful
- Switch back to Easy or higher
- Teleport back to the original location (_/tp ~-1000 ~ ~)
- Notice that the hostile mob originally spawned is still present
Created Issue:
Switching To Peaceful Doesn't Remove All Hostile Mobs from the World
Switching the World to peaceful only removes hostile mobs in the chunks loaded around the player.
I was expecting all of the hostile mobs to be removed from the world (apart from those exempt, such as the Ender Dragon or shulkers)
Steps to Reproduce:
- Begin in a world with the diffuclty set to easy or higher
- Enclose a hostile mob in a walled area
- Teleport away (/tp ~1000 ~ ~)
- Switch the game difficulty to Peaceful
- Switch back to Easy or higher
- Teleport back to the original location (_/tp ~-1000 ~ ~)
- Notice that the hostile mob originally spawned is still present
SwitchingTo Peaceful Doesn't Remove All Hostile Mobs from the WorldSwitching to Peaceful Doesn't Remove All Hostile Mobs from the World
There are some differences in the way entities and chunks are loaded and handled in Bedrock, which may explain why mobs aren't immediately despawning. (For reference, see tickets MCPE-19265 and MCPE-28352 which show some spawn mechanics that are different to other platforms.)
For all intents and purposes the issue raised in this ticket has been fixed.
If hostile mobs not despawning is causing you other problems, please feel free to add more information about it, and the way it's adversely affecting gameplay here so it can be investigated. (Bear in mind though that some behaviours can't be changed!)
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Feedback – 📖 Game Wiki