엔티티 AI 목표 레퍼런스 (13/41)
MS Learn(MicrosoftDocs/minecraft-creator a9fd1c0, CC BY 4.0)의 AI 목표(behavior) 문서를 옮긴 쪽이다. 설명은 한국어로 옮기고 ID, 속성 이름, 유형, 기본값, JSON은 원문 그대로 두었다. 전체 목록은 색인에 있다.
minecraft:behavior.drink_potion
(출처: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityGoals/minecraftBehavior_drink_potion.md)
지정한 환경 조건에서 포션을 마시게 한다.
Allows the mob to drink potions based on specified environment conditions.
Entity Drink Potion Behavior Properties
| 이름 | 기본값 | 유형 | 설명 |
|---|---|---|---|
| control_flags | [] | Control Flags choices | |
| potions | [] | Array of Potions items | 이 엔티티가 마실 수 있는 포션 목록. 각 포션 항목에는 다음 매개변수가 있다. |
| priority | 0 | Integer number | 0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다. |
| speed_modifier | 0 | Decimal number | 포션을 마시는 동안 엔티티에 적용할 이동 속도 보정값. 0은 속도 변화가 없음을 뜻한다. |
Control Flags choices
| 값 | 제목 | 설명 |
|---|---|---|
| jump | Jump | |
| look | Look | |
| move | Move |
Entity DrinkPotionGoalDefinition PotionData
Entity DrinkPotionGoalDefinition PotionData Properties
JSON path: potions
| 이름 | 기본값 | 유형 | 설명 |
|---|---|---|---|
| chance | 1 | Decimal number | 사용할 포션을 찾을 때 이 포션이 선택될 확률(0.0~1.0). |
| 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 | |
| id | -1 | Integer number | 사용할 포션의 레지스트리 ID. |
Filters
Filters Properties
JSON path: potions > filters
| 이름 | 기본값 | 유형 | 설명 |
|---|---|---|---|
| domain | not set | Object | 테스트를 수행할 도메인. |
| operator | not set | Object | 'value'와 함께 적용할 비교 방식. |
| subject | not set | Object | 이 필터 테스트의 대상(subject). |
| test | not set | String | 적용할 테스트의 이름. |
| value | not set | Object | 테스트에서 비교할 값. |
예시
minecraft:behavior.drop_item_for
(출처: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityGoals/minecraftBehavior_drop_item_for.md)
대상에게 다가가 그 근처에 아이템을 떨어뜨리게 한다. navigation 컴포넌트가 필요하다.
Allows the entity to move toward a target, and drop an item near the target.
[!Note] Requires the following component in order to work properly:
- Navigation (minecraft:navigation)
Entity Drop Item For Behavior Properties
| 이름 | 기본값 | 유형 | 설명 |
|---|---|---|---|
| control_flags | [] | Control Flags choices | |
| cooldown | 0.25 | Decimal number | 목표를 다시 쓰기 전까지 쿨다운 상태인 전체 시간. |
| drop_item_chance | 1 | Decimal number | 이 목표를 쓸 때 엔티티가 아이템을 떨어뜨릴 확률(퍼센트). 값은 1 이하여야 한다. |
| entity_types | [] | Array of objects | 다른 엔티티가 아이템을 떨어뜨려 줄 유효한 대상이 되기 위해 충족해야 하는 조건 목록. |
| entity_types (Entity Types) | not set | Entity Types (Entity Types) item | |
| goal_radius | 0.5 | Decimal number | 몹이 목표에 도달했다고 보는 블록 거리. AI가 특정 지점에 닿으려 앞뒤로 흔들리는 것을 막는 '여유'다. 값은 0보다 커야 한다. |
| loot_table | String | 이 목표로 엔티티가 떨어뜨릴 수 있는 전리품이 담긴 루트 테이블. | |
| max_head_look_at_height | 10 | Decimal number | 아이템을 떨어뜨릴 때 엔티티의 머리가 바라보는 최대 높이. 엔티티는 항상 대상을 바라본다. |
| minimum_teleport_distance | 2 | Decimal number | 어느 틱에든 대상 위치가 이 거리보다 멀면 엔티티가 대상 위치로 순간이동한다. |
| offering_distance | 1 | Decimal number | 아이템을 떨어뜨려 줄 대상과 엔티티가 유지하려는 선호 거리. |
| on_drop_attempt | {"event":"","filters":{"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null},"target":"self"} | Drop Attempt item | 엔티티가 아이템을 떨어뜨리려 할 때 발생시킬 이벤트. |
| priority | 0 | Integer number | 0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다. |
| search_count | 0 | Integer number | 매 틱 탐색 범위와 높이 안에서 이동할 유효한 블록을 찾기 위해 무작위로 고르는 블록의 수. |
| search_height | 1 | Integer number | 엔티티가 유효한 대상 위치를 찾는 높이(블록). 값은 0보다 커야 한다. |
| search_range | 0 | Integer number | 엔티티가 유효한 대상 위치를 찾는 거리(블록). 값은 0보다 커야 한다. |
| seconds_before_pickup | 0 | Decimal number | 떨어진 아이템을 바닥에서 주울 수 있기까지 지나야 하는 시간(초). |
| speed_multiplier | 1 | Decimal number | 이 목표를 쓸 때의 몹 이동 속도 배율. |
| target_range | [1, 1, 1] | Array of numbers | 아이템을 떨어뜨려 줄 대상을 찾기 위해 엔티티가 검색하는 블록 범위. |
| target_range (Target Range) | not set | Target Range (Target Range) item | |
| teleport_offset | [0, 1, 0] | Array of numbers | 엔티티가 순간이동할 때 순간이동 위치를 X, Y, Z 좌표로 이만큼(블록) 옮긴다. |
| teleport_offset (Teleport Offset) | not set | Teleport Offset (Teleport Offset) item | |
| time_of_day_range | {"max":1,"min":0} | Time Of Day Range item | 이 목표를 쓸 수 있는 유효한 시간대. 참고로 정오는 0.0, 해질녘은 0.25, 자정은 0.5, 해돋이는 0.75이며 1.0에서 다시 정오가 된다. |
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
| 값 | 제목 | 설명 |
|---|---|---|
| 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 | 테스트에서 비교할 값. |
Entity ActorDefinitionTrigger
Triggers an entity event when specified conditions are met. Events activate component groups that change entity behavior—transforming villagers into zombie villagers, switching mobs to aggressive mode, or triggering growth stages. Combine with filters to create conditional state machines that respond to gameplay.
Entity ActorDefinitionTrigger Properties
JSON path: on_drop_attempt
| 이름 | 기본값 | 유형 | 설명 |
|---|---|---|---|
| event | String | ||
| 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 | |
| target | self | Target choices |
filters
Filters allow data objects to specify test criteria which allows their use. Filters can be defined by a single object of type (Filter Test), an array of tests, collection groups, or a combination of these objects.
Target choices
| 값 | 제목 | 설명 |
|---|---|---|
| baby | Baby | |
| block | Block | |
| damager | Damager | |
| holder | Holder | |
| item | Item | |
| other | Other | |
| parent | Parent | |
| player | Player | |
| self | Self | |
| target | Target |
Target Range (Target Range)
Target Range Properties
JSON path: target_range
| 이름 | 기본값 | 유형 | 설명 |
|---|---|---|---|
| x | 0 | Decimal number | |
| y | 0 | Decimal number | |
| z | 0 | Decimal number |
Teleport Offset (Teleport Offset)
Same structure as Target Range (Target Range).
Legacy FloatRange
Legacy FloatRange Properties
JSON path: time_of_day_range
| 이름 | 기본값 | 유형 | 설명 |
|---|---|---|---|
| max | 0 | Decimal number | |
| min | 0 | Decimal number |
예시
minecraft:behavior.eat_block
(출처: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityGoals/minecraftBehavior_eat_block.md)
블록을 먹어 다른 블록으로 바꾸고 이벤트를 발생시킨다.
Allows the entity to consume a block, replace the eaten block with another block, and trigger an event as a result.
Entity Eat Block Behavior Properties
| 이름 | 기본값 | 유형 | 설명 | 예시 값 |
|---|---|---|---|---|
| control_flags | [] | Control Flags choices | ||
| eat_and_replace_block_pairs | [[object Object], [object Object], [object Object]] | Array of Eat And Replace Block Pairs items | 블록 쌍의 모음. 첫 번째("eat_block")는 엔티티가 먹을 블록, 두 번째("replace_block")는 먹은 블록을 대체할 블록이다. | Sheep: [{"eat_block":"grass","replace_block":"dirt"},{"eat_block":"tallgrass","replace_block":"air"},{"eat_block":"short_dry_grass","replace_block":"air"},{"eat_block":"tall_dry_grass","replace_block":"air"}] |
| on_eat | {"event":"","filters":{"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null},"target":"self"} | Eat item | 블록 먹기 애니메이션이 끝났을 때 발생시킬 이벤트. | Sheep: {"event":"minecraft:on_eat_block","target":"self"} |
| priority | 0 | Integer number | 0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다. | Sheep: 6 |
| success_chance | 0.019999999552965164 | Keyed set of strings | 엔티티가 블록을 먹는 데 성공할 확률을 정의하는 Molang 식. | Sheep: "query.is_baby ? 0.02 : 0.001" |
| success_chance (as Named set of objects) | not set | Key/item pairs of Success Chance (Legacy Molang Expression) items | ||
| success_chance (as Decimal number) | not set | Decimal number | ||
| time_until_eat | 1.7999999523162842 | Decimal number | 먹기 시도에 성공했을 때 블록이 먹히기까지 걸리는 시간(초). | Sheep: 1.8 |
Control Flags choices
| 값 | 제목 | 설명 |
|---|---|---|
| jump | Jump | |
| look | Look | |
| move | Move |
Entity EatAndReplaceBlockPair
Entity EatAndReplaceBlockPair Properties
JSON path: eat_and_replace_block_pairs
| 이름 | 기본값 | 유형 | 설명 |
|---|---|---|---|
| eat_block | String | 엔티티가 먹을 블록. | |
| replace_block | String | 먹힌 블록을 대체할 블록. |
Entity ActorDefinitionTrigger
Triggers an entity event when specified conditions are met. Events activate component groups that change entity behavior—transforming villagers into zombie villagers, switching mobs to aggressive mode, or triggering growth stages. Combine with filters to create conditional state machines that respond to gameplay.
Entity ActorDefinitionTrigger Properties
JSON path: on_eat
| 이름 | 기본값 | 유형 | 설명 |
|---|---|---|---|
| event | String | ||
| 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 | |
| target | self | Target choices |
filters
Filters allow data objects to specify test criteria which allows their use. Filters can be defined by a single object of type (Filter Test), an array of tests, collection groups, or a combination of these objects.
Filters
Filters Properties
JSON path: on_eat > filters
| 이름 | 기본값 | 유형 | 설명 |
|---|---|---|---|
| domain | not set | Object | 테스트를 수행할 도메인. |
| operator | not set | Object | 'value'와 함께 적용할 비교 방식. |
| subject | not set | Object | 이 필터 테스트의 대상(subject). |
| test | not set | String | 적용할 테스트의 이름. |
| value | not set | Object | 테스트에서 비교할 값. |
Target choices
| 값 | 제목 | 설명 |
|---|---|---|
| baby | Baby | |
| block | Block | |
| damager | Damager | |
| holder | Holder | |
| item | Item | |
| other | Other | |
| parent | Parent | |
| player | Player | |
| self | Self | |
| target | Target |
Legacy Molang Expression
Legacy Molang Expression Properties
JSON path: success_chance
| 이름 | 기본값 | 유형 | 설명 |
|---|---|---|---|
| expression | not set | String | |
| version | not set | Integer number |
예시
Sheep
"minecraft:behavior.eat_block": {
"priority": 6,
"success_chance": "query.is_baby ? 0.02 : 0.001",
"time_until_eat": 1.8,
"eat_and_replace_block_pairs": [
{
"eat_block": "grass",
"replace_block": "dirt"
},
{
"eat_block": "tallgrass",
"replace_block": "air"
},
{
"eat_block": "short_dry_grass",
"replace_block": "air"
},
{
"eat_block": "tall_dry_grass",
"replace_block": "air"
}
],
"on_eat": {
"event": "minecraft:on_eat_block",
"target": "self"
}
}
minecraft:behavior.eat_carried_item
(출처: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityGoals/minecraftBehavior_eat_carried_item.md)
음식 아이템을 들고 있으면 먹고 그 효과를 받는다. 인벤토리에 음식이 있어야 한다.
If the mob is carrying a food item, the mob will eat it and the effects will be applied to the mob.
[!Note] Requires food items to be in the entity's inventory in order to eat the food.
Entity Eat Carried Item Behavior Properties
| 이름 | 기본값 | 유형 | 설명 |
|---|---|---|---|
| control_flags | [] | Control Flags choices | |
| delay_before_eating | 0 | Decimal number | 아이템을 먹기 전에 몹이 기다려야 하는 시간(초). |
| priority | 0 | Integer number | 0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다. |
Control Flags choices
| 값 | 제목 | 설명 |
|---|---|---|
| jump | Jump | |
| look | Look | |
| move | Move |
예시
minecraft:behavior.eat_mob
(출처: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityGoals/minecraftBehavior_eat_mob.md)
지정한 몹을 먹게 한다.
Allows the entity to eat a specified Mob.
Entity Eat Mob Behavior Properties
| 이름 | 기본값 | 유형 | 설명 | 예시 값 |
|---|---|---|---|---|
| control_flags | [] | Control Flags choices | ||
| eat_animation_time | 1 | Decimal number | 먹기 애니메이션이 재생되는 시간(초)을 정한다. | Frog: 0.3 |
| eat_mob_sound | String | 몹을 먹을 때 재생할 소리를 정한다. | Frog: "tongue" | |
| loot_table | String | 몹을 먹을 때 떨어뜨릴 전리품 루트 테이블. | Frog: "loot_tables/entities/frog.json" | |
| priority | 0 | Integer number | 0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다. | Frog: 7 |
| pull_in_force | 1 | Decimal number | 먹힐 몹이 먹는 몹 쪽으로 끌려오는 힘을 정한다. | Frog: 0.75 |
| reach_mob_distance | 1 | Decimal number | 몹을 먹기 전에 도달해야 하는 거리를 정한다. | Frog: 1.75 |
| run_speed | 1 | Decimal number | 대상을 향해 달릴 때 엔티티의 속도를 정한다. | Frog: 2 |
Control Flags choices
| 값 | 제목 | 설명 |
|---|---|---|
| jump | Jump | |
| look | Look | |
| move | Move |
예시
Frog
"minecraft:behavior.eat_mob": {
"run_speed": 2,
"eat_animation_time": 0.3,
"pull_in_force": 0.75,
"reach_mob_distance": 1.75,
"eat_mob_sound": "tongue",
"loot_table": "loot_tables/entities/frog.json",
"priority": 7
}
minecraft:behavior.emerge
(출처: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityGoals/minecraftBehavior_emerge.md)
엔티티가 땅에서 나오게 한다.
Allows this entity to emerge from the ground.
Entity Emerge Behavior Properties
| 이름 | 기본값 | 유형 | 설명 | 예시 값 |
|---|---|---|---|---|
| control_flags | [] | Control Flags choices | ||
| cooldown_time | 0.5 | Decimal number | 목표를 다시 쓰기 전에 몹이 기다려야 하는 시간(초). | |
| duration | 5 | Decimal number | 목표 지속 시간(초). | Warden: 7 |
| on_done | {"event":"","filters":{"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null},"target":"self"} | Done item | 목표 실행이 끝나기 직전에 실행할 트리거. | Warden: {"event":"minecraft:emerged","target":"self"} |
| priority | 0 | Integer number | 0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다. |
Control Flags choices
| 값 | 제목 | 설명 |
|---|---|---|
| jump | Jump | |
| look | Look | |
| move | Move |
Entity ActorDefinitionTrigger
Triggers an entity event when specified conditions are met. Events activate component groups that change entity behavior—transforming villagers into zombie villagers, switching mobs to aggressive mode, or triggering growth stages. Combine with filters to create conditional state machines that respond to gameplay.
Entity ActorDefinitionTrigger Properties
JSON path: on_done
| 이름 | 기본값 | 유형 | 설명 |
|---|---|---|---|
| event | String | ||
| 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 | |
| target | self | Target choices |
filters
Filters allow data objects to specify test criteria which allows their use. Filters can be defined by a single object of type (Filter Test), an array of tests, collection groups, or a combination of these objects.
Filters
Filters Properties
JSON path: on_done > filters
| 이름 | 기본값 | 유형 | 설명 |
|---|---|---|---|
| domain | not set | Object | 테스트를 수행할 도메인. |
| operator | not set | Object | 'value'와 함께 적용할 비교 방식. |
| subject | not set | Object | 이 필터 테스트의 대상(subject). |
| test | not set | String | 적용할 테스트의 이름. |
| value | not set | Object | 테스트에서 비교할 값. |
Target choices
| 값 | 제목 | 설명 |
|---|---|---|
| baby | Baby | |
| block | Block | |
| damager | Damager | |
| holder | Holder | |
| item | Item | |
| other | Other | |
| parent | Parent | |
| player | Player | |
| self | Self | |
| target | Target |
예시
Warden
"minecraft:behavior.emerge": {
"duration": 7,
"on_done": {
"event": "minecraft:emerged",
"target": "self"
}
}
minecraft:behavior.enderman_leave_block
(출처: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityGoals/minecraftBehavior_enderman_leave_block.md)
엔더맨이 들고 있던 블록을 내려놓게 한다. 엔더맨에만 쓸 수 있다.
Allows the enderman to drop a block they are carrying.
[!Note] Can only be used on the following type of entity:
- Enderman (minecraft:enderman)
Enderman Leave Block Behavior Properties
| 이름 | 기본값 | 유형 | 설명 |
|---|---|---|---|
| priority | not set | Integer number | 0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다. |
minecraft:behavior.enderman_take_block
(출처: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityGoals/minecraftBehavior_enderman_take_block.md)
엔더맨이 블록을 집어 들고 다니게 한다. 엔더맨에만 쓸 수 있다.
Allows the enderman to take a block and carry it around.
[!Note] Can only be used on the following type of entity:
- Enderman (minecraft:enderman)
Enderman Take Block Behavior Properties
| 이름 | 기본값 | 유형 | 설명 |
|---|---|---|---|
| priority | not set | Integer number | 0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다. |
| id | 출처 | 라이선스 | 커밋 | 접근일 |
|---|---|---|---|---|
ms-learn | Minecraft Creator 문서 (Microsoft Learn) | CC BY 4.0 (문서), MIT (코드) | a9fd1c0 | 2026-11-13 |