본문으로 건너뛰기

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

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

minecraft:behavior.share_items​

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

몹이 가진 아이템을 다른 몹에게 나눠 주게 한다.

Allows the mob to give items it has to others.

Entity Share Items Behavior Properties​

이름기본값유형설명
control_flags[]Control Flags choices
entity_types[]Array of Entity Types items이 몹이 아이템을 나눠 줄 엔티티 목록.
entity_types (Entity Types)not setEntity Types (Entity Types) item
goal_radius0.5Decimal number몹이 목표에 도달했다고 보는 블록 거리. AI가 특정 지점에 닿으려 앞뒤로 흔들리는 것을 막는 '여유'다.
max_dist1Integer number이 몹이 아이템을 나눠 줄 엔티티를 찾는 최대 거리(블록).
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.
speed_multiplier1Decimal number이 AI 목표를 쓸 때의 몹 이동 속도 배율.

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

Entity Types​

List of entities this mob will share items with.

Entity Types Properties​

JSON path: entity_types

이름기본값유형설명
cooldown0Decimal number같은 종류의 대상을 다시 고르기 전에 몹이 기다려야 하는 시간(초).
filtersnot setMinecraft filter목록의 이 항목이 유효하기 위한 조건.
max_dist16Decimal number유효한 대상이 되기 위해 이 몹과 떨어질 수 있는 최대 거리.
must_seefalseBoolean true/falsetrue이면 몹이 보여야 유효한 대상이 된다.
must_see_forget_duration3Decimal number대상이 더 이상 보이지 않을 때 이 몹이 대상을 잊고 새 대상을 찾기까지 기다리는 시간(초).
reevaluate_descriptionfalseBoolean true/falsetrue이면 조건을 하나라도 만족하지 못하게 될 때 대상에서 해제된다.
sprint_speed_multiplier1Decimal number뛰는 속도 배율. 1.0이면 속도가 그대로다.
walk_speed_multiplier1Decimal number걷기 속도 배율. 1.0이면 속도가 그대로다.

Entity Types (Entity Types)​

Entity Types Properties​

JSON path: entity_types

이름기본값유형설명
check_if_outnumberedfalseBoolean true/falsetrue이면 몹이 수적으로 밀리는지 확인한다.
cooldown0Integer number같은 종류의 대상을 다시 고르기 전에 몹이 기다려야 하는 시간(초).
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
max_dist16Decimal number유효한 대상이 되기 위해 이 몹과 떨어질 수 있는 최대 거리.
max_flee10Decimal number달아나기를 멈추기 위해 몹이 대상에서 떨어질 수 있는 최대 거리.
max_height-1Decimal number유효한 대상이 되기 위해 이 몹과 높이가 차이 날 수 있는 최대값.
must_seenot setBoolean true/falsetrue이면 몹이 보여야 유효한 대상이 된다.
must_see_forget_duration3Integer number대상이 더 이상 보이지 않을 때 이 몹이 대상을 잊고 새 대상을 찾기까지 기다리는 시간(초).
priority0Integer number이 몹 종류의 우선순위.
reevaluate_descriptionfalseBoolean true/falsetrue이면 조건을 하나라도 만족하지 못하게 될 때 대상에서 해제된다.
sprint_speed_multiplier1Decimal number달리기(스프린트) 속도 배율. 1.0이면 속도가 그대로다.
walk_speed_multiplier1Decimal number걷기 속도 배율. 1.0이면 속도가 그대로다.
Filters​
Filters Properties​

JSON path: entity_types > filters

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

예시​

minecraft:behavior.silverfish_merge_with_stone​

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

좀벌레처럼 돌 블록 속으로 들어가게 한다. 좀벌레에만 쓸 수 있다.

Allows the mob to go into stone blocks like Silverfish do.

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

  • Silverfish (minecraft:silverfish)

Silverfish Merge With Stone Behavior Properties​

