본문으로 건너뛰기

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

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

minecraft:behavior.sniff​

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

sniffing_radius 안의 가장 가까운 플레이어를 감지해 suspect_tracking 상태를 갱신하게 한다.

Allows this entity to detect the nearest player within "sniffing_radius" and update its "minecraft:suspect_tracking" component state.

Entity Sniff Behavior Properties​

이름기본값유형설명예시 값
control_flags[]Control Flags choices
cooldown_range{"max":10,"min":3}Cooldown Range item코로 킁킁거리는 사이의 쿨다운 범위(초).Warden: {"min":5,"max":10}
duration1Decimal number킁킁거리는 지속 시간(초).Warden: 4.16
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.Warden: 6
sniffing_radius5Decimal number몹 감지 반경.Warden: 24
suspicion_radius_horizontal3Decimal number몹 의심 수평 반경. 플레이어가 수평으로 이 반경 안에 있으면 그 플레이어에 대한 분노 수치가 올라간다.Warden: 6
suspicion_radius_vertical3Decimal number몹 의심 수직 반경. 플레이어가 수직으로 이 반경 안에 있으면 그 플레이어에 대한 분노 수치가 올라간다. 값은 1 이상이어야 한다.Warden: 20

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

Legacy FloatRange​

Legacy FloatRange Properties​

JSON path: cooldown_range

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

예시​

Warden​
"minecraft:behavior.sniff": {
"duration": 4.16,
"sniffing_radius": 24,
"suspicion_radius_horizontal": 6,
"suspicion_radius_vertical": 20,
"cooldown_range": {
"min": 5,
"max": 10
},
"priority": 6
}

minecraft:behavior.sonic_boom​

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

'음파 폭발' 원거리 공격을 하게 한다.

Allows this entity to perform a 'sonic boom' ranged attack.

Entity Sonic Boom Behavior Properties​

이름기본값유형설명예시 값
attack_cooldown5Decimal number이 공격을 쓴 뒤 엔티티가 다시 음파 폭발을 쓸 수 있기까지 필요한 쿨다운(초).Warden: 2
attack_damage30Decimal number음파 폭발의 공격 피해량.Warden: 10
attack_range_horizontal15Decimal number음파 폭발이 대상에게 피해를 줄 수 있는 수평 범위(블록).
attack_range_vertical20Decimal number음파 폭발이 대상에게 피해를 줄 수 있는 수직 범위(블록).
attack_soundString공격의 소리 이벤트.Warden: "sonic_boom"
charge_soundString충전의 소리 이벤트.Warden: "sonic_charge"
control_flags[]Control Flags choices
duration0Decimal number목표 지속 시간(초).Warden: 3
duration_until_attack_sound1.7000000476837158Decimal number공격 소리가 재생되기까지의 시간(초).
knockback_height_cap0Decimal number공격 넉백의 수직 변화량 높이 상한.Warden: 0.5
knockback_horizontal_strength0Decimal number공격 대상에게 가해지는 공격 넉백의 수평 세기.Warden: 2.5
knockback_vertical_strength0Decimal number공격 대상에게 가해지는 공격 넉백의 수직 세기.Warden: 0.5
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.Warden: 3
speed_multiplier1Decimal number이 배수가 대상을 향해 이동할 때 공격하는 엔티티의 속도를 조정한다.Warden: 1.2

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

예시​

Warden​
"minecraft:behavior.sonic_boom": {
"duration": 3,
"speed_multiplier": 1.2,
"attack_damage": 10,
"attack_cooldown": 2,
"knockback_vertical_strength": 0.5,
"knockback_horizontal_strength": 2.5,
"knockback_height_cap": 0.5,
"attack_sound": "sonic_boom",
"charge_sound": "sonic_charge",
"priority": 3
}

minecraft:behavior.squid_dive​

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

오징어가 물속 아래로 잠수하게 한다. 오징어에만 쓸 수 있다.

Allows the squid to dive down in water.

[!Note] Can only be used on the following type of entity:

  • Squid (minecraft:squid)

Entity Squid Dive Behavior Properties​

이름기본값유형설명
control_flags[]Control Flags choices
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

예시​

minecraft:behavior.squid_flee​

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

오징어가 헤엄쳐 달아나게 한다. 오징어에만 쓸 수 있다.

Allows the squid to swim away.

[!Note] Can only be used on the following type of entity:

  • Squid (minecraft:squid)

Entity Squid Flee Behavior Properties​

이름기본값유형설명
control_flags[]Control Flags choices
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

