minecraft:behavior.teleport_to_owner
Allows an entity to teleport to its owner.
Properties
| Property | Type | Default | What it does |
|---|---|---|---|
filters | Object 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. |
test | Text | — | The name of the test to apply. |
subject | Boolean or Integer or Decimal or Text | — | The subject of this filter test. |
operator | Boolean or Integer or Decimal or Text | — | The comparison to apply with 'value'. |
domain | Boolean or Integer or Decimal or Text | — | The domain the test should be performed in. |
value | Boolean or Integer or Decimal or Text | — | The value being compared with the test. |
cooldown | Decimalmin 0 | 1 | The time in seconds that must pass for the entity to be able to try to teleport again. |
priority | Integermin 0 | 0 | |
control_flags | List 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
behavior.floatbehavior.random_swimbehavior.swim_idlebehavior.swim_wanderbehavior.use_kinetic_weaponbehavior.move_to_waterbehavior.float_wanderbehavior.go_homebehavior.random_hoverbehavior.slime_floatbehavior.slime_keep_on_jumpingbehavior.slime_random_directionbehavior.move_to_landbehavior.move_to_random_blockbehavior.circle_around_anchorbehavior.dragonholdingpatternbehavior.dragonlandingbehavior.dragontakeoffbehavior.explore_outskirtsbehavior.find_underwater_treasurebehavior.move_to_blockbehavior.move_to_liquidbehavior.random_breachbehavior.random_fly