Skip to main content

Entity AI goal reference (4/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.barter​

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

Enables the mob to barter for items that have been configured as barter currency. Must be used in combination with the barter component.

[!Note] Requires the minecraft:barter component and barter_table loot table in order to work properly.

[!Note] Requires the following component in order to work properly:

  • Barter (minecraft:barter)

Entity Barter Behavior Properties​

NameDefault ValueTypeDescription
control_flags[]Control Flags choices
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

Samples​

minecraft:behavior.beg​

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

Allows this mob to look at and follow the player that holds food they like.

Entity Beg Behavior Properties​

NameDefault ValueTypeDescription
control_flags[]Control Flags choices
items[]StringList of items that this mob likes
items (as Keyed set of strings)not setKeyed set of strings
look_distance8Decimal numberDistance in blocks the mob will beg from
look_time{"max":4,"min":2}Look Time itemThe range of time in seconds this mob will stare at the player holding a food they like, begging for it
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

Block IntRange​

Block IntRange Properties​

JSON path: look_time

NameDefault ValueTypeDescription
max0Integer number
min0Integer number

Samples​

minecraft:behavior.break_door​

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

Allows this mob to break doors.

[!Note] Not currently used by any entities within Minecraft: Bedrock Edition. In its place, the parameter can_break_doors has been added to the minecraft:navigation component to allow entities to break down doors.

Entity Break Door Behavior Properties​

NameDefault ValueTypeDescription
control_flags[]Control Flags choices
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

minecraft:behavior.breed​

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

Allows this mob to breed with other mobs.

[!Note] Requires the following component in order to work properly:

  • Breedable (minecraft:breedable)

Entity Breed Behavior Properties​

NameDefault ValueTypeDescriptionExample Values
control_flags[]Control Flags choices
priority0Integer numberAs priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal.Chicken: 3, Frog: 4
speed_multiplier1Decimal numberMovement speed multiplier applied to the mob when using this AI Goal.Chicken: 1, Goat: 0.6

Control Flags choices​

ValueTitleDescription
jumpJump
lookLook
moveMove

Samples​

Chicken​
"minecraft:behavior.breed": {
"priority": 3,
"speed_multiplier": 1
}
Frog​
"minecraft:behavior.breed": {
"priority": 4
}
Goat​
"minecraft:behavior.breed": {
"priority": 3,
"speed_multiplier": 0.6
}
Llama​
"minecraft:behavior.breed": {
"priority": 4,
"speed_multiplier": 1
}
Sources
idSourceLicenseCommitAccessed
ms-learnMinecraft Creator documentation (Microsoft Learn)CC BY 4.0 (documentation), MIT (code)a9fd1c02026-11-13