In this tutorial we will show you how to Disable the Insomnia mechanic on your server to prevent phantoms from spawning and attacking players who haven’t slept for 3 or more days.

  1. Head over to your server Console or enter into your Minecraft Server.
  2. Enter the command /gamerule doInsomnia false (ensuring to keep the upper case letters). This'll disable the insomnia mechanic, preventing phantom spawns. Similarily, do /gamerule doInsomnia true to re-enable the insomnia mechanic. Please note that these commands are case sensitive.
    Entering the doInsomnia gamerule command on a Minecraft server
  3. That's it! The Insomnia mechanic is now disabled and phantoms will no longer annoy your players through the night.
    phantoms will be disabled or enabled with this command

If you're still having problems disabling insomnia, feel free to contact our support team at https://serverminer.com/contact and we will happily help you resolve the issue!

Happy mining! ⛏️