minecraft:behavior.teleport_to_owner

Allows an entity to teleport to its owner.

Properties

PropertyTypeDefaultWhat it does
filtersObject or List of object{"AND": null, "NOT": null, "OR": null, "all": null, "all_…Conditions to be satisfied for the entity to teleport to its owner.
testText—The name of the test to apply.
subjectBoolean or Integer or Decimal or Text—The subject of this filter test.
operatorBoolean or Integer or Decimal or Text—The comparison to apply with 'value'.
domainBoolean or Integer or Decimal or Text—The domain the test should be performed in.
valueBoolean or Integer or Decimal or Text—The value being compared with the test.
cooldownDecimalmin 01The time in seconds that must pass for the entity to be able to try to teleport again.
priorityIntegermin 00
control_flagsList of text[]

Example from the game files

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

{
  "minecraft:behavior.teleport_to_owner": {
    "priority": 1,
    "filters": {
      "any_of": [
        {
          "all_of": [
            {
              "test": "owner_distance",
              "operator": ">",
              "value": 12
            },
            {
              "test": "is_panicking"
            }
          ]
        },
        {
          "all_of": [
            {
              "test": "owner_distance",
              "operator": ">",
              "value": 24
            },
            {
              "test": "has_target"
            }
          ]
        }
      ]
    }
  }
}

Used by 4

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

Related components