본문으로 건너뛰기

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

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

minecraft:behavior.equip_item​

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

엔티티가 원하는 장비를 착용하게 한다.

The entity puts on the desired equipment.

Entity Equip Item Behavior Properties​

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

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

예시​

Bogged​
"minecraft:behavior.equip_item": {
"priority": 3
}
Parched​
"minecraft:behavior.equip_item": {
"priority": 4
}

minecraft:behavior.explore_outskirts​

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

마을 외곽의 무작위 지점으로 간 뒤 가까운 무작위 지점들을 탐색하게 한다.

Allows the entity to first travel to a random point on the outskirts of the village, and then explore random points within a small distance.

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

  • Dweller (minecraft:dweller)
  • Navigation (minecraft:navigation)

Entity Explore Outskirts Behavior Properties​

이름기본값유형설명
control_flags[]Control Flags choices
dist_from_boundary[5, 0, 5]Array of numbers주민이 외곽을 탐색하려면 경계로부터 이 거리 안에 있어야 한다.
dist_from_boundary (Dist From Boundary)not setDist From Boundary (Dist From Boundary) item
explore_dist5Decimal number엔티티가 이동 지점을 고를 때 마을 경계 밖으로 탐색하는 총 거리(블록).
max_travel_time60Decimal number목표가 끝나기 전에 엔티티가 마을 외곽의 이동 지점에 도달하려고 시도하는 최대 시간.
max_wait_time0Decimal number새 탐색 지점을 고르는 사이의 대기 시간(초)은 이 값과 최소 대기 시간 사이에서 무작위로 정해진다.
min_dist_from_target2.25Decimal number엔티티가 대상에 성공적으로 도달했다고 보려면 이 거리 안에 있어야 한다.
min_perimeter1Decimal number이 목표를 실행하는 데 필요한 마을의 최소 둘레.
min_wait_time3Decimal number새 탐색 지점을 고르는 사이의 대기 시간(초)은 이 값과 최대 대기 시간 사이에서 무작위로 정해진다.
next_xz5Integer number내비게이션이 끝나고 대기 타이머가 지나면 현재 목표 위치에서 이 XZ 거리 안의 무작위 위치가 새 탐색 지점으로 고른다.
next_y3Integer number내비게이션이 끝나고 대기 타이머가 지나면 현재 목표 위치에서 이 Y 거리 안의 무작위 위치가 새 탐색 지점으로 고른다.
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.
speed_multiplier1Decimal number이 목표를 쓰는 동안의 속도 배수. 1.0이면 속도가 유지된다.
timer_ratio2Decimal number새 탐색 지점은 최소·최대 대기 시간 사이의 무작위 간격을 이 값으로 나눈 시간마다 고른다.

max_wait_time​

The wait time in seconds between choosing new explore points will be chosen on a random interval between this value and the minimum wait time. This value is also the total amount of time the entity will explore random points before the goal stops.

timer_ratio​

Each new explore point will be chosen on a random interval between the minimum and the maximum wait time, divided by this value. This does not apply to the first explore point chosen when the goal runs.

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

Dist From Boundary (Dist From Boundary)​

Dist From Boundary Properties​

JSON path: dist_from_boundary

이름기본값유형설명
x0Decimal number
y0Decimal number
z0Decimal number

예시​

minecraft:behavior.fertilize_farm_block​

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

범위 안에서 자랄 수 있는 작물을 찾아 인벤토리의 비료를 쓰게 한다.

Allows the mob to search within an area for a growable crop block. If found, the mob will use any available fertilizer in their inventory on the crop. This goal will not execute if the mob does not have a fertilizer item in its inventory.

Entity Fertilize Farm Block Behavior Properties​

이름기본값유형설명
control_flags[]Control Flags choices
goal_radius1.5Decimal number몹이 목표 위치에 도달했다고 보는 블록 거리. 값은 0보다 커야 한다.
max_fertilizer_usage1Integer number몹이 대상 블록에 비료를 쓰는 최대 횟수. 값은 0보다 커야 한다.
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.
search_cooldown_max_seconds8Decimal number다시 검색하기 전에 목표가 걸릴 수 있는 최대 시간(초). 시간은 0과 이 값 사이에서 정해진다. 값은 0보다 커야 한다.
search_count9Integer number매 틱 탐색 범위와 높이 안에서 이동할 유효한 블록을 찾기 위해 무작위로 고르는 블록의 수.
search_height1Integer number몹이 유효한 목표 위치를 찾는 높이(블록). 값은 0보다 커야 한다.
search_range1Integer number몹이 유효한 목표 위치를 찾는 거리(블록). 값은 0보다 커야 한다.
speed_multiplier0.5Decimal number이 목표를 쓸 때의 몹 이동 속도 배율.

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