이름기본값유형설명예시 값
prioritynot setInteger number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.Silverfish: 5

예시​

Silverfish​
"minecraft:behavior.silverfish_merge_with_stone": {
"priority": 5
}

minecraft:behavior.silverfish_wake_up_friends​

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

근처 블록 속 몹들에게 나오라고 알리게 한다.

Allows the mob to alert mobs in nearby blocks to come out.

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

  • Ender Dragon (minecraft:ender_dragon)

Entity Silverfish Wake Up Friends Behavior Properties​

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

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

예시​

Silverfish​
"minecraft:behavior.silverfish_wake_up_friends": {
"priority": 1
}

minecraft:behavior.skeleton_horse_trap​

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

말류가 말 함정이 되어 플레이어가 가까이 오면 번개와 말 여러 마리를 소환하게 한다.

Allows Equine mobs to be Horse Traps and be triggered like them, spawning a lightning bolt and a bunch of horses when a player is nearby. Can only be used by Horses, Mules, Donkeys and Skeleton Horses.

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

  • Horse (minecraft:horse)
  • Mule (minecraft:mule)
  • Donkey (minecraft:donkey)
  • Skeleton Horse (minecraft:skeleton_horse)

Entity Skeleton Horse Trap Behavior Properties​

이름기본값유형설명
control_flags[]Control Flags choices
duration1Decimal number함정이 존재하는 시간(초). 이 시간이 지나도 작동하지 않으면 함정이 월드에서 제거된다.
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.
within_radius0Decimal number말 함정이 작동하기 위해 플레이어가 있어야 하는 블록 거리.

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

예시​

minecraft:behavior.sleep​

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

마을에서 침대를 가진 몹이 침대로 가서 자게 한다. 주민에게만 쓸 수 있다.

Allows mobs that own a bed to in a village to move to and sleep in it.

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

  • Villager (minecraft:villager)

Entity Sleep Behavior Properties​

이름기본값유형설명
can_sleep_while_ridingfalseBoolean true/falsetrue이면 무언가를 탄 채로도 몹이 잠자기 목표를 쓸 수 있다.
control_flags[]Control Flags choices
cooldown_time0Decimal number목표를 다시 쓰기 전에 몹이 기다려야 하는 시간(초).
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.
sleep_collider_height1Decimal number잠자는 동안 몹 충돌체의 높이.
sleep_collider_width1Decimal number잠자는 동안 몹 충돌체의 너비.
sleep_y_offset1Decimal number잠자는 동안 몹 충돌체의 y 오프셋.
speed_multiplier1Decimal number이 목표를 쓸 때의 몹 이동 속도 배율.
timeout_cooldown8Decimal number내부 실패나 시간 초과 뒤 목표를 다시 쓸 수 있기까지의 쿨다운 시간(초).

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

예시​

minecraft:behavior.slime_attack​

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

공격하는 동안 가끔 지치게 한다. 공격하려면 runtime_identifier가 minecraft:slime이어야 한다.

Causes the entity to grow tired every once in a while, while attacking.

[!Note] In order to attack, the entity must have a runtime_identifier set to minecraft:slime and a variant component with a value greater than 1. Otherwise it will still path towards a target, but it will not cause damage.

