If hostile mobs are making Minecraft harder than you want, you can reduce the difficulty or switch the world to Peaceful. This removes the need to fight common hostile mobs while you focus on building and exploration.
How to Turn Off Monsters in a Minecraft World
- Enter the Minecraft world you want to play.
- Press T to open the chat window.
- Enter
/difficulty 0without quotation marks. - Press Enter. The source guide describes this as the Peaceful setting that prevents hostile monsters from spawning.

The source guide also notes that changing the difficulty value changes how challenging hostile mobs are.
You may also be interested in our Minecraft armor stand guide.
You May Also Like: Sterben Valorant Crosshair Settings
How to Turn Off Monsters on a Minecraft Server
On a server you do not control, you need permission from the server administrator to change the difficulty. If you own or manage the server, the source guide points to the server.properties file. Change the difficulty setting there and restart or reload the server as required by your setup.
Conclusion
Peaceful difficulty is the simplest way to stop hostile monsters from spawning in a world you control. Server owners can make the corresponding change in the server configuration.
