본문으로 건너뛰기

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

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

minecraft:behavior.timer_flag_1​

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

동작이 시작될 때 이벤트를 발생시키고 일정 시간 기다린 뒤 멈춘다. 끝나거나 중단될 때 다른 이벤트를 발생시킨다.

Fires an event when this behavior starts, then waits for a duration before stopping. When stopping due to that timeout or due to being interrupted by another behavior, fires another event. query.timer_flag_1 will return 1.0 on both the client and server when this behavior is running, and 0.0 otherwise.

[!Note] In 1.26.0 the schema is stricter and rejects invalid JSON. cooldown_range and duration_range now only accept an object with min and max values; the previous single-number shorthand is no longer accepted in 1.26.0 and newer.

[!Note] This item requires a format version of at least 1.20.40.

Entity Timer Flag 1 Behavior Properties​

이름기본값유형설명예시 값
control_flags[]Control Flags choicesSniffer: ["move","look"]
cooldown_range (Legacy FloatRange){"max":0,"min":0}Cooldown Range item목표 쿨다운 범위(초). 범위 객체나 숫자 하나를 쓸 수 있다.Sniffer: {"min":400,"max":500}
cooldown_range (as Decimal number)not setDecimal number
duration_range (Legacy FloatRange){"max":0,"min":0}Duration Range item목표 지속 시간 범위(초). 범위 객체나 숫자 하나를 쓸 수 있다.Sniffer: {"min":2,"max":2}
duration_range (as Decimal number)not setDecimal number
on_end{"event":"","filters":{"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null},"target":"self"}End item목표가 끝날 때 실행할 이벤트.Sniffer: {"event":"on_scenting_success","target":"self"}
on_start{"event":"","filters":{"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null},"target":"self"}Start item목표가 시작될 때 실행할 이벤트.
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.Sniffer: 6

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

Legacy FloatRange​

Legacy FloatRange Properties​

JSON path: cooldown_range

이름기본값유형설명
max0Decimal number
min0Decimal number

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_end

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

예시​

Sniffer​
"minecraft:behavior.timer_flag_1": {
"priority": 6,
"control_flags": [
"move",
"look"
],
"cooldown_range": {
"min": 400,
"max": 500
},
"duration_range": {
"min": 2,
"max": 2
},
"on_end": {
"event": "on_scenting_success",
"target": "self"
}
}

minecraft:behavior.timer_flag_2​

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

동작이 시작될 때 이벤트를 발생시키고 일정 시간 기다린 뒤 멈춘다. 끝나거나 중단될 때 다른 이벤트를 발생시킨다.

Fires an event when this behavior starts, then waits for a duration before stopping. When stopping due to that timeout or due to being interrupted by another behavior, fires another event. query.timer_flag_2 will return 1.0 on both the client and server when this behavior is running, and 0.0 otherwise.

[!Note] In 1.26.0 the schema is stricter and rejects invalid JSON. cooldown_range and duration_range now only accept an object with min and max values; the previous single-number shorthand is no longer accepted in 1.26.0 and newer.

[!Note] This item requires a format version of at least 1.20.40.

Entity Timer Flag 2 Behavior Properties​

이름기본값유형설명예시 값
control_flags[]Control Flags choicesSniffer: ["move"]
cooldown_range (Legacy FloatRange){"max":0,"min":0}Cooldown Range item목표 쿨다운 범위(초). 범위 객체나 숫자 하나를 쓸 수 있다.Sniffer: {"min":0,"max":0}
cooldown_range (as Decimal number)not setDecimal number
duration_range (Legacy FloatRange){"max":0,"min":0}Duration Range item목표 지속 시간 범위(초). 범위 객체나 숫자 하나를 쓸 수 있다.Sniffer: {"min":2,"max":5}
duration_range (as Decimal number)not setDecimal number
on_end{"event":"","filters":{"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null},"target":"self"}End item목표가 끝날 때 실행할 이벤트.Sniffer: {"event":"on_rising_end","target":"self"}
on_start{"event":"","filters":{"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null},"target":"self"}Start item목표가 시작될 때 실행할 이벤트.
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.Sniffer: 2

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

Legacy FloatRange​

Legacy FloatRange Properties​

JSON path: cooldown_range

이름기본값유형설명
max0Decimal number
min0Decimal number

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_end

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

예시​

Sniffer​
"minecraft:behavior.timer_flag_2": {
"priority": 2,
"control_flags": [
"move"
],
"cooldown_range": {
"min": 0,
"max": 0
},
"duration_range": {
"min": 2,
"max": 5
},
"on_end": {
"event": "on_rising_end",
"target": "self"
}
}

minecraft:behavior.timer_flag_3​

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

동작이 시작될 때 이벤트를 발생시키고 일정 시간 기다린 뒤 멈춘다. 끝나거나 중단될 때 다른 이벤트를 발생시킨다.

Fires an event when this behavior starts, then waits for a duration before stopping. When stopping due to that timeout or due to being interrupted by another behavior, fires another event. query.timer_flag_3 will return 1.0 on both the client and server when this behavior is running, and 0.0 otherwise.

[!Note] In 1.26.0 the schema is stricter and rejects invalid JSON. cooldown_range and duration_range now only accept an object with min and max values; the previous single-number shorthand is no longer accepted in 1.26.0 and newer.

[!Note] This item requires a format version of at least 1.20.40.

Entity Timer Flag 3 Behavior Properties​

이름기본값유형설명예시 값
control_flags[]Control Flags choices
cooldown_range (Legacy FloatRange){"max":0,"min":0}Cooldown Range item목표 쿨다운 범위(초). 범위 객체나 숫자 하나를 쓸 수 있다.Sniffer: {"min":0,"max":0}
cooldown_range (as Decimal number)not setDecimal number
duration_range (Legacy FloatRange){"max":0,"min":0}Duration Range item목표 지속 시간 범위(초). 범위 객체나 숫자 하나를 쓸 수 있다.Sniffer: {"min":2,"max":5}
duration_range (as Decimal number)not setDecimal number
on_end{"event":"","filters":{"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null},"target":"self"}End item목표가 끝날 때 실행할 이벤트.Sniffer: {"event":"on_feeling_happy_end","target":"self"}
on_start{"event":"","filters":{"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null},"target":"self"}Start item목표가 시작될 때 실행할 이벤트.
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.Sniffer: 5

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

Legacy FloatRange​

Legacy FloatRange Properties​

JSON path: cooldown_range

이름기본값유형설명
max0Decimal number
min0Decimal number

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_end

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

예시​

Sniffer​
"minecraft:behavior.timer_flag_3": {
"priority": 5,
"cooldown_range": {
"min": 0,
"max": 0
},
"duration_range": {
"min": 2,
"max": 5
},
"on_end": {
"event": "on_feeling_happy_end",
"target": "self"
}
}

minecraft:behavior.trade_interest​

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

거래 가능한 아이템을 든 플레이어를 바라보게 한다.

Allows the mob to look at a player that is holding a tradable item.

Entity Trade Interest Behavior Properties​

이름기본값유형설명
carried_item_switch_time2Decimal number같은 거래가 되는 다른 아이템으로 바꾸려 하기 전에 상인이 아이템을 들고 있는 최대 시간(초).
control_flags[]Control Flags choices
cooldown2Decimal number상인이 이 목표를 다시 쓸 수 있기까지의 시간(초).
interest_time45Decimal number상인이 거래 아이템을 보여 주며 관심을 보이는 최대 시간(초).
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.
remove_item_time1Decimal number거래할 아이템이 더 이상 없을 때 상인이 기다리는 최대 시간(초).
within_radius0Decimal number이 몹이 좋아하는 아이템을 든 플레이어에게 관심을 가질 수 있는 거리(블록).

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

예시​

minecraft:behavior.trade_with_player​

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

플레이어가 이 몹과 거래하게 한다. 목표가 시작되면 몹의 내비게이션을 멈춘다.

Allows the player to trade with this mob. When the goal starts, it will stop the mob's navigation.

Trade With Player Behavior Properties​

이름기본값유형설명
filtersnot setMinecraft filter행동이 시작되기 위해 충족해야 하는 조건.
max_distance_from_player8Decimal number목표를 벗어나기 전에 몹이 플레이어에게서 떨어질 수 있는 최대 거리.
prioritynot setInteger number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.

예시​

minecraft:behavior.transport_items​

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

몹이 컨테이너 사이에서 아이템을 나르게 한다.

A behavior that enables a mob to transport items from and to containers.

Entity Transport Items Behavior Properties​

이름기본값유형설명
allow_simultaneous_interactionfalseBoolean true/falsetrue이면 몹이 컨테이너를 다른 엔티티가 쓰지 않을 때까지 기다린 뒤에 상호작용을 시작한다.
allowed_items[]String몹이 운반할 수 있는 유일한 아이템인 아이템 설명자 목록.
allowed_items (as Keyed set of strings)not setKeyed set of strings
control_flags[]Control Flags choices
destination_container_types (Destination Container Types)[]Destination Container Types item아이템을 넣을 컨테이너 종류인 블록 설명자 목록. 단순한 블록 식별자 문자열이나 name, states, tags를 가진 객체를 쓸 수 있다.
destination_container_types (Destination Container Type)not setArray of Destination Container Types (Destination Container Type) items
disallowed_items[]String몹이 운반할 수 없는 아이템 설명자 목록. 비어 있지 않으면 "allowed_items"는 비어 있어야 한다.
disallowed_items (as Keyed set of strings)not setKeyed set of strings
idle_cooldown20Integer number몹이 아이템을 꺼내거나 넣을 컨테이너를 찾지 못하면 목표가 이 시간(초) 동안 활성 상태가 아니게 된다.
initial_cooldown0Integer number스폰되거나 목표가 추가된 뒤 목표가 시작될 수 있기까지 몹이 기다리는 시간.
interaction_time3Decimal number컨테이너와 상호작용하는 데 쓰는 시간(초).
max_stack_size64Integer number몹이 컨테이너에서 꺼내려 하는 최대 스택 크기. 값은 1 이상 64 이하여야 한다.
max_visited_containers16Integer number쿨다운에 들어가 처음부터 다시 시작하기 전에 몹이 아이템을 꺼내거나 넣으려 하는 최대 컨테이너 수.
place_strategyanyPlace Strategy choices운반하는 아이템을 놓을 때 쓰는 전략.
priority0Integer number
search_distance[64, 32]Array of numbers아이템을 꺼내거나 넣을 컨테이너를 찾는 최대 수평·수직 검색 거리.
search_distance (Search Distance)not setSearch Distance (Search Distance) item
search_strategyrandomSearch Strategy choices출발지 또는 목적지 컨테이너를 찾을 때 쓰는 전략. 유효한 가장 가까운 컨테이너 또는 범위 안의 무작위 유효한 컨테이너.
source_container_types (Source Container Types)[]Source Container Types item아이템을 꺼낼 컨테이너 종류인 블록 설명자 목록. 단순한 블록 식별자 문자열이나 name, states, tags를 가진 객체를 쓸 수 있다.
source_container_types (Source Container Type)not setArray of Source Container Types (Source Container Type) items

allowed_items​

A list of item descriptors that are the only items the mob is allowed to transport. If this and "disallowed_items" are both empty, then all items are allowed. If non-empty "disallowed_items" must be empty.

place_strategy​

The strategy to use for placing the transported item. Any - always place if there is room, With matching - place if there is a matching item in the container, With matching or empty - like With matching but will also place in empty containers.

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

Destination Container Types​

Destination Container Types Properties​

JSON path: destination_container_types

이름기본값유형설명
nameString
states{}Integer number
states (as String)not setString
states (as Boolean true/false)not setBoolean true/false
tagsString

Destination Container Types (Destination Container Type)​

Destination Container Type Properties​

JSON path: destination_container_types

이름기본값유형설명
namenot setString'minecraft:chest' 같은 블록 식별자.
statesnot setKeyed set of strings일치시킬 블록 상태 값.
tagsnot setString일치시킬 블록 태그.

Place Strategy choices​

값제목설명
anyAny
with_matchingWith matching
with_matching_or_emptyWith matching or empty

Search Distance (Search Distance)​

Search Distance Properties​

JSON path: search_distance

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

Search Strategy choices​

값제목설명
nearestNearest
randomRandom

Source Container Types​

Same structure as Destination Container Types.

Source Container Types (Source Container Type)​

Same structure as Destination Container Types (Destination Container Type).

예시​

출처
id출처라이선스커밋접근일
ms-learnMinecraft Creator 문서 (Microsoft Learn)CC BY 4.0 (문서), MIT (코드)a9fd1c02026-11-13