본문으로 건너뛰기

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

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

minecraft:behavior.defend_village_target​

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

마을에 머물며 공격자로부터 마을을 지키게 한다. 평판이 나쁜 플레이어는 필터와 상관없이 공격한다.

Allows the entity to stay in a village and defend the village from aggressors. If a player is in bad standing with the village this goal will cause the entity to attack the player regardless of filter conditions.

[!Note] This behavior is typically used with the minecraft:dweller component which defines the entity's role in a village. See iron_golem.json for a complete example.

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

Entity Defend Village Target Behavior Properties​

이름기본값유형설명예시 값
attack_chance0.05000000074505806Decimal number엔티티가 마을의 침략자를 공격할 확률(퍼센트). 1.0 = 100%. 값은 1 이하여야 한다.
attack_ownerfalseBoolean true/falsetrue이면 이 엔티티가 주인을 공격할 수 있다.
control_flags[]Control Flags choices
entity_types[]Array of objects이 엔티티에게 유효한 대상 종류를 거른다.Iron Golem: [{"filters":{"AND":[{"OR":[{"test":"is_family","subject":1,"operator":0,"value":"mob"},{"test":"is_family","subject":1,"operator":0,"value":"player"}]}]}}]
entity_types (Entity Types)not setEntity Types (Entity Types) item
must_reachfalseBoolean true/falsetrue이면 이 엔티티가 대상까지 갈 경로가 있어야 한다.Iron Golem: true
must_seefalseBoolean true/false대상이 유효하려면 이 엔티티가 범위 안에만 있으면 되는지, 범위 안이면서 시야에도 있어야 하는지 정한다.
must_see_forget_duration3Decimal number대상이 유효하지 않게 되기까지 이 엔티티가 대상을 보지 못해야 하는 시간(초). "must_see"가 true일 때만 쓴다.
persist_time0Decimal number대상이 더 이상 유효하지 않게 된 뒤에도 이 엔티티가 계속 공격할 수 있는 시간(초).
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.Iron Golem: 1
within_radius0Decimal number대상을 따라갈 때 이 엔티티가 대상에서 떨어질 수 있는 최대 거리이며, 넘으면 대상이 무효가 된다. 엔티티가 "minecraft:follow_range"를 선언하지 않았을 때만 쓴다.

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

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테스트에서 비교할 값.

예시​

Iron Golem​
"minecraft:behavior.defend_village_target": {
"must_reach": true,
"entity_types": [
{
"filters": {
"AND": [
{
"OR": [
{
"test": "is_family",
"subject": 1,
"operator": 0,
"value": "mob"
},
{
"test": "is_family",
"subject": 1,
"operator": 0,
"value": "player"
}
]
}
]
}
}
],
"priority": 1
}
출처
id출처라이선스커밋접근일
ms-learnMinecraft Creator 문서 (Microsoft Learn)CC BY 4.0 (문서), MIT (코드)a9fd1c02026-11-13