본문으로 건너뛰기

엔티티 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이 엔티티가 마실 수 있는 포션 목록. 각 포션 항목에는 다음 매개변수가 있다.
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.
speed_modifier0Decimal number포션을 마시는 동안 엔티티에 적용할 이동 속도 보정값. 0은 속도 변화가 없음을 뜻한다.

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

Entity DrinkPotionGoalDefinition PotionData​

Entity DrinkPotionGoalDefinition PotionData Properties​

JSON path: potions

이름기본값유형설명
chance1Decimal 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 setObject
id-1Integer number사용할 포션의 레지스트리 ID.
Filters​
Filters Properties​

JSON path: potions > filters

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

예시​

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
cooldown0.25Decimal number목표를 다시 쓰기 전까지 쿨다운 상태인 전체 시간.
drop_item_chance1Decimal number이 목표를 쓸 때 엔티티가 아이템을 떨어뜨릴 확률(퍼센트). 값은 1 이하여야 한다.
entity_types[]Array of objects다른 엔티티가 아이템을 떨어뜨려 줄 유효한 대상이 되기 위해 충족해야 하는 조건 목록.
entity_types (Entity Types)not setEntity Types (Entity Types) item
goal_radius0.5Decimal number몹이 목표에 도달했다고 보는 블록 거리. AI가 특정 지점에 닿으려 앞뒤로 흔들리는 것을 막는 '여유'다. 값은 0보다 커야 한다.
loot_tableString이 목표로 엔티티가 떨어뜨릴 수 있는 전리품이 담긴 루트 테이블.
max_head_look_at_height10Decimal number아이템을 떨어뜨릴 때 엔티티의 머리가 바라보는 최대 높이. 엔티티는 항상 대상을 바라본다.
minimum_teleport_distance2Decimal number어느 틱에든 대상 위치가 이 거리보다 멀면 엔티티가 대상 위치로 순간이동한다.
offering_distance1Decimal 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엔티티가 아이템을 떨어뜨리려 할 때 발생시킬 이벤트.
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.
search_count0Integer number매 틱 탐색 범위와 높이 안에서 이동할 유효한 블록을 찾기 위해 무작위로 고르는 블록의 수.
search_height1Integer number엔티티가 유효한 대상 위치를 찾는 높이(블록). 값은 0보다 커야 한다.
search_range0Integer number엔티티가 유효한 대상 위치를 찾는 거리(블록). 값은 0보다 커야 한다.
seconds_before_pickup0Decimal number떨어진 아이템을 바닥에서 주울 수 있기까지 지나야 하는 시간(초).
speed_multiplier1Decimal number이 목표를 쓸 때의 몹 이동 속도 배율.
target_range[1, 1, 1]Array of numbers아이템을 떨어뜨려 줄 대상을 찾기 위해 엔티티가 검색하는 블록 범위.
target_range (Target Range)not setTarget Range (Target Range) item
teleport_offset[0, 1, 0]Array of numbers엔티티가 순간이동할 때 순간이동 위치를 X, Y, Z 좌표로 이만큼(블록) 옮긴다.
teleport_offset (Teleport Offset)not setTeleport 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​

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

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

이름기본값유형설명
eventString
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
targetselfTarget 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​

값제목설명
babyBaby
blockBlock
damagerDamager
holderHolder
itemItem
otherOther
parentParent
playerPlayer
selfSelf
targetTarget

Target Range (Target Range)​

Target Range Properties​

JSON path: target_range

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

Teleport Offset (Teleport Offset)​

Same structure as Target Range (Target Range).

Legacy FloatRange​

Legacy FloatRange Properties​

JSON path: time_of_day_range

이름기본값유형설명
max0Decimal number
min0Decimal 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"}
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.Sheep: 6
success_chance0.019999999552965164Keyed set of strings엔티티가 블록을 먹는 데 성공할 확률을 정의하는 Molang 식.Sheep: "query.is_baby ? 0.02 : 0.001"
success_chance (as Named set of objects)not setKey/item pairs of Success Chance (Legacy Molang Expression) items
success_chance (as Decimal number)not setDecimal number
time_until_eat1.7999999523162842Decimal number먹기 시도에 성공했을 때 블록이 먹히기까지 걸리는 시간(초).Sheep: 1.8

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

Entity EatAndReplaceBlockPair​

Entity EatAndReplaceBlockPair Properties​

JSON path: eat_and_replace_block_pairs

이름기본값유형설명
eat_blockString엔티티가 먹을 블록.
replace_blockString먹힌 블록을 대체할 블록.

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

이름기본값유형설명
eventString
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
targetselfTarget 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

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

Target choices​

값제목설명
babyBaby
blockBlock
damagerDamager
holderHolder
itemItem
otherOther
parentParent
playerPlayer
selfSelf
targetTarget

Legacy Molang Expression​

Legacy Molang Expression Properties​

JSON path: success_chance

이름기본값유형설명
expressionnot setString
versionnot setInteger 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_eating0Decimal number아이템을 먹기 전에 몹이 기다려야 하는 시간(초).
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

예시​

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_time1Decimal number먹기 애니메이션이 재생되는 시간(초)을 정한다.Frog: 0.3
eat_mob_soundString몹을 먹을 때 재생할 소리를 정한다.Frog: "tongue"
loot_tableString몹을 먹을 때 떨어뜨릴 전리품 루트 테이블.Frog: "loot_tables/entities/frog.json"
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.Frog: 7
pull_in_force1Decimal number먹힐 몹이 먹는 몹 쪽으로 끌려오는 힘을 정한다.Frog: 0.75
reach_mob_distance1Decimal number몹을 먹기 전에 도달해야 하는 거리를 정한다.Frog: 1.75
run_speed1Decimal number대상을 향해 달릴 때 엔티티의 속도를 정한다.Frog: 2

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

예시​

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_time0.5Decimal number목표를 다시 쓰기 전에 몹이 기다려야 하는 시간(초).
duration5Decimal 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"}
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

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

이름기본값유형설명
eventString
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
targetselfTarget 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

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

Target choices​

값제목설명
babyBaby
blockBlock
damagerDamager
holderHolder
itemItem
otherOther
parentParent
playerPlayer
selfSelf
targetTarget

예시​

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​

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

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​

이름기본값유형설명
prioritynot setInteger number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.
출처
id출처라이선스커밋접근일
ms-learnMinecraft Creator 문서 (Microsoft Learn)CC BY 4.0 (문서), MIT (코드)a9fd1c02026-11-13