본문으로 건너뛰기

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

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

minecraft:behavior.ocelot_sit_on_block​

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

오셀롯처럼 제자리에 앉게 한다.

Allows to mob to be able to sit in place like the ocelot.

Entity Ocelot Sit On Block Behavior Properties​

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

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

예시​

minecraft:behavior.ocelotattack​

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

오셀롯 전용 공격 동작을 제어한다.

Controls specific attack behavior for Ocelots.

Entity Ocelotattack Behavior Properties​

이름기본값유형설명
control_flags[]Control Flags choices
cooldown_time1Decimal number공격 사이의 시간(초). 값은 0보다 커야 한다.
max_distance15Decimal number이 엔티티가 이 공격 행동을 쓰는 대상으로부터의 최대 거리. 값은 0보다 커야 한다.
max_sneak_range15Decimal number이 엔티티가 웅크리기 시작하는 대상으로부터의 최대 거리. 값은 0보다 커야 한다.
max_sprint_range4Decimal number이 엔티티가 달리기 시작하는 대상으로부터의 최대 거리(달리기가 웅크리기보다 우선한다). 값은 0보다 커야 한다.
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.
reach_multiplier2Decimal number엔티티의 기본 크기와 함께, 공격 피해를 주려 하기 전의 최소 대상 거리를 정하는 데 쓴다. 값은 0보다 커야 한다.
sneak_speed_multiplier0.6000000238418579Decimal number웅크린 동안 공격하는 엔티티의 이동 속도를 조정한다. 값은 0보다 커야 한다.
sprint_speed_multiplier1.3300000429153442Decimal number달리는 동안 공격하는 엔티티의 이동 속도를 조정한다. 값은 0보다 커야 한다.
walk_speed_multiplier0.800000011920929Decimal number웅크리거나 달리지 않지만 공격 범위 안에 있을 때 공격하는 엔티티의 이동 속도를 조정한다. 값은 0보다 커야 한다.
x_max_rotation30Decimal number대상을 바라보려 할 때 엔티티가 X축으로 돌 수 있는 최대 회전각(도). 값은 0보다 커야 한다.
y_max_head_rotation30Decimal number대상을 바라보려 할 때 이 엔티티의 머리가 Y축으로 돌 수 있는 최대 회전각(도). 값은 0보다 커야 한다.

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

예시​

minecraft:behavior.offer_flower​

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

take_flower 동작을 가진 다른 몹에게 꽃을 건네게 한다. 꽃을 들고 있어야 하며 아이언 골렘에만 쓴다.

Allows the mob to offer a flower to another mob with the minecraft:take_flower behavior.

[!Note] Requires a flower item to be held by the entity.

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

  • Villager (minecraft:villager)

Entity Offer Flower Behavior Properties​

이름기본값유형설명예시 값
chance_to_start0.0001250000059371814Decimal number몹이 이 목표를 시작할 확률(0.0~1.0, 1.0 = 100%). 값은 1 이하여야 한다.
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행동이 시작되기 위해 충족해야 하는 조건.Iron Golem: {"test":"is_daytime"}
filters (Alternate 1)not setObject
max_head_rotation_y30Decimal number대상을 바라보려 할 때 엔티티가 머리를 Y축으로 돌릴 수 있는 최대 회전각(도).
max_offer_flower_duration20Decimal number목표를 끝내기 전에 몹이 꽃을 건네는 최대 시간(초).
max_rotation_x30Decimal number대상을 바라보려 할 때 엔티티가 X축으로 돌 수 있는 최대 회전각(도).
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.Iron Golem: 5
search_area[6, 2, 6]Array of numbers꽃을 건넬 몹을 찾는 데 쓰는 AABB의 크기.
search_area (Search Area)not setSearch Area (Search Area) item

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

Filters​

Filters Properties​

JSON path: filters

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

Search Area (Search Area)​

Search Area Properties​

JSON path: search_area

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

예시​

Iron Golem​
"minecraft:behavior.offer_flower": {
"filters": {
"test": "is_daytime"
},
"priority": 5
}

minecraft:behavior.open_door​

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

몹이 문을 열게 한다. 문을 지나는 경로를 만들 수 있어야 한다.

Allows the mob to open doors. Requires the mob to be able to path through doors, otherwise the mob won't even want to try opening them.

Entity Open Door Behavior Properties​

이름기본값유형설명
close_door_aftertrueBoolean true/falsetrue이면 문을 열고 지나간 뒤 몹이 문을 닫는다.
control_flags[]Control Flags choices
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

예시​

minecraft:behavior.owner_hurt_by_target​

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

주인을 해친 몹을 대상으로 삼게 한다. 길들여 주인이 있어야 한다.

Allows the mob to target another mob that hurts their owner.

[!Note] Requires a player to be set as the tame owner via taming (or the tame command, or the tame API on EntityTameableComponent) in order to work properly.

Entity Owner Hurt By Target Behavior Properties​

이름기본값유형설명
control_flags[]Control Flags choices
entity_types[]Array of Entity Types items주인을 해쳤을 때 이 몹이 대상으로 삼을 수 있는 엔티티 종류 목록.
entity_types (Entity Types)not setEntity Types (Entity Types) item
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

Entity Types​

List of entity types that this mob can target if they hurt their owner.

Entity Types Properties​

JSON path: entity_types

이름기본값유형설명
reevaluate_descriptionfalseBoolean true/falsetrue이면 대상을 지속적으로 다시 평가해, 대상이 필터 조건을 더 이상 만족하지 않으면 공격을 멈춘다.

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.owner_hurt_target​

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

주인이 해친 몹을 대상으로 삼게 한다. 길들여 주인이 있어야 한다.

Allows the mob to target a mob that is hurt by their owner.

[!Note] Requires a player to be set as the tame owner via taming (or the tame command, or the tame API on EntityTameableComponent) in order to work properly.

Entity Owner Hurt Target Behavior Properties​

이름기본값유형설명
control_flags[]Control Flags choices
entity_types[]Array of Entity Types items잠재적 대상이 이 몹의 주인에게 해를 입었을 때 이 엔티티가 대상으로 삼을 수 있는 엔티티 종류 목록.
entity_types (Entity Types)not setEntity Types (Entity Types) item
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

Entity Types​

List of entity types that this entity can target if the potential target is hurt by this mob's owner.

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