Do these 3 things before closing this tab:
1Fix the driver behind crashes, sound loss and screen glitches2Clear out junk files and repair common Windows errors3Scan for outdated or missing drivers - takes under a minuteYes. If you can change the world’s game rules, use /gamerule doInsomnia false to disable phantom spawning. In ordinary survival, sleep in a bed before three in-game days pass without rest. Shelter and cats can help in specific situations, but they do not turn off the rule.
Turn off phantom spawning with a game rule
Enter /gamerule doInsomnia false in chat or the command interface. The Minecraft Wiki’s gamerule reference lists this setting for stopping phantoms, and Microsoft’s Bedrock documentation describes DoInsomnia as controlling effects of not sleeping, including phantom spawning. The setting disables the insomnia mechanic rather than merely protecting you from an attack.
You may need permission to use commands, depending on your world or server settings. There is no single permission procedure that applies across all platforms and servers. Use the spelling and capitalization accepted by your edition and version; examples commonly use doInsomnia or doinsomnia.
Prevent phantoms in ordinary survival
Sleep in a bed before going three in-game days without rest. Mojang says phantoms target players who have not slept for at least an hour, or three in-game days, and its phantom overview, published February 16, 2026, describes sleeping as the way to avoid the insomnia trigger. This is a recurring survival routine, not a permanent world-wide setting.
Outdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchWindows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstall#1 Best Overall
- DELUXE COLLECTION — Includes Minecraft: Java & Bedrock Edition, three Bedrock add-ons, three exclusive Character Creator items, and 700 Minecoins.
- CREATE YOUR WORLD — Build whatever you imagine in an infinite world that’s unique in every playthrough.
- EXPLORE AND CRAFT — Discover biomes, resources, and mobs, then craft your way through a sandbox world filled with surprises.
- SURVIVE THE ADVENTURE — Face mysterious foes, travel across exciting landscapes, and venture into perilous dimensions.
- PLAY TOGETHER — Play cross-platform with friends in Bedrock Edition on console, mobile, and PC, or join community servers in Java Edition on PC, Mac, and Linux. Online console multiplayer requires a platform-specific subscription (sold separately).
When you cannot sleep: manage the spawning conditions
The Minecraft Wiki’s community-maintained phantom-proofing tutorial describes phantoms spawning at night or during a thunderstorm, at light level 7 or less, above sea level, and 20–34 blocks above a player when skylight access is not blocked. These details may vary by version.
- Block access to the sky: A solid block overhead can prevent the described spawning conditions while you work or remain AFK.
- Stay below sea level: The tutorial identifies this as another way to avoid the listed conditions.
- Use a cat as a deterrent: Mojang says tamed cats hunt phantoms and phantoms keep their distance from cats, including cats inside buildings. This may reduce encounters, but it does not disable spawning.
Microsoft’s Bedrock references give more implementation detail: the insomnia component lists a default of three days until insomnia, while the phantom spawn-rule reference documents surface spawning and a weather-adjusted brightness filter from 0 to 7. Those are Bedrock-specific references; do not assume their exact configuration details apply to Java Edition.
Rank #2
- ULTIMATE COLLECTION — Includes Minecraft: Java & Bedrock Edition, five Bedrock add-ons, five exclusive Character Creator items, and 1000 Minecoins.
- CREATE YOUR WORLD — Build whatever you imagine in an infinite world that’s unique in every playthrough.
- EXPLORE AND CRAFT — Discover biomes, resources, and mobs, then craft your way through a sandbox world filled with surprises.
- SURVIVE THE ADVENTURE — Face mysterious foes, travel across exciting landscapes, and venture into perilous dimensions.
- PLAY TOGETHER — Play cross-platform with friends in Bedrock Edition on console, mobile, and PC, or join community servers in Java Edition on PC, Mac, and Linux. Online console multiplayer requires a platform-specific subscription (sold separately).
If phantoms are already attacking
For an immediate encounter, hide underground until daylight or defeat the phantoms. These actions can get you through the current attack, but they do not prevent future phantom spawns. For a server-specific answer, check the server’s edition, version, and command permissions.
Quick Recap
Rank #4
- 8,800 MINECOINS — Get 8,800 Minecoins to spend on creator-made content in the Minecraft Marketplace.
- MINECRAFT MARKETPLACE — Browse a constantly updating library of content from Minecraft creators, with new content available every week.
- CREATOR-MADE CONTENT — Use Minecoins to get Marketplace content such as skin packs, mash-up packs, mini-games, and adventure maps.
- ACCESS ACROSS DEVICES — Once redeemed and linked to your Microsoft account, your Minecoins and purchases are available on supported devices that run Minecraft, including Android, iOS, Windows, and Xbox.
- A GIFT FOR PLAYERS — Give Minecraft players Minecoins to spend on content in the in-game Marketplace.
Rank #3
- Fight your way through an all-new action-adventure game, inspired by classic dungeon crawlers and set in the Minecraft universe!
- Play with up to four friends or brave the dungeons alone. Battle new-and-nasty mobs across action-packed, wildly varied levels, in a quest to defeat the evil Arch-Illager!
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