예시​

minecraft:behavior.find_cover​

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

몹이 그늘을 찾게 한다.

Allows the mob to seek shade.

Entity Find Cover Behavior Properties​

이름기본값유형설명
control_flags[]Control Flags choices
cooldown_time0Decimal number목표를 다시 쓰기 전에 몹이 기다려야 하는 시간(초).
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.
speed_multiplier1Decimal number이 AI 목표를 쓸 때의 몹 이동 속도 배율.

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

예시​

minecraft:behavior.find_mount​

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

탈 수 있는 다른 몹을 찾아 둘러보게 한다.

Allows the mob to look around for another mob to ride atop it.

Entity Find Mount Behavior Properties​

이름기본값유형설명예시 값
avoid_waterfalseBoolean true/falsetrue이면 탈것으로 향하는 동안 몹이 물 블록으로 들어가지 않는다.Parrot: true
control_flags[]Control Flags choices
max_failed_attempts20Integer number탈것을 찾는 시도 횟수.Drowned: 20
mount_distance-1Decimal number몹이 탈것에 타기 위해 탈것과 있어야 하는 블록 거리. 0보다 작으면 몹의 기본 공격 거리를 쓴다.Parrot: 2
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.Drowned: 1, Parrot: 4
start_delay0Integer number몹이 탈것 쪽으로 움직이기 시작하기 전에 기다리는 시간.Drowned: 15, Parrot: 100
target_neededfalseBoolean true/falsetrue이면 몹이 대상이 있을 때만 탈것을 찾는다.
within_radius0Decimal number몹이 탈것을 찾는 블록 거리.Drowned: 16

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

예시​

Drowned​
"minecraft:behavior.find_mount": {
"max_failed_attempts": 20,
"priority": 1,
"start_delay": 15,
"within_radius": 16
}
Parrot​
"minecraft:behavior.find_mount": {
"avoid_water": true,
"mount_distance": 2,
"priority": 4,
"start_delay": 100,
"target_needed": false,
"within_radius": 16
}

minecraft:behavior.find_underwater_treasure​

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

가장 가까운 수중 폐허나 난파선으로 이동하게 한다.

Allows the mob to move towards the nearest underwater ruin or shipwreck.

Entity Find Underwater Treasure Behavior Properties​

이름기본값유형설명예시 값
control_flags[]Control Flags choices
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.Dolphin: 2
search_range0Integer number몹이 폐허나 난파선 안에서 찾아 이동할 보물 상자를 검색하는 범위.Dolphin: 30
speed_multiplier1Decimal number이 AI 목표를 쓸 때의 몹 이동 속도 배율.Dolphin: 2
stop_distance2Decimal number멈추기 전에 몹이 이동할 거리.Dolphin: 50

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

예시​

Dolphin​
"minecraft:behavior.find_underwater_treasure": {
"priority": 2,
"speed_multiplier": 2,
"search_range": 30,
"stop_distance": 50
}

minecraft:behavior.fire_at_target​

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

지연을 두고 발사하는 방식으로 공격하게 한다. 앵커와 오프셋은 projectile 컴포넌트 값을 덮어쓴다.

Allows an entity to attack by firing a shot with a delay. Anchor and offset parameters of this component overrides the anchor and offset from projectile component.

[!Note] In 1.26.0, max_head_rotation_x and max_head_rotation_y are applied to the correct axes (they were previously swapped).

[!Note] Under the Custom Projectiles experiment in format version 1.26.20, the component's projectile_x_offset, projectile_y_offset, and projectile_z_offset values are applied relative to the firing entity's rotation rather than world axes.

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

Entity Fire At Target Behavior Properties​

