Minecraft wiki entry for Insomnia, associated text: Insomnia is a mechanic in Minecraft that allows phantoms to spawn around players that have not entered a bed or died for three in-game days (1 hour or 72000 ticks). This value is specifically defined by the "Since last rest" statistic and cannot be altered through commands.