예시​

minecraft:behavior.squid_idle​

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

오징어가 제자리에서 한가로이 헤엄치게 한다. 오징어에만 쓸 수 있다.

Allows the squid to swim in place idly.

[!Note] Can only be used on the following type of entity:

  • Squid (minecraft:squid)

Entity Squid Idle Behavior Properties​

이름기본값유형설명
control_flags[]Control Flags choices
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

예시​

minecraft:behavior.squid_move_away_from_ground​

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

오징어가 지면 블록에서 벗어나 물로 돌아가게 한다. 오징어에만 쓸 수 있다.

Allows the squid to move away from ground blocks and back to water.

[!Note] Can only be used on the following type of entity:

  • Squid (minecraft:squid)

Entity Squid Move Away From Ground Behavior Properties​

이름기본값유형설명
control_flags[]Control Flags choices
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

예시​

minecraft:behavior.squid_out_of_water​

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

오징어가 물 밖에서 바닥에 달라붙게 한다. 오징어에만 쓸 수 있다.

Allows the squid to stick to the ground when outside water.

[!Note] Can only be used on the following type of entity:

  • Squid (minecraft:squid)

Entity Squid Out Of Water Behavior Properties​

이름기본값유형설명
control_flags[]Control Flags choices
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

예시​

minecraft:behavior.stalk_and_pounce_on_target​

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

대상에게 몰래 접근하다 범위 안에 들면 덮치게 한다. 성공하면 공격 컴포넌트의 피해를 준다.

Allows a mob to stalk a target, then once within range pounce onto a target, on success the target will be attacked dealing damage defined by the attack component. On failure, the mob will risk getting stuck.

