Skip to main content

Entity AI goal reference (38/41)

This page carries the AI goal (behavior) pages of MS Learn (MicrosoftDocs/minecraft-creator a9fd1c0, CC BY 4.0). IDs, property names, types, default values and JSON are as in the original. The full list is in the index.

minecraft:behavior.teleport_to_owner​

(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityGoals/minecraftBehavior_teleport_to_owner.md)

Allows an entity to teleport to its owner.

[!Note] This item requires a format version of at least 1.21.20.

Entity Teleport To Owner Behavior Properties​

NameDefault ValueTypeDescriptionExample Values
control_flags[]Control Flags choices
cooldown1Decimal numberThe time in seconds that must pass for the entity to be able to try to teleport again.
filters (Filters){"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null}Filters itemConditions to be satisfied for the entity to teleport to its owner.Parrot: {"all_of":[{"test":"owner_distance","operator":">","value":12},{"test":"is_panicking"}]}
filters (Alternate 1)not setObject
priority0Integer numberAs priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal.

Control Flags choices​

ValueTitleDescription
jumpJump
lookLook
moveMove

Filters​

Filters Properties​

JSON path: filters

NameDefault ValueTypeDescription
domainnot setObjectThe domain the test should be performed in.
operatornot setObjectThe comparison to apply with 'value'.
subjectnot setObjectThe subject of this filter test.
testnot setStringThe name of the test to apply.
valuenot setObjectThe value being compared with the test.

Samples​

Parrot​
"minecraft:behavior.teleport_to_owner": {
"filters": {
"all_of": [
{
"test": "owner_distance",
"operator": ">",
"value": 12
},
{
"test": "is_panicking"
}
]
},
"priority": 0
}
Sources
idSourceLicenseCommitAccessed
ms-learnMinecraft Creator documentation (Microsoft Learn)CC BY 4.0 (documentation), MIT (code)a9fd1c02026-11-13