[!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 components in order to work properly:

  • Attack (minecraft:attack)

  • Variant (minecraft:variant)

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

  • Slime (minecraft:slime)
  • Magma Cube (minecraft:magma_cube)

Entity Slime Attack Behavior Properties​

이름기본값유형설명예시 값
control_flags[]Control Flags choices
grow_tired_cooldown_time15Decimal number
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.Magma Cube: 3
set_persistentfalseBoolean true/false플레이어를 대상으로 삼을 때 액터가 유지(persist)되게 한다.
speed_multiplier1Decimal number공격 동작 중 이 배수가 대상을 향해 이동할 때 엔티티의 속도를 조정한다.
x_max_rotation10Decimal number대상을 바라보려 할 때 엔티티가 X축으로 돌 수 있는 최대 회전각(도).
y_max_rotation10Decimal number대상을 바라보려 할 때 이 엔티티가 Y축으로 돌 수 있는 최대 회전각(도).

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

예시​

Magma Cube​
"minecraft:behavior.slime_attack": {
"priority": 3
}

minecraft:behavior.slime_float​

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

슬라임이 물이나 용암 위에 뜨게 한다. 슬라임과 마그마 큐브에만 쓸 수 있다.

Allow slimes to float in water / lava.

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

  • Slime (minecraft:slime)
  • Magma Cube (minecraft:magma_cube)

Entity Slime Float Behavior Properties​

이름기본값유형설명예시 값
control_flags[]Control Flags choices
jump_chance_percentage0.800000011920929Decimal number슬라임이나 마그마 큐브가 물/용암 속에서 점프할 확률(퍼센트).
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.Magma Cube: 1
speed_multiplier1.2000000476837158Decimal number물/용암 속을 이동할 때 엔티티 속도에 곱하는 배수를 정한다.

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

예시​

Magma Cube​
"minecraft:behavior.slime_float": {
"priority": 1
}

minecraft:behavior.slime_keep_on_jumping​

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

슬라임처럼 계속 뛰어다니게 한다. 슬라임과 마그마 큐브에만 쓸 수 있다.

Allows the entity to continuously jump around like a slime.

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

  • Slime (minecraft:slime)
  • Magma Cube (minecraft:magma_cube)

Entity Slime Keep On Jumping Behavior Properties​

이름기본값유형설명예시 값
control_flags[]Control Flags choices
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.Magma Cube: 5
speed_multiplier1Decimal number뛰어다닐 때 이 엔티티의 속도에 곱하는 배수를 정한다.

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

예시​

Magma Cube​
"minecraft:behavior.slime_keep_on_jumping": {
"priority": 5
}

minecraft:behavior.slime_random_direction​

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

슬라임처럼 무작위 방향으로 움직이게 한다. 슬라임과 마그마 큐브에만 쓸 수 있다.

Allows the entity to move in random directions like a slime.

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

  • Slime (minecraft:slime)
  • Magma Cube (minecraft:magma_cube)

Entity Slime Random Direction Behavior Properties​

이름기본값유형설명예시 값
add_random_time_range3Integer number"min_change_direction_time"에 더하는 추가 시간(정수 초). [0, "add_random_time_range"] 범위에서 무작위로 정한다.
control_flags[]Control Flags choices
min_change_direction_time2Decimal number새 방향을 고르기 전에 기다리는 일정한 최소 시간(초).
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.Magma Cube: 4
turn_range360Integer number무작위로 새 방향을 고를 때의 최대 회전각 범위(도).

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

예시​

Magma Cube​
"minecraft:behavior.slime_random_direction": {
"priority": 4
}

minecraft:behavior.snacking​

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

몹이 쉬면서 근처에서 찾은 음식을 먹게 한다.

Allows the mob to take a load off and snack on food that it found nearby.

Entity Snacking Behavior Properties​

이름기본값유형설명
control_flags[]Control Flags choices
items[]String몹이 간식으로 먹고 싶어 하는 아이템.
items (as Keyed set of strings)not setKeyed set of strings
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.
snacking_cooldown7.5Decimal number몹이 다시 간식을 먹을 수 있기까지의 쿨다운 시간(초).
snacking_cooldown_min0.5Decimal number몹이 다시 간식을 먹을 수 있기까지의 최소 시간(초).
snacking_stop_chance0.0016666667070239782Decimal number몹이 간식 먹기를 멈출 확률(0~1).

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

minecraft:behavior.sneeze​

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

몹이 재채기해 아이템을 떨어뜨리고 주변 몹에게 영향을 주게 한다.

Allows the mob to sneeze, causing it to drop items and affect nearby mobs.

Entity Sneeze Behavior Properties​

이름기본값유형설명
control_flags[]Control Flags choices
cooldown_time0Decimal number목표를 다시 쓰기 전에 몹이 기다려야 하는 시간(초).
drop_item_chance1Decimal number몹이 재채기할 때 아이템을 떨어뜨릴 확률.
entity_types[]Array of Entity Types items이 몹이 재채기할 때 놀라게(뛰게) 만드는 엔티티 종류 목록.
entity_types (Entity Types)not setEntity Types (Entity Types) item
loot_tableString떨어뜨릴 아이템을 고르는 루트 테이블.
prepare_soundString재채기가 막 일어나려 할 때 재생할 소리.
prepare_time1Decimal number몹이 재채기를 준비하는 데 걸리는 시간(초)(prepare_sound가 재생되는 동안).
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.
probability0.019999999552965164Decimal number재채기할 확률. 1.00이 100%다.
soundString재채기가 일어날 때 재생할 소리.
within_radius0Decimal number몹들이 놀라는 블록 거리.

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

Entity Types​

List of entity types this mob will startle (cause to jump) when it sneezes.

Entity Types Properties​

JSON path: entity_types

이름기본값유형설명
cooldown0Decimal number같은 종류의 대상을 다시 고르기 전에 몹이 기다려야 하는 시간(초).
filtersnot setMinecraft filter목록의 이 항목이 유효하기 위한 조건.
max_dist16Decimal number유효한 대상이 되기 위해 이 몹과 떨어질 수 있는 최대 거리.
must_seefalseBoolean true/falsetrue이면 몹이 보여야 유효한 대상이 된다.
must_see_forget_duration3Decimal number대상이 더 이상 보이지 않을 때 이 몹이 대상을 잊고 새 대상을 찾기까지 기다리는 시간(초).
reevaluate_descriptionfalseBoolean true/falsetrue이면 조건을 하나라도 만족하지 못하게 될 때 대상에서 해제된다.
sprint_speed_multiplier1Decimal number뛰는 속도 배율. 1.0이면 속도가 그대로다.
walk_speed_multiplier1Decimal number걷기 속도 배율. 1.0이면 속도가 그대로다.

Entity Types (Entity Types)​

Entity Types Properties​

JSON path: entity_types

이름기본값유형설명
check_if_outnumberedfalseBoolean true/falsetrue이면 몹이 수적으로 밀리는지 확인한다.
cooldown0Integer number같은 종류의 대상을 다시 고르기 전에 몹이 기다려야 하는 시간(초).
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
max_dist16Decimal number유효한 대상이 되기 위해 이 몹과 떨어질 수 있는 최대 거리.
max_flee10Decimal number달아나기를 멈추기 위해 몹이 대상에서 떨어질 수 있는 최대 거리.
max_height-1Decimal number유효한 대상이 되기 위해 이 몹과 높이가 차이 날 수 있는 최대값.
must_seenot setBoolean true/falsetrue이면 몹이 보여야 유효한 대상이 된다.
must_see_forget_duration3Integer number대상이 더 이상 보이지 않을 때 이 몹이 대상을 잊고 새 대상을 찾기까지 기다리는 시간(초).
priority0Integer number이 몹 종류의 우선순위.
reevaluate_descriptionfalseBoolean true/falsetrue이면 조건을 하나라도 만족하지 못하게 될 때 대상에서 해제된다.
sprint_speed_multiplier1Decimal number달리기(스프린트) 속도 배율. 1.0이면 속도가 그대로다.
walk_speed_multiplier1Decimal number걷기 속도 배율. 1.0이면 속도가 그대로다.
Filters​
Filters Properties​

JSON path: entity_types > filters

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

예시​

출처
id출처라이선스커밋접근일
ms-learnMinecraft Creator 문서 (Microsoft Learn)CC BY 4.0 (문서), MIT (코드)a9fd1c02026-11-13