minecraft:behavior.move_towards_home_restriction

Allows entities with a "minecraft:home" component to move towards their home position. If "restriction_radius" is set, entities will be able to run this behavior only if outside of it.

Properties

PropertyTypeDefaultWhat it does
speed_multiplierDecimal1This multiplier modifies the entity's speed when moving towards its restriction.
priorityIntegermin 00
control_flagsList of text[]

Example from the game files

This is how vanilla Wandering Trader uses it in Minecraft Bedrock 1.26.60.5:

{
  "minecraft:behavior.move_towards_home_restriction": {
    "speed_multiplier": 0.6,
    "priority": 6
  }
}

Used by 4

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

Related components