minecraft:behavior.open_door

Allows the mob to open doors. Requires the mob to be able to path through doors, otherwise the mob won't even want to try opening them.

Properties

PropertyTypeDefaultWhat it does
close_door_afterBooleantrueIf true, the mob will close the door after opening it and going through it.
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.open_door": {
    "close_door_after": true,
    "priority": 6
  }
}

Used by 1

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

Related components