minecraft:behavior.restrict_open_door

Allows the mob to stay indoors during night time.

Properties

PropertyTypeDefaultWhat it does
priorityIntegermin 00
control_flagsList of text[]

Example from the game files

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

{
  "minecraft:behavior.restrict_open_door": {
    "priority": 5
  }
}

Used by 1

Vanilla entities with minecraft:behavior.restrict_open_door in their definition:

Related components