How to turn off phantoms in Minecraft
Run /gamerule spawn_phantoms false and phantoms no longer spawn, even for players who have not slept for nights.
spawn_phantoms
Controls whether phantoms spawn when players have not slept for a few nights.
/gamerule spawn_phantoms <true|false> Examples
/gamerule spawn_phantoms false Turn phantoms off.
Values
| Value | What it does |
|---|---|
| trueDefault | On |
| false | Off |
Arguments
true|falseOptionaltrueturns the rule on,falseturns it off. Leave it out to show the current value.
What it does
Set it to false so phantoms never appear, no matter how long players stay awake. A favorite on SMP servers where not everyone sleeps.
Good to know
- Renamed from
doInsomnia.
Run it on your server
On a SLASHPLAY server, type it in the Console tab without the leading slash; in game, operators type it in chat with the slash. New to this? Start a Minecraft server first.
Your own
Minecraft server.
From $0.03 an hour, only while it runs. New accounts get 6 free tokens.