본문으로 건너뛰기

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

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

minecraft:behavior.pet_sleep_with_owner​

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

반려 몹이 잠자는 주인과 함께 침대 위로 올라가게 한다. 길들여 주인이 있어야 한다.

Allows the pet mob to move onto a bed with its owner while sleeping.

[!Note] Requires a player to be set as the tame owner via taming (or the tame command, or the tame API on EntityTameableComponent) in order to work properly.

Pet Sleep With Owner Behavior Properties​

이름기본값유형설명
goal_radius0.5Decimal number몹이 목표에 도달했다고 보는 블록 거리. AI가 특정 지점에 닿으려 앞뒤로 흔들리는 것을 막는 '여유'다.
prioritynot setInteger number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.
search_height1Integer number반려 동물이 주인과 함께 자려면 주인으로부터 있을 수 있는 높이(블록).
search_range0Integer number반려 동물이 주인과 함께 자려면 주인으로부터 있을 수 있는 거리(블록).
speed_multiplier1Decimal number이 AI 목표를 쓸 때의 몹 이동 속도 배율.

예시​

minecraft:behavior.pickup_items​

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

몹이 바닥의 아이템을 줍게 한다.

Allows the mob to pick up items on the ground.

Entity Pickup Items Behavior Properties​

이름기본값유형설명예시 값
can_pickup_any_itemfalseBoolean true/falsetrue이면 몹이 모든 아이템을 주울 수 있다.Bogged: true
can_pickup_to_hand_or_equipmenttrueBoolean true/falsetrue이면 몹이 손이나 방어구 슬롯으로 아이템을 주울 수 있다.
control_flags[]Control Flags choices
cooldown_after_being_attacked0Integer number공격받은 뒤 몹이 아이템을 주울 수 없는 시간(초).
excluded_items[]String이 몹이 줍지 않을 아이템 목록.Bogged: [{"tags":"q.all_tags('minecraft:is_spear')"}], Drowned: [{"name":"minecraft:glow_ink_sac"},{"tags":"q.all_tags('minecraft:is_spear')"}]
excluded_items (as Keyed set of strings)not setKeyed set of strings
goal_radius0.5Decimal number몹이 목표에 도달했다고 보는 블록 거리. AI가 특정 지점에 닿으려 앞뒤로 흔들리는 것을 막는 '여유'다.Allay: 2.2, Bogged: 2
max_dist1Integer number이 몹이 주울 아이템을 찾는 최대 거리.Allay: 32, Bogged: 3
on_pickup_item_end{"event":"","filters":{"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null},"target":"self"}Pickup Item End item이 몹이 아이템 줍기를 마치거나 흥미를 잃었을 때 실행할 이벤트. 형식 버전 1.26.20 이상이 필요하다.
on_pickup_item_start{"event":"","filters":{"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null},"target":"self"}Pickup Item Start item이 몹이 아이템을 주우러 이동할 때 실행할 이벤트. 형식 버전 1.26.20 이상이 필요하다.
pickup_based_on_chancefalseBoolean true/falsetrue이면 난이도에 따라 몹이 아이템을 주울 수 없게 될 무작위 확률이 있다.Bogged: true
pickup_same_items_as_in_handfalseBoolean true/falsetrue이면 몹이 이미 들고 있는 것과 같은 아이템만 줍는다.Allay: true
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.Allay: 2, Bogged: 5, Drowned: 6
search_height1Integer number몹이 아이템을 찾는 높이(블록).Allay: 32
speed_multiplier1Decimal number이 AI 목표를 쓸 때의 몹 이동 속도 배율.Allay: 6, Bogged: 1
stop_if_holding_itemfalseBoolean true/falsetrue이면 이미 아이템을 든 동안에는 줍기 목표를 시작하지 않는다. 한 번에 아이템 하나만 들어야 하는 몹에 유용하다. 형식 버전 1.26.30 이상이 필요하다.
track_targetfalseBoolean true/falsetrue이면 유효한 대상인 동안 몹이 대상을 계속 쫓는다.

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_pickup_item_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_pickup_item_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

예시​

Allay​
"minecraft:behavior.pickup_items": {
"can_pickup_any_item": false,
"search_height": 32,
"priority": 2,
"goal_radius": 2.2,
"can_pickup_to_hand_or_equipment": false,
"max_dist": 32,
"pickup_based_on_chance": false,
"pickup_same_items_as_in_hand": true,
"speed_multiplier": 6
}
Bogged​
"minecraft:behavior.pickup_items": {
"can_pickup_any_item": true,
"excluded_items": [
{
"tags": "q.all_tags('minecraft:is_spear')"
}
],
"pickup_based_on_chance": true,
"goal_radius": 2,
"priority": 5,
"max_dist": 3,
"speed_multiplier": 1
}
Drowned​
"minecraft:behavior.pickup_items": {
"can_pickup_any_item": true,
"excluded_items": [
{
"name": "minecraft:glow_ink_sac"
},
{
"tags": "q.all_tags('minecraft:is_spear')"
}
],
"pickup_based_on_chance": true,
"goal_radius": 2,
"priority": 6,
"max_dist": 3,
"speed_multiplier": 1
}
Parched​
"minecraft:behavior.pickup_items": {
"can_pickup_any_item": true,
"excluded_items": [
{
"tags": "q.all_tags('minecraft:is_spear')"
}
],
"pickup_based_on_chance": true,
"goal_radius": 2,
"priority": 6,
"max_dist": 3,
"speed_multiplier": 1
}

minecraft:behavior.place_block​

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

원문에 설명이 없다. 속성 표를 본다.

Contents​

  • Can Place
  • Entity ActorDefinitionTrigger
  • Placeable Carried Blocks
  • Entity PlaceBlockGoalWeightedBlockDescriptor
  • Block IntRange

AI goal that makes entities place blocks into the world, like Endermen placing their carried block or snow golems leaving snow trails. Configure which blocks can be placed, where they can be placed, and how often the entity attempts placement. Creates mobs that modify the environment.

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

Entity Place Block Behavior Properties​

이름기본값유형설명
affected_by_griefing_ruletrueBoolean true/falsetrue이면 목표가 몹 그리핑 게임 규칙의 영향을 받는다.
can_place (Can Place){"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null}Can Place item엔티티가 블록을 놓으려 시도할지 정하는 필터. Self와 Target이 설정된다.
can_place (Alternate 1)not setObject
chance1Decimal number엔티티가 블록을 놓으려 시도할 틱당 확률. 값은 1 이하여야 한다.
control_flags[]Control Flags choices
on_place{"event":"","filters":{"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null},"target":"self"}Place item엔티티가 블록을 실제로 놓았을 때 실행되는 트리거. Self, Target, Block이 설정된다.
placeable_carried_blocks (Placeable Carried Blocks)[]Array of Placeable Carried Blocks items엔티티가 든 아이템에서 놓을 수 있는 블록을 정하는 블록 설명자. 비어 있으면 모든 블록이 유효하다.
placeable_carried_blocks (as String)not setString
placeable_carried_blocks (as Object)not setObject
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.
randomly_placeable_blocks[]Array of Randomly Placeable Blocks items무작위로 놓을 블록을 정하는 가중치가 있는 블록 설명자. 비어 있으면 엔티티가 placeable_carried_blocks에서 든 블록을 놓으려 한다.
xz_range{"max":2,"min":-2}Xz Range item엔티티가 블록을 놓으려 시도하는 XZ 범위.
y_range{"max":3,"min":0}y Range item엔티티가 블록을 놓으려 시도하는 Y 범위.

Can Place​

Can Place Properties​

JSON path: can_place

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

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_place

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

Placeable Carried Blocks​

Placeable Carried Blocks Properties​

JSON path: placeable_carried_blocks

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

Entity PlaceBlockGoalWeightedBlockDescriptor​

Entity PlaceBlockGoalWeightedBlockDescriptor Properties​

JSON path: randomly_placeable_blocks

이름기본값유형설명
block (Block){"name":"","states":{},"tags":""}Block item이 항목의 블록 설명자.
block (as String)not setString
block (Alternate 2)not setObject
filter (Filter){"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null}Filter item이 항목을 무작위로 고를 수 있는지 정하는 필터. Self, Target, Block이 설정된다.
filter (Alternate 1)not setObject
weight1Integer number이 항목의 가중치.
Block​
Block Properties​

JSON path: randomly_placeable_blocks > block

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

JSON path: randomly_placeable_blocks > filter

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

Block IntRange​

Block IntRange Properties​

JSON path: xz_range

이름기본값유형설명
max0Integer number
min0Integer number

예시​

minecraft:behavior.play​

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

take_flower 동작을 가진 다른 몹에게 꽃을 건네게 한다(원문 설명 그대로). 주민에게만 쓸 수 있다.

Allows the mob to offer a flower to another mob with the minecraft:take_flower behavior.

[!Note] Can only be used on the following type of entity:

  • Villager (minecraft:villager)

Entity Play Behavior Properties​

이름기본값유형설명
chance_to_start0.0024999999441206455Decimal number몹이 이 목표를 시작할 확률(0~1). 값은 1 이하여야 한다.
control_flags[]Control Flags choices
follow_distance2Integer number몹이 따라가는 친구와 유지하려는 범위 거리(블록).
friend_search_area[6, 3, 6]Array of numbers함께 놀 친구 후보를 찾는 데 쓰는 AABB의 크기.
friend_search_area (Friend Search Area)not setFriend Search Area (Friend Search Area) item
friend_types[]Array of objects함께 놀 친구 후보를 찾을 때 고려할 엔티티 종류.
friend_types (Friend Types)not setFriend Types (Friend Types) item
max_play_duration_seconds50Decimal number목표를 끝내기 전에 몹이 노는 최대 시간(초).
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.
random_pos_search_height3Integer number몹이 이동할 무작위 위치를 찾는 높이(블록). 최소 1이어야 한다. 값은 1 이상이어야 한다.
random_pos_search_range16Integer number몹이 이동할 무작위 위치를 지면에서 찾는 거리(블록). 최소 1이어야 한다. 값은 1 이상이어야 한다.
speed_multiplier1Decimal number이 AI 목표를 쓸 때의 몹 이동 속도 배율.

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

Friend Search Area (Friend Search Area)​

Friend Search Area Properties​

JSON path: friend_search_area

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

Friend Types (Friend Types)​

Friend Types Properties​

JSON path: friend_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: friend_types > filters

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

예시​

minecraft:behavior.play_dead​

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

공격자의 표적이 되지 않도록 죽은 척하게 한다.

Allows this entity to pretend to be dead to avoid being targeted by attackers.

Entity Play Dead Behavior Properties​

이름기본값유형설명
apply_regenerationfalseBoolean true/false죽은 척하는 동안 몹이 재생 효과를 받는지 여부.
control_flags[]Control Flags choices
damage_sources[]Damage Sources choices이 몹이 죽은 척하게 만드는 엔티티 피해 원인 목록.
duration1Decimal 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
force_below_health0Integer number이 체력에서 피해를 입으면 몹이 죽은 척을 하게 되는 체력.
priority0Integer number0에 가까울수록 우선순위가 높아진다. 우선순위가 높을수록 이 행동(목표)이 더 먼저 실행된다.
random_damage_range{"max":0,"min":0}Random Damage Range item무작위에 따라 목표를 시작시킬 수 있는 피해량의 범위.
random_start_chance1Decimal number피해를 입을 때 이 목표가 시작될 가능성.

random_damage_range​

The range of damage that may cause the goal to start depending on randomness. Damage taken below the min will never cause the goal to start. Damage taken above the max will always cause the goal to start.

Control Flags choices​

값제목설명
jumpJump
lookLook
moveMove

Damage Sources choices​

값제목설명
allAll
anvilAnvil
block_explosionBlock explosion
campfireCampfire
chargingCharging
contactContact
drowningDrowning
entity_attackEntity attack
entity_explosionEntity explosion
fallFall
falling_blockFalling block
fireFire
fire_tickFire tick
fireworksFireworks
fly_into_wallFly into wall
freezingFreezing
lavaLava
lightningLightning
mace_smashMace smash
magicMagic
magmaMagma
noneNone
overrideOverride
pistonPiston
projectileProjectile
ram_attackRam attack
self_destructSelf destruct
sonic_boomSonic boom
soul_campfireSoul campfire
stalactiteStalactite
stalagmiteStalagmite
starveStarve
suffocationSuffocation
temperatureTemperature
thornsThorns
voidVoid
witherWither

Filters​

Filters Properties​

JSON path: filters

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

Block IntRange​

Block IntRange Properties​

JSON path: random_damage_range

이름기본값유형설명
max0Integer number
min0Integer number

예시​

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