이름기본값유형설명예시 값
attack_cooldown0.5Decimal number이 목표를 다시 쓰기 전까지의 쿨다운 시간(초).Breeze: 0.5
attack_range{"max":0,"min":0}Attack Range item공격이 일어나려면 대상이 이 범위 안에 있어야 한다.Breeze: {"min":0,"max":16}
control_flags[]Control Flags choices
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":"is_navigating","value":false}]}
filters (Alternate 1)not setObject
max_head_rotation_x30Decimal number대상을 바라보려 할 때 이 엔티티가 적용할 수 있는 X축 최대 머리 회전각(도).
max_head_rotation_y30Decimal number대상을 바라보려 할 때 이 엔티티가 적용할 수 있는 Y축 최대 머리 회전각(도).
owner_anchor2Integer number투사체 스폰 위치의 엔티티 앵커.Breeze: 2
owner_offset[0, 0, 0]Array of numbersowner_anchor 기준 오프셋 벡터.Breeze: [0,0.3,0]
owner_offset (Owner Offset)not setOwner Offset (Owner Offset) item
post_shoot_delay0.20000000298023224Decimal number투사체를 쏜 뒤 목표가 끝나기까지의 시간(초).Breeze: 0.2
pre_shoot_delay0.75Decimal number투사체를 쏘기 전의 시간(초).Breeze: 0.75
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.Breeze: 2
projectile_defString원거리 공격의 투사체로 쓸 액터 정의. 액터는 투사체여야 한다. 이 목표를 쓰려면 이 필드가 필요하다.Breeze: "minecraft:breeze_wind_charge_projectile"
ranged_fov90Decimal number감지로 공격 대상을 찾을 때의 시야각(도).Breeze: 90
target_anchor2Integer number투사체 대상의 엔티티 앵커.
target_offset[0, 0, 0]Array of numberstarget_anchor 기준 오프셋 벡터.Breeze: [0,0.5,0]
target_offset (Target Offset)not setTarget Offset (Target Offset) item

Legacy FloatRange​

Legacy FloatRange Properties​

JSON path: attack_range

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

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

Filters​

Filters Properties​

JSON path: filters

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

Owner Offset (Owner Offset)​

Owner Offset Properties​

JSON path: owner_offset

이름기본값유형설명
x0Decimal number
y0Decimal number
z0Decimal number

Target Offset (Target Offset)​

Same structure as Owner Offset (Owner Offset).

예시​

Breeze​
"minecraft:behavior.fire_at_target": {
"post_shoot_delay": 0.2,
"attack_cooldown": 0.5,
"attack_range": {
"min": 0,
"max": 16
},
"filters": {
"all_of": [
{
"test": "is_navigating",
"value": false
}
]
},
"owner_anchor": 2,
"owner_offset": [
0,
0.3,
0
],
"pre_shoot_delay": 0.75,
"priority": 2,
"projectile_def": "minecraft:breeze_wind_charge_projectile",
"ranged_fov": 90,
"target_anchor": 0,
"target_offset": [
0,
0.5,
0
]
}

minecraft:behavior.flee_sun​

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

직사광선을 피해 그늘을 찾아 달아나게 한다. 햇빛에 타는 스켈레톤과 좀비가 쓴다.

Allows the mob to run away from direct sunlight and seek shade.

[!Note] This behavior is used by undead mobs like skeletons and zombies that burn in sunlight. The entity will seek shade or water during daytime to avoid sun damage.

Entity Flee Sun Behavior Properties​

이름기본값유형설명예시 값
control_flags[]Control Flags choices
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.Bogged: 2, Parched: 3
speed_multiplier1Decimal number이 AI 목표를 쓸 때의 몹 이동 속도 배율.Bogged: 1

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

예시​

Bogged​
"minecraft:behavior.flee_sun": {
"priority": 2,
"speed_multiplier": 1
}
Parched​
"minecraft:behavior.flee_sun": {
"priority": 3,
"speed_multiplier": 1
}

minecraft:behavior.float​

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

수영하는 동안 몹이 물 위에 떠 있게 한다. 머리가 물에 잠기면 탑승자는 내려진다.

Allows the mob to stay afloat while swimming. Passengers will be kicked out the moment the mob's head goes underwater, which may not happen for tall mobs.

Entity Float Behavior Properties​

이름기본값유형설명예시 값
chance_per_tick_to_float0.8Decimal number엔티티가 물속에서 뜨려고 시도할 틱당 확률(0~1).
control_flags[]Control Flags choices
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.Allay: 7, Cave Spider: 1
sink_with_passengersfalseBoolean true/falsetrue이면 탑승자가 있는 동안 몹이 계속 가라앉는다.
time_under_water_to_dismount_passengers0Decimal number탑승자가 내려지기 전에 엔티티가 머리를 물속에 두고 있어야 하는 시간(초).

chance_per_tick_to_float​

Probability per tick (0-1) that the entity will attempt to float when in water. Lower values produce slower, more deliberate floating behavior. This item requires a format version of at least 1.21.130.

time_under_water_to_dismount_passengers​

Time in seconds the entity must spend with its head underwater before any passengers are dismounted. A value of 0 dismounts passengers as soon as the entity's head submerges. This item requires a format version of at least 1.21.130.

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

예시​

Allay​
"minecraft:behavior.float": {
"priority": 7
}
Bat​
"minecraft:behavior.float": {
"priority": 0
}
Cave Spider​
"minecraft:behavior.float": {
"priority": 1
}
출처
id출처라이선스커밋접근일
ms-learnMinecraft Creator 문서 (Microsoft Learn)CC BY 4.0 (문서), MIT (코드)a9fd1c02026-11-13