본문으로 건너뛰기

엔티티 AI 목표 레퍼런스 (23/41)

MS Learn(MicrosoftDocs/minecraft-creator a9fd1c0, CC BY 4.0)의 AI 목표(behavior) 문서를 옮긴 쪽이다. 설명은 한국어로 옮기고 ID, 속성 이름, 유형, 기본값, JSON은 원문 그대로 두었다. 전체 목록은 색인에 있다.

minecraft:behavior.melee_attack​

(출처: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityGoals/minecraftBehavior_melee_attack.md)

근접 공격으로 피해를 주게 한다. 대상이 필요하다.

Allows an entity to deal damage through a melee attack.

[!Note] In 1.26.0 the schema is stricter and rejects invalid JSON for this behavior.

[!Note] Requires a target in order to work properly. Entities can generate targets via one of the following behaviors:

  • Nearest Attackable Target Behavior (minecraft:behavior.nearest_attackable_target)

  • Hurt By Target Behavior (minecraft:behavior.hurt_by_target) [!Note] Requires the following component in order to work properly:

  • Attack (minecraft:attack)

Entity Melee Attack Behavior Properties​

이름기본값유형설명
attack_oncefalseBoolean true/false몹이 평생 이 근접 공격 행동을 한 번만 하게 한다.
attack_typesString이 엔티티가 공격할 엔티티 종류를 정의한다.
can_spread_on_firefalseBoolean true/false불이 붙은 채 빈손이면 공격에 성공할 때 대상에 불을 붙일 수 있게 한다.
control_flags[]Control Flags choices
cooldown_time1Decimal number연속 공격 사이의 쿨다운 시간(초).
inner_boundary_time_increase0.25Decimal number대상이 "path_inner_boundary"를 넘어 있을 때 공격 경로 재계산 간격에 더해지는 시간(초).
max_path_time0.550000011920929Decimal number새 공격 경로를 다시 계산하기까지의 최대 기본 시간(초). 증가분을 적용하기 전 값이다.
melee_fov90Decimal number하드코딩된 감지 컴포넌트가 유효한 공격 대상을 찾는 데 쓰는 시야각(도).
min_path_time0.20000000298023224Decimal number새 공격 경로를 다시 계산하기까지의 최소 기본 시간(초). 증가분을 적용하기 전 값이다.
on_attack{"event":"","filters":{"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null},"target":"self"}Attack item이 엔티티가 공격에 성공했을 때 발생시킬 이벤트를 정의한다.
on_kill{"event":"","filters":{"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null},"target":"self"}Kill item이 엔티티가 대상을 죽였을 때 발생시킬 이벤트를 정의한다.
outer_boundary_time_increase0.5Decimal number대상이 "path_outer_boundary"를 넘어 있을 때 공격 경로 재계산 간격에 더해지는 시간(초).
path_fail_time_increase0.75Decimal number몹이 현재 경로로 이동하지 못할 때 공격 경로 재계산 간격에 더해지는 시간(초).
path_inner_boundary16Decimal number공격 경로 재계산을 "inner_boundary_time_increase"만큼 늘리는 거리.
path_outer_boundary32Decimal number공격 경로 재계산을 "outer_boundary_time_increase"만큼 늘리는 거리.
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.
random_stop_interval0Integer number몹이 현재 공격을 멈출 확률을 1/N로 정의한다. N은 "random_stop_interval"이다.
reach_multiplier2Decimal number엔티티의 기본 크기와 함께, 공격 피해를 주려 하기 전의 최소 대상 거리를 정하는 데 쓴다.
require_complete_pathfalseBoolean true/false몹에서 대상까지 전체 이동 경로가 필요한지 지정한다.
speed_multiplier1Decimal number대상을 향해 이동할 때 몹의 이동 속도에 곱하는 배율.
track_targetfalseBoolean true/false하드코딩된 감지 컴포넌트가 없어도 몹이 대상을 추적할 수 있게 한다.
x_max_rotation30Decimal number몹이 대상을 바라보려 할 때 X축 최대 회전각(도).
y_max_head_rotation30Decimal number몹이 대상을 바라보려 할 때 Y축 최대 회전각(도).

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

Entity ActorDefinitionTrigger​

Triggers an entity event when specified conditions are met. Events activate component groups that change entity behavior—transforming villagers into zombie villagers, switching mobs to aggressive mode, or triggering growth stages. Combine with filters to create conditional state machines that respond to gameplay.

Entity ActorDefinitionTrigger Properties​

JSON path: on_attack

이름기본값유형설명
eventString
filters (Filters){"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null}Filters item필터는 데이터 객체가 사용 조건이 되는 테스트 기준을 지정할 수 있게 한다.
filters (Alternate 1)not setObject
targetselfTarget choices
filters​

Filters allow data objects to specify test criteria which allows their use. Filters can be defined by a single object of type (Filter Test), an array of tests, collection groups, or a combination of these objects.

Filters​
Filters Properties​

JSON path: on_attack > filters

이름기본값유형설명
domainnot setObject테스트를 수행할 도메인.
operatornot setObject'value'와 함께 적용할 비교 방식.
subjectnot setObject이 필터 테스트의 대상(subject).
testnot setString적용할 테스트의 이름.
valuenot setObject테스트에서 비교할 값.

Target choices​

값제목설명
babyBaby
blockBlock
damagerDamager
holderHolder
itemItem
otherOther
parentParent
playerPlayer
selfSelf
targetTarget

예시​

minecraft:behavior.melee_box_attack​

(출처: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityGoals/minecraftBehavior_melee_box_attack.md)

경계 상자 기반 사거리 계산으로 근접 공격 피해를 주게 한다.

Allows an entity to deal damage through a melee attack with reach calculations based on bounding boxes.

[!Note] In 1.26.0 the schema is stricter and rejects invalid JSON for this behavior.

Entity Melee Box Attack Behavior Properties​

이름기본값유형설명예시 값
attack_oncefalseBoolean true/false몹이 평생 이 근접 공격 행동을 한 번만 하게 한다.
attack_typesString이 엔티티가 공격할 엔티티 종류를 정의한다.
can_spread_on_firefalseBoolean true/false불이 붙은 채 빈손이면 공격에 성공할 때 대상에 불을 붙일 수 있게 한다.Drowned: true
control_flags[]Control Flags choices
cooldown_time1Decimal number연속 공격 사이의 쿨다운 시간(초).
horizontal_reach0.800000011920929Decimal number몹의 공격 사거리는 몹의 경계 크기를 모든 수평 방향으로 이 값만큼 키운 상자가 된다.
inner_boundary_time_increase0.25Decimal number대상이 "path_inner_boundary"를 넘어 있을 때 공격 경로 재계산 간격에 더해지는 시간(초).
max_path_time0.550000011920929Decimal number새 공격 경로를 다시 계산하기까지의 최대 기본 시간(초). 증가분을 적용하기 전 값이다.
melee_fov90Decimal number하드코딩된 감지 컴포넌트가 유효한 공격 대상을 찾는 데 쓰는 시야각(도).
min_path_time0.20000000298023224Decimal number새 공격 경로를 다시 계산하기까지의 최소 기본 시간(초). 증가분을 적용하기 전 값이다.
on_attack{"event":"","filters":{"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null},"target":"self"}Attack item이 엔티티가 공격에 성공했을 때 발생시킬 이벤트를 정의한다.
on_kill{"event":"","filters":{"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null},"target":"self"}Kill item이 엔티티가 대상을 죽였을 때 발생시킬 이벤트를 정의한다.
outer_boundary_time_increase0.5Decimal number대상이 "path_outer_boundary"를 넘어 있을 때 공격 경로 재계산 간격에 더해지는 시간(초).
path_fail_time_increase0.75Decimal number몹이 현재 경로로 이동하지 못할 때 공격 경로 재계산 간격에 더해지는 시간(초).
path_inner_boundary16Decimal number공격 경로 재계산을 "inner_boundary_time_increase"만큼 늘리는 거리.
path_outer_boundary32Decimal number공격 경로 재계산을 "outer_boundary_time_increase"만큼 늘리는 거리.
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.Blaze: 3, Bogged: 4, Dolphin: 2
random_stop_interval0Integer number몹이 현재 공격을 멈출 확률을 1/N로 정의한다. N은 "random_stop_interval"이다.Cave Spider: 100
require_complete_pathfalseBoolean true/false몹에서 대상까지 전체 이동 경로가 필요한지 지정한다.Drowned: true
speed_multiplier1Decimal number대상을 향해 이동할 때 몹의 이동 속도에 곱하는 배율.Bogged: 1.25
track_targetfalseBoolean true/false하드코딩된 감지 컴포넌트가 없어도 몹이 대상을 추적할 수 있게 한다.Bogged: true
x_max_rotation30Decimal number몹이 대상을 바라보려 할 때 X축 최대 회전각(도).
y_max_head_rotation30Decimal number몹이 대상을 바라보려 할 때 Y축 최대 회전각(도).

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

Entity ActorDefinitionTrigger​

Triggers an entity event when specified conditions are met. Events activate component groups that change entity behavior—transforming villagers into zombie villagers, switching mobs to aggressive mode, or triggering growth stages. Combine with filters to create conditional state machines that respond to gameplay.

Entity ActorDefinitionTrigger Properties​

JSON path: on_attack

이름기본값유형설명
eventString
filters (Filters){"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null}Filters item필터는 데이터 객체가 사용 조건이 되는 테스트 기준을 지정할 수 있게 한다.
filters (Alternate 1)not setObject
targetselfTarget choices
filters​

Filters allow data objects to specify test criteria which allows their use. Filters can be defined by a single object of type (Filter Test), an array of tests, collection groups, or a combination of these objects.

Filters​
Filters Properties​

JSON path: on_attack > filters

이름기본값유형설명
domainnot setObject테스트를 수행할 도메인.
operatornot setObject'value'와 함께 적용할 비교 방식.
subjectnot setObject이 필터 테스트의 대상(subject).
testnot setString적용할 테스트의 이름.
valuenot setObject테스트에서 비교할 값.

Target choices​

값제목설명
babyBaby
blockBlock
damagerDamager
holderHolder
itemItem
otherOther
parentParent
playerPlayer
selfSelf
targetTarget

예시​

Blaze​
"minecraft:behavior.melee_box_attack": {
"priority": 3
}
Bogged​
"minecraft:behavior.melee_box_attack": {
"speed_multiplier": 1.25,
"track_target": true,
"priority": 4
}
Cave Spider​

At /minecraft:entity/component_groups/minecraft:spider_angry/minecraft:behavior.melee_box_attack/:

"minecraft:behavior.melee_box_attack": {
"track_target": true,
"priority": 3
}

At /minecraft:entity/component_groups/minecraft:spider_hostile/minecraft:behavior.melee_box_attack/:

"minecraft:behavior.melee_box_attack": {
"random_stop_interval": 100,
"track_target": true,
"priority": 3
}
Dolphin​
"minecraft:behavior.melee_box_attack": {
"priority": 2,
"track_target": true
}
Drowned​
"minecraft:behavior.melee_box_attack": {
"can_spread_on_fire": true,
"require_complete_path": true,
"priority": 3
}

minecraft:behavior.mingle​

(출처: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityGoals/minecraftBehavior_mingle.md)

마을 종으로 가서 다른 엔티티와 어울리게 한다.

Allows an entity to go to the village bell and mingle with other entities.

Entity Mingle Behavior Properties​

이름기본값유형설명
control_flags[]Control Flags choices
cooldown_time0Decimal number목표를 다시 쓰기 전에 몹이 기다려야 하는 시간(초).
duration1Decimal number엔티티가 다른 엔티티와 대화하는 시간(초).
mingle_distance2Decimal number이 엔티티가 어울리는 파트너와의 거리. 엔티티 종류가 다르면 양쪽 엔티티에서 이 값이 같아야 한다.
mingle_partner_typeString이 엔티티가 어울릴 수 있는 엔티티 종류.
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.
speed_multiplier1Decimal number이 목표를 쓸 때의 몹 이동 속도 배율.

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

예시​

minecraft:behavior.mount_pathing​

(출처: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityGoals/minecraftBehavior_mount_pathing.md)

탑승한 채로 스스로 움직이며 공격 대상을 찾게 한다. 다른 엔티티를 대상으로 삼을 수도 있다.

Allows the mob to move around on its own while mounted seeking a target to attack. Also will allow an entity to target another entity for an attack.

Entity Mount Pathing Behavior Properties​

이름기본값유형설명예시 값
control_flags[]Control Flags choices
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.Cave Spider: 5, Chicken: 2, Llama: 1
speed_multiplier1Decimal number이 AI 목표를 쓸 때의 몹 이동 속도 배율.Cave Spider: 1.25, Chicken: 1.5
target_dist0Decimal number이 몹이 대상에게서 떨어져 있고 싶어 하는 거리.
track_targetfalseBoolean true/falsetrue이면 유효한 대상인 동안 몹이 대상을 계속 쫓는다.Cave Spider: true

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

예시​

Cave Spider​
"minecraft:behavior.mount_pathing": {
"priority": 5,
"target_dist": 0,
"speed_multiplier": 1.25,
"track_target": true
}
Chicken​
"minecraft:behavior.mount_pathing": {
"priority": 2,
"speed_multiplier": 1.5,
"target_dist": 0,
"track_target": true
}
Llama​
"minecraft:behavior.mount_pathing": {
"priority": 1,
"speed_multiplier": 1.25,
"target_dist": 0,
"track_target": true
}

minecraft:behavior.move_around_target​

(출처: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityGoals/minecraftBehavior_move_around_target.md)

대상 주위를 움직이게 한다. 너무 가까우면 멀어지고 너무 멀면 다가간다.

Allows an entity to move around a target.If the entity is too close(i.e.closer than destination range min and height difference limit) it will try to move away from its target.If the entity is too far away from its target it will try to move closer to a random position within the destination range.A randomized amount of those positions will be behind the target, and the spread can be tweaked with 'destination_pos_spread_degrees'.

[!Note] In format version 1.26.20, destination_position_range must be specified as a Float Range object (an object with range_min / range_max). Legacy scalar or array forms no longer parse.

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

Entity Move Around Target Behavior Properties​

이름기본값유형설명예시 값
control_flags[]Control Flags choices
destination_pos_spread_degrees90Decimal number대상 뒤쪽 목적지 위치를 고를 때 퍼짐을 제어하는 각도(도).Breeze: 360
destination_position_range{"max":8,"min":4}Destination Position Range item목표가 소유 엔티티를 이동시킬 위치를 찾는 대상 엔티티로부터의 거리 범위.Breeze: {"min":4,"max":8}
filters (Filters){"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null}Filters item행동이 시작되기 위해 충족해야 하는 조건.Breeze: {"all_of":[{"test":"on_ground","value":true},{"operator":"<=","test":"target_distance","subject":"self","value":24}]}
filters (Alternate 1)not setObject
height_difference_limit10Decimal number소유 엔티티가 너무 가까워 대상에게서 물러나야 하는지 확인할 때, 소유 엔티티와 대상 사이의 높이 차가 이 값보다 작아야 한다.
horizontal_search_distance5Integer number대상에게서 멀어질 위치를 찾을 때의 수평 검색 거리(블록).
movement_speed0.6000000238418579Decimal number엔티티가 목표 위치로 이동하는 속도.Breeze: 1.2
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.Breeze: 3
vertical_search_distance5Integer number대상에게서 멀어질 위치를 찾을 때의 수직 검색 거리(블록).

destination_pos_spread_degrees​

This angle (in degrees) is used for controlling the spread when picking a destination position behind the target. A zero spread angle means the destination position will be straight behind the target with no variance. A 90 degree spread angle means the destination position can be up to 45 degrees to the left and to the right of the position straight behind the target's view direction.

height_difference_limit​

Distance in height (in blocks) between the owner entity and the target has to be less than this value when owner checks if it is too close and should move away from the target. This value needs to be bigger than zero for the move away logic to trigger.

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

Legacy FloatRange​

Legacy FloatRange Properties​

JSON path: destination_position_range

이름기본값유형설명
max0Decimal number
min0Decimal number

Filters​

Filters Properties​

JSON path: filters

이름기본값유형설명
domainnot setObject테스트를 수행할 도메인.
operatornot setObject'value'와 함께 적용할 비교 방식.
subjectnot setObject이 필터 테스트의 대상(subject).
testnot setString적용할 테스트의 이름.
valuenot setObject테스트에서 비교할 값.

예시​

Breeze​
"minecraft:behavior.move_around_target": {
"destination_pos_spread_degrees": 360,
"destination_position_range": {
"min": 4,
"max": 8
},
"priority": 3,
"filters": {
"all_of": [
{
"test": "on_ground",
"value": true
},
{
"operator": "<=",
"test": "target_distance",
"subject": "self",
"value": 24
}
]
},
"height_difference_limit": 0,
"movement_speed": 1.2
}

minecraft:behavior.move_indoors​

(출처: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityGoals/minecraftBehavior_move_indoors.md)

엔티티가 실내로 이동하게 한다.

Allows this entity to move indoors.

Entity Move Indoors Behavior Properties​

이름기본값유형설명
control_flags[]Control Flags choices
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.
speed_multiplier0.800000011920929Decimal number엔티티가 실내로 이동하는 동안 적용할 이동 속도 보정값.
timeout_cooldown8Decimal number경로 탐색이 실패한 뒤 목표를 다시 쓸 수 있기까지의 쿨다운 시간(초).

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

예시​

minecraft:behavior.move_outdoors​

(출처: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityGoals/minecraftBehavior_move_outdoors.md)

엔티티가 야외로 이동하게 한다.

Allows this entity to move outdoors.

Entity Move Outdoors Behavior Properties​

이름기본값유형설명
control_flags[]Control Flags choices
goal_radius2Decimal number목표에 도달한 것으로 치는 대상 블록으로부터의 반경.
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.
search_count10Integer number실패하기 전에 무작위 야외 위치를 찾으려 시도하는 횟수.
search_height5Integer number야외 위치를 찾는 y 범위.
search_range15Integer number야외 위치를 찾는 x, z 범위.
speed_multiplier0.5Decimal number엔티티가 야외로 이동하는 동안 적용할 이동 속도 보정값.
timeout_cooldown8Decimal number경로 탐색이 실패한 뒤 목표를 다시 쓸 수 있기까지의 쿨다운 시간(초).

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

예시​

minecraft:behavior.move_through_village​

(출처: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityGoals/minecraftBehavior_move_through_village.md)

주민이 마을 안에서 경로를 만들며 돌아다니게 한다. 주민에게만 쓸 수 있다.

Can only be used by Villagers. Allows the villagers to create paths around the village.

Entity Move Through Village Behavior Properties​

이름기본값유형설명예시 값
control_flags[]Control Flags choices
only_at_nightfalseBoolean true/falsetrue이면 몹이 밤에만 마을을 돌아다닌다.Iron Golem: true
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.Iron Golem: 3
speed_multiplier1Decimal number이 AI 목표를 쓸 때의 몹 이동 속도 배율.Iron Golem: 0.6

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

예시​

Iron Golem​
"minecraft:behavior.move_through_village": {
"only_at_night": true,
"priority": 3,
"speed_multiplier": 0.6
}
출처
id출처라이선스커밋접근일
ms-learnMinecraft Creator 문서 (Microsoft Learn)CC BY 4.0 (문서), MIT (코드)a9fd1c02026-11-13