Minecraft wiki entry for Phantom, associated text: Phantoms are counted toward the hostile mob cap, but they don't adhere to it when spawning.[1] Their spawning mechanic is based on the location of players in the world rather than by chance, unlike regular mob spawning. Phantoms increase in number every consecutive night a player hasn't slept and stop spawning when the player sleeps.