[!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 Stalk And Pounce On Target Behavior Properties​

이름기본값유형설명
control_flags[]Control Flags choices
interest_time2Decimal number덮치기 전에 몹이 흥미를 갖고 있는 시간. 몹이 덮칠 수 있는 범위 안에 있을 때 일어난다.
leap_dist0.800000011920929Decimal number몹이 대상 방향으로 점프하는 블록 거리.
leap_distance0.8Decimal number몹이 대상 방향으로 점프하는 블록 거리.
leap_height0.8999999761581421Decimal number몹이 대상에게 뛰어오를 때의 점프 높이(블록).
max_stalk_dist10Decimal number몹이 몰래 접근하기를 포기하기 전에 대상이 있을 수 있는 최대 거리.
pounce_max_dist5Decimal number대상을 덮치기 시작하는 대상으로부터의 최대 거리(블록).
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.
set_persistentfalseBoolean true/false플레이어를 대상으로 삼을 때 액터가 유지(persist)되게 한다.
stalk_speed1.2000000476837158Decimal number대상에게 몰래 접근할 때의 이동 속도.
strike_dist2Decimal number덮친 뒤 착지했을 때 대상에게 피해를 줄 수 있는 대상으로부터의 최대 거리.
stuck_blocks (Stuck Blocks){"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null}Stuck Blocks item덮친 뒤 몹이 걸릴 수 있는 블록.
stuck_blocks (Alternate 1)not setObject
stuck_time2Decimal number실패해서 걸릴 수 있는 블록에 착지했을 때 몹이 걸려 있는 시간.

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

Stuck Blocks​

Stuck Blocks Properties​

JSON path: stuck_blocks

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

예시​

minecraft:behavior.stay_near_noteblock​

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

인벤토리의 아이템을 최근 연주된 근처 음표 블록에 던져 주려 한다(원문 설명 그대로).

The entity will attempt to toss the items from its inventory to a nearby recently played noteblock.

Entity Stay Near Noteblock Behavior Properties​

이름기본값유형설명예시 값
control_flags[]Control Flags choices
listen_time30Integer number음표 블록 소리를 들은 뒤 엔티티가 그 근처에 머무는 시간을 정한다.
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.Allay: 5
speed1Decimal number블록을 향해 이동할 때 엔티티의 속도를 정한다.Allay: 8
start_distance10Decimal number목표를 시작하려 시도하기 위해 엔티티가 블록에서 떨어져 있어야 하는 거리를 정한다.Allay: 16
stop_distance2Decimal number엔티티가 도달하려는 블록으로부터의 거리를 정한다.Allay: 4

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

예시​

Allay​
"minecraft:behavior.stay_near_noteblock": {
"speed": 8,
"start_distance": 16,
"stop_distance": 4,
"priority": 5
}

minecraft:behavior.stay_while_sitting​

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

앉은 상태에서는 다른 행동을 하지 않고 그대로 머물게 한다. sittable 컴포넌트와 함께 동작한다.

Allows the mob to stay put while it is in a sitting state instead of doing something else.

[!Note] This behavior works with the minecraft:sittable component. When the entity is commanded to sit, this goal prevents other behaviors from moving the entity.

Entity Stay While Sitting Behavior Properties​

이름기본값유형설명예시 값
control_flags[]Control Flags choices
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.Parrot: 2

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

예시​

Parrot​
"minecraft:behavior.stay_while_sitting": {
"priority": 2
}

minecraft:behavior.stomp_attack​

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

발 구르기 범위 피해 동작으로 공격하게 한다.

Allows an entity to attack using stomp AoE damage behavior.

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

Entity Stomp 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새 공격 경로를 다시 계산하기까지의 최대 기본 시간(초). 증가분을 적용하기 전 값이다.
min_path_time0.20000000298023224Decimal number새 공격 경로를 다시 계산하기까지의 최소 기본 시간(초). 증가분을 적용하기 전 값이다.
no_damage_range_multiplier2Decimal number최종 범위 피해 범위에 곱해 피해 없음 범위를 정한다. 대상이 이 피해 없음 범위 안에 있으면 발 구르기 공격이 쿨다운에 들어간다. 값은 0보다 커야 한다.Polar Bear: 2
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에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.Polar Bear: 1
random_stop_interval0Integer number몹이 현재 공격을 멈출 확률을 1/N로 정의한다. N은 "random_stop_interval"이다.
reach_multiplier2Decimal number엔티티의 기본 크기와 함께, 공격 피해를 주려 하기 전의 최소 대상 거리를 정하는 데 쓴다.
require_complete_pathfalseBoolean true/false몹에서 대상까지 전체 이동 경로가 필요한지 지정한다.Polar Bear: true
speed_multiplier1Decimal number대상을 향해 이동할 때 몹의 이동 속도에 곱하는 배율.
stomp_range_multiplier2Decimal number엔티티의 기본 크기에 곱해 발 구르기 범위 피해 범위를 정한다. 값은 0보다 커야 한다.Polar Bear: 2
track_targetfalseBoolean true/false하드코딩된 감지 컴포넌트가 없어도 몹이 대상을 추적할 수 있게 한다.Polar Bear: 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

예시​

Polar Bear​
"minecraft:behavior.stomp_attack": {
"priority": 1,
"track_target": true,
"require_complete_path": true,
"stomp_range_multiplier": 2,
"no_damage_range_multiplier": 2
}

minecraft:behavior.stomp_turtle_egg​

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

몹이 거북 알을 밟게 한다.

Allows this mob to stomp turtle eggs.

Entity Stomp Turtle Egg Behavior Properties​

이름기본값유형설명예시 값
control_flags[]Control Flags choices
goal_radius0.5Decimal number몹이 목표에 도달했다고 보는 블록 거리. AI가 특정 지점에 닿으려 앞뒤로 흔들리는 것을 막는 '여유'다. 값은 0보다 커야 한다.Drowned: 1.14
interval120Integer number무작위로 어딘가로 이동할 시점을 정하는 값. 이 목표를 고를 확률이 1/interval이다. 값은 0보다 커야 한다.Drowned: 20
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.Drowned: 4
search_count10Integer number매 틱 탐색 범위와 높이 안에서 이동할 유효한 블록을 찾기 위해 무작위로 고르는 블록의 수.
search_height1Integer number몹이 이동할 거북 알을 찾는 높이(블록). 값은 0보다 커야 한다.Drowned: 2
search_range0Integer number몹이 이동할 거북 알을 찾는 거리(블록). 값은 0보다 커야 한다.Drowned: 10
speed_multiplier1Decimal number이 목표를 쓸 때의 몹 이동 속도 배율.Drowned: 1

search_count​

The number of randomly selected blocks each tick that the mob will check within its search range and height for a valid block to move to. A value of 0 will have the mob check every block within range in one tick.

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

예시​

Drowned​
"minecraft:behavior.stomp_turtle_egg": {
"goal_radius": 1.14,
"priority": 4,
"search_height": 2,
"interval": 20,
"search_range": 10,
"speed_multiplier": 1
}
출처
id출처라이선스커밋접근일
ms-learnMinecraft Creator 문서 (Microsoft Learn)CC BY 4.0 (문서), MIT (코드)a9fd1c02026-11-13