Skip to content
[/craft]
Disable Phantoms (No Insomnia)

Disable Phantoms (No Insomnia)

Stop phantoms from spawning when you don't sleep

✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026

Prevents phantoms from spawning after players go 3+ days without sleeping. Set back to true to restore them.

/gamerule doInsomnia false
26 characters

How to use

  1. Open chat (T on Java, / on Bedrock).
  2. Paste the command.
  3. Press Enter — phantoms will never spawn.

Related commands