minecraft:insomnia

Adds a timer since last rested to see if phantoms should spawn.

Properties

PropertyTypeDefaultWhat it does
days_until_insomniaDecimal3Number of days the mob has to stay up until the insomnia effect begins.

Example from the game files

This is how vanilla Player uses it in Minecraft Bedrock 1.26.60.5:

{
  "minecraft:insomnia": {
    "days_until_insomnia": 3
  }
}

Used by 1

Vanilla entities with minecraft:insomnia in their definition:

Related components