엔티티 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_chance | 0.05000000074505806 | Decimal number | 엔티티가 마을의 침략자를 공격할 확률(퍼센트). 1.0 = 100%. 값은 1 이하여야 한다. | |
| attack_owner | false | Boolean true/false | true이면 이 엔티티가 주인을 공격할 수 있다. | |
| 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 set | Entity Types (Entity Types) item | ||
| must_reach | false | Boolean true/false | true이면 이 엔티티가 대상까지 갈 경로가 있어야 한다. | Iron Golem: true |
| must_see | false | Boolean true/false | 대상이 유효하려면 이 엔티티가 범위 안에만 있으면 되는지, 범위 안이면서 시야에도 있어야 하는지 정한다. | |
| must_see_forget_duration | 3 | Decimal number | 대상이 유효하지 않게 되기까지 이 엔티티가 대상을 보지 못해야 하는 시간(초). "must_see"가 true일 때만 쓴다. | |
| persist_time | 0 | Decimal number | 대상이 더 이상 유효하지 않게 된 뒤에도 이 엔티티가 계속 공격할 수 있는 시간(초). | |
| priority | 0 | Integer number | 0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다. | Iron Golem: 1 |
| within_radius | 0 | Decimal number | 대상을 따라갈 때 이 엔티티가 대상에서 떨어질 수 있는 최대 거리이며, 넘으면 대상이 무효가 된다. 엔티티가 "minecraft:follow_range"를 선언하지 않았을 때만 쓴다. |
Control Flags choices
| 값 | 제목 | 설명 |
|---|---|---|
| jump | Jump | |
| look | Look | |
| move | Move |
Entity Types (Entity Types)
Entity Types Properties
JSON path: entity_types
| 이름 | 기본값 | 유형 | 설명 |
|---|---|---|---|
| check_if_outnumbered | false | Boolean true/false | true이면 몹이 수적으로 밀리는지 확인한다. |
| cooldown | 0 | Integer 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 set | Object | |
| max_dist | 16 | Decimal number | 유효한 대상이 되기 위해 이 몹과 떨어질 수 있는 최대 거리. |
| max_flee | 10 | Decimal number | 달아나기를 멈추기 위해 몹이 대상에서 떨어질 수 있는 최대 거리. |
| max_height | -1 | Decimal number | 유효한 대상이 되기 위해 이 몹과 높이가 차이 날 수 있는 최대값. |
| must_see | not set | Boolean true/false | true이면 몹이 보여야 유효한 대상이 된다. |
| must_see_forget_duration | 3 | Integer number | 대상이 더 이상 보이지 않을 때 이 몹이 대상을 잊고 새 대상을 찾기까지 기다리는 시간(초). |
| priority | 0 | Integer number | 이 몹 종류의 우선순위. |
| reevaluate_description | false | Boolean true/false | true이면 조건을 하나라도 만족하지 못하게 될 때 대상에서 해제된다. |
| sprint_speed_multiplier | 1 | Decimal number | 달리기(스프린트) 속도 배율. 1.0이면 속도가 그대로다. |
| walk_speed_multiplier | 1 | Decimal number | 걷기 속도 배율. 1.0이면 속도가 그대로다. |
Filters
Filters Properties
JSON path: entity_types > filters
| 이름 | 기본값 | 유형 | 설명 |
|---|---|---|---|
| domain | not set | Object | 테스트를 수행할 도메인. |
| operator | not set | Object | 'value'와 함께 적용할 비교 방식. |
| subject | not set | Object | 이 필터 테스트의 대상(subject). |
| test | not set | String | 적용할 테스트의 이름. |
| value | not set | Object | 테스트에서 비교할 값. |
예시
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-learn | Minecraft Creator 문서 (Microsoft Learn) | CC BY 4.0 (문서), MIT (코드) | a9fd1c0 | 2026-11-13 |