본문으로 건너뛰기

엔티티 컴포넌트 레퍼런스 (9/23)

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

minecraft:ignore_cannot_be_attacked​

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

cannot_be_attacked를 가진 엔티티 중 필터를 만족하는 것에는 그 효과를 무시하게 한다.

Allows the owner entity to ignore the "minecraft:cannot_be_attacked" component on entities that fulfill the filter.

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

Entity Ignore Cannot Be Attacked Properties​

이름기본값유형설명
filters (Filters){"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null}Filters item소유 엔티티가 공격할 수 있는 예외 엔티티를 정의한다. 공격 대상이 될 엔티티는 subject "other"다.
filters (Alternate 1)not setObject

filters​

Defines which entities are exceptions and are allowed to be attacked by the owner entity, potentially attacked entity is subject "other". If this is not specified then all attacks by the owner are allowed.

Filters​

Filters Properties​

JSON path: filters

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

minecraft:input_air_controlled​

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

탑승 가능한 엔티티를 WASD와 마우스로 3차원에서 조종하게 한다.

When configured as a rideable entity, the entity will be controlled using WASD controls and mouse to move in three dimensions.

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

Input Air Controlled Properties​

이름기본값유형설명예시 값
backwards_movement_modifier0.5Decimal number뒤로 갈 때의 속도를 조정한다.Happy Ghast: 0.5
strafe_speed_modifier0.4Decimal number옆걸음(스트레이프) 속도를 조정한다.Happy Ghast: 1

예시​

Happy Ghast​
"minecraft:input_air_controlled": {
"strafe_speed_modifier": 1,
"backwards_movement_modifier": 0.5
}

minecraft:input_ground_controlled​

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

탑승 가능한 엔티티를 WASD로 조종하게 한다.

When configured as a rideable entity, the entity will be controlled using WASD controls. Beginning with 1.19.50 the default auto step height for rideable entities is half a block. Consider adding the "minecraft:variable_max_auto_step" component to increase it.

예시​

minecraft:inside_block_notifier​

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

엔티티가 나열한 블록 안에 있는지 확인한다.

Verifies whether the entity is inside any of the listed blocks.

Inside Block Notifier Properties​

이름기본값유형설명예시 값
block_listnot setArray of Block List items엔티티가 그 안에 있는지 감시할, 특정 블록 상태를 가진 블록 목록.Boat: [{"block":{"name":"minecraft:bubble_column","states":{"drag_down":true}},"entered_block_event":{"event":"minecraft:entered_bubble_column_down","target":"self"},"exited_block_event":{"event":"minecraft:exited_bubble_column","target":"self"}},{"block":{"name":"minecraft:bubble_column","states":{"drag_down":false}},"entered_block_event":{"event":"minecraft:entered_bubble_column_up","target":"self"},"exited_block_event":{"event":"minecraft:exited_bubble_column","target":"self"}}]

Block List​

Block Entry Properties​

JSON path: block_list

이름기본값유형설명
blocknot setBlock item감시할 블록. 이름과 선택적 상태를 포함한다.
entered_block_eventnot setMinecraft Event Trigger엔티티가 블록 안으로 들어갈 때 발생시킬 이벤트.
exited_block_eventnot setMinecraft Event Trigger엔티티가 블록에서 나갈 때 발생시킬 이벤트.
Block​
Block Descriptor Properties​

JSON path: block_list > block

이름기본값유형설명
namenot setString블록 식별자.
statesnot setKeyed collection of boolean values일치시킬 블록 상태.

예시​

Boat​
"minecraft:inside_block_notifier": {
"block_list": [
{
"block": {
"name": "minecraft:bubble_column",
"states": {
"drag_down": true
}
},
"entered_block_event": {
"event": "minecraft:entered_bubble_column_down",
"target": "self"
},
"exited_block_event": {
"event": "minecraft:exited_bubble_column",
"target": "self"
}
},
{
"block": {
"name": "minecraft:bubble_column",
"states": {
"drag_down": false
}
},
"entered_block_event": {
"event": "minecraft:entered_bubble_column_up",
"target": "self"
},
"exited_block_event": {
"event": "minecraft:exited_bubble_column",
"target": "self"
}
}
]
}

minecraft:insomnia​

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

마지막으로 쉰 뒤의 시간을 재서 팬텀이 스폰될지 판단한다.

Adds a timer since last rested to see if phantoms should spawn.

Entity Insomnia Properties​

이름기본값유형설명예시 값
days_until_insomnia3Decimal number불면 효과가 시작되기 전까지 몹이 깨어 있어야 하는 일수.Player: 3

예시​

Player​
"minecraft:insomnia": {
"days_until_insomnia": 3
}

minecraft:instant_despawn​

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

엔티티를 즉시 디스폰한다.

Despawns the Actor immediately.

Entity Instant Despawn Properties​

이름기본값유형설명
remove_child_entitiesfalseBoolean true/falsetrue이면 이 엔티티와 자식 관계(예: 끈으로 묶임)로 연결된 모든 엔티티도 함께 디스폰된다.

예시​

minecraft:interact​

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

엔티티와의 상호작용을 정의한다.

Defines interactions with this entity.

[!Note] In 1.26.0, the swing field on each interaction entry defaults to true (it previously defaulted to false). Set it explicitly to false to opt out of the player's swing animation.

Entity Interact Properties​

이름기본값유형설명
cooldown0Decimal number엔티티와 다시 상호작용할 수 있기까지의 시간(초).
cooldown_after_being_attacked0Decimal number공격받은 뒤 엔티티와 상호작용할 수 있기까지의 시간(초).
drop_item_slotnot setString상호작용에 성공했을 때 아이템을 빼서 떨어뜨릴 엔티티의 슬롯(있다면).
drop_item_y_offset0Decimal number아이템이 떨어지는 위치를 y 방향으로 이만큼 옮긴다. "drop_item_slot"을 지정해야 한다.
equip_item_slotnot setString상호작용에 성공했을 때 아이템을 장착할 엔티티의 슬롯(있다면).
health_amount0Integer number이 아이템으로 상호작용할 때 엔티티가 회복하거나 잃는 체력. 음수이면 엔티티가 해를 입는다.
hurt_item0Integer number이 아이템으로 엔티티와 상호작용할 때 아이템이 입는 피해. 0이면 내구도가 줄지 않는다.
interact_textnot setString터치스크린 조작 시 플레이어가 이 방식으로 엔티티와 상호작용할 수 있을 때 보여 줄 텍스트.
interactions (Entity InteractionData)[]Array of Interactions items이 엔티티의 상호작용 목록.
interactions (as Object)not setObject

drop_item_slot​

The entity's slot to remove and drop the item from, if any, upon successful interaction. Inventory slots are denoted by positive numbers. Equipment slots are denoted by 'slot.weapon.mainhand', 'slot.weapon.offhand', 'slot.armor.head', 'slot.armor.chest', 'slot.armor.legs', 'slot.armor.feet' and 'slot.armor.body'.

equip_item_slot​

The entity's slot to equip the item to, if any, upon successful interaction. Inventory slots are denoted by positive numbers. Equipment slots are denoted by 'slot.weapon.mainhand', 'slot.weapon.offhand', 'slot.armor.head', 'slot.armor.chest', 'slot.armor.legs', 'slot.armor.feet' and 'slot.armor.body'.

Entity InteractionData​

Entity InteractionData Properties​

JSON path: interactions

이름기본값유형설명
add_items{"table":""}Add Items item상호작용에 성공했을 때 플레이어 인벤토리에 추가할 아이템이 담긴 루트 테이블.
admirefalseBoolean true/falsetrue이면 상호작용을 받은 몹이 그 뒤에 감상 동작을 시도한다. 성공하려면 몹에 Admire 컴포넌트와 Admire 목표가 있어야 한다.
barterfalseBoolean true/falsetrue이면 상호작용을 받은 몹이 그 뒤에 물물교환 동작을 시도한다. 성공하려면 몹에 Barter 컴포넌트와 Barter 목표가 있어야 한다.
cooldown0Decimal number엔티티와 다시 상호작용할 수 있기까지의 시간(초).
cooldown_after_being_attacked0Decimal number공격받은 뒤 엔티티와 상호작용할 수 있기까지의 시간(초).
drop_item_slotnot setString상호작용에 성공했을 때 아이템을 빼서 떨어뜨릴 엔티티의 슬롯(있다면).
drop_item_y_offset0Decimal number아이템이 떨어지는 위치를 y 방향으로 이만큼 옮긴다. "drop_item_slot"을 지정해야 한다.
equip_item_slotnot setString상호작용에 성공했을 때 아이템을 장착할 엔티티의 슬롯(있다면).
give_itemfalseBoolean true/falsetrue이면 상호작용을 받은 몹이 그 뒤에 현재 주로 쓰는 손의 아이템을 상호작용 아이템으로 바꾸려 한다.
health_amount0Integer number이 아이템으로 상호작용할 때 엔티티가 회복하거나 잃는 체력. 음수이면 엔티티가 해를 입는다.
hurt_item0Integer number이 아이템으로 엔티티와 상호작용할 때 아이템이 입는 피해. 0이면 내구도가 줄지 않는다.
interact_textString터치스크린 조작 시 플레이어가 이 방식으로 엔티티와 상호작용할 수 있을 때 보여 줄 텍스트.
on_interact{"event":"","filters":{"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null},"target":"self"}Interact item상호작용이 일어날 때 발생시킬 이벤트.
particle_on_start{"copper_event":"none","particle_offset_towards_interactor":false,"particle_type":"none","particle_y_offset":0}Particle On Start item상호작용이 시작될 때 일으킬 파티클 효과.
play_sounds[]Array of strings상호작용이 일어날 때 재생할 소리 목록.
repair_entity_item{"amount":1,"slot":null}Repair Entity Item item엔티티의 아이템 하나를 수리할 수 있게 한다.
spawn_entities[]Array of strings상호작용이 일어날 때 스폰할 엔티티 목록.
spawn_items{"table":"","y_offset":1}Spawn Items item상호작용에 성공했을 때 바닥에 떨어뜨릴 아이템이 담긴 루트 테이블.
swingtrueBoolean true/falsetrue이면 플레이어가 이 엔티티와 상호작용할 때 '휘두르기' 애니메이션을 한다.
take_itemfalseBoolean true/falsetrue이면 상호작용을 받은 몹이 주 손의 아이템을 빈 아이템으로 바꾸려 하고, 그 아이템은 플레이어의 선택된 빈 슬롯으로 들어간다.
transform_to_itemString사용한 아이템이 상호작용에 성공하면 이 아이템으로 바뀐다. 형식: itemName:auxValue
use_itemfalseBoolean true/falsetrue이면 상호작용에 아이템을 사용한다.
vibrationentity_interactVibration choices상호작용이 일어날 때 내보낼 진동.
drop_item_slot​

The entity's slot to remove and drop the item from, if any, upon successful interaction. Inventory slots are denoted by positive numbers. Equipment slots are denoted by 'slot.weapon.mainhand', 'slot.weapon.offhand', 'slot.armor.head', 'slot.armor.chest', 'slot.armor.legs', 'slot.armor.feet' and 'slot.armor.body'.

equip_item_slot​

The entity's slot to equip the item to, if any, upon successful interaction. Inventory slots are denoted by positive numbers. Equipment slots are denoted by 'slot.weapon.mainhand', 'slot.weapon.offhand', 'slot.armor.head', 'slot.armor.chest', 'slot.armor.legs', 'slot.armor.feet' and 'slot.armor.body'.

Entity AddItemsData​
Entity AddItemsData Properties​

JSON path: interactions > add_items

이름기본값유형설명
tablenot setString비헤이비어 팩 경로 기준의 루트 테이블 파일 경로.
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: interactions > on_interact

이름기본값유형설명
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: interactions > on_interact > 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
Entity InteractParticleData​
Entity InteractParticleData Properties​

JSON path: interactions > particle_on_start

이름기본값유형설명
copper_eventnoneCopper Event choices
particle_offset_towards_interactorfalseBoolean true/false파티클이 상호작용을 한 쪽에 더 가깝게 나타나는지 여부.
particle_typenoneParticle Type choices생성할 파티클의 종류.
particle_y_offset0Decimal number파티클을 y 방향으로 이만큼 옮긴다.

Copper Event choices​

값제목설명
noneNone
scrapeScrape
wax_offWax off
wax_onWax on

Particle Type choices​

값제목설명
balloongasBalloongas
bleachBleach
blockforcefieldBlockforcefield
blueflameBlueflame
breezewindexplosionBreezewindexplosion
bubbleBubble
bubblecolumndownBubblecolumndown
bubblecolumnupBubblecolumnup
bubblemanualBubblemanual
campfiresmokeCampfiresmoke
campfiresmoketallCampfiresmoketall
candleflameCandleflame
carrotboostCarrotboost
coloredflameColoredflame
conduitConduit
creakingcrumbleCreakingcrumble
critCrit
dragonbreathDragonbreath
dragonbreathfireDragonbreathfire
dragonbreathtrailDragonbreathtrail
dragondestroyblockDragondestroyblock
driphoneyDriphoney
driplavaDriplava
dripwaterDripwater
dustplumeDustplume
electricsparkElectricspark
enchantingtableEnchantingtable
endrodEndrod
evaporationEvaporation
explodeExplode
eyeblossomcloseEyeblossomclose
eyeblossomopenEyeblossomopen
fallingborderdustFallingborderdust
fallingdustFallingdust
fireworksFireworks
fireworksoverlayFireworksoverlay
fireworksstarterFireworksstarter
flameFlame
foodFood
greenflameGreenflame
heartHeart
hugeexplosionHugeexplosion
iceballbreakIceballbreak
iconcrackIconcrack
inkInk
largeexplodeLargeexplode
largesmokeLargesmoke
lavaLava
mobappearanceMobappearance
mobflameMobflame
mobspellMobspell
mobspellambientMobspellambient
mobspellinstantaneousMobspellinstantaneous
myceliumdustMyceliumdust
noneNone
noteNote
obsidiantearObsidiantear
orangepoplarleavesOrangepoplarleaves
paleoakleavesPaleoakleaves
pausemobgrowthPausemobgrowth
portalPortal
portalreversePortalreverse
rainsplashRainsplash
reddustReddust
redpoplarleavesRedpoplarleaves
resetmobgrowthResetmobgrowth
risingborderdustRisingborderdust
sculksoulSculksoul
shriekShriek
shulkerbulletShulkerbullet
slimeSlime
smokeSmoke
sneezeSneeze
snowballpoofSnowballpoof
snowflakeSnowflake
sonicexplosionSonicexplosion
soulSoul
sparklerSparkler
spitSpit
stalactitedriplavaStalactitedriplava
stalactitedripwaterStalactitedripwater
sulfurcubeSulfurcube
terrainTerrain
totemTotem
townauraTownaura
trackingemitterTrackingemitter
vaultconnectionVaultconnection
villagerangryVillagerangry
villagerhappyVillagerhappy
watersplashWatersplash
watersplashmanualWatersplashmanual
waterwakeWaterwake
waxWax
whitesmokeWhitesmoke
windexplosionWindexplosion
witchspellWitchspell
wolfarmorcrackWolfarmorcrack
yellowpoplarleavesYellowpoplarleaves
Entity RepairEntityItemData​
Entity RepairEntityItemData Properties​

JSON path: interactions > repair_entity_item

이름기본값유형설명
amount1Integer number상호작용 시 복원할 아이템 내구도의 양. 값은 0보다 커야 한다.
slotnot setString수리할 아이템이 들어 있는 엔티티의 슬롯.
slot​

The entity's slot containing the item to be repaired. Inventory slots are denoted by positive numbers. Equipment slots are denoted by 'slot.weapon.mainhand', 'slot.weapon.offhand', 'slot.armor.head', 'slot.armor.chest', 'slot.armor.legs', 'slot.armor.feet' and 'slot.armor.body'.

Entity SpawnItemsData​
Entity SpawnItemsData Properties​

JSON path: interactions > spawn_items

이름기본값유형설명
tableString비헤이비어 팩 경로 기준의 루트 테이블 파일 경로.
y_offset1Decimal number아이템이 생성되는 위치를 y 방향으로 이만큼 옮긴다.

Vibration choices​

값제목설명
entity_actEntity act
entity_dieEntity die
entity_interactEntity interact
noneNone
shearShear

예시​

minecraft:inventory​

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

엔티티의 인벤토리 속성을 정의한다.

Defines this entity's inventory properties.

Entity Inventory Properties​

이름기본값유형설명
additional_slots_per_strength0Integer number추가 힘 1당 엔티티가 얻는 슬롯 수.
can_be_siphoned_fromfalseBoolean true/falsetrue이면 이 인벤토리의 내용물을 호퍼가 꺼낼 수 있다.
container_typenoneString엔티티가 가진 컨테이너 종류. horse, minecart_chest, chest_boat, minecart_hopper, inventory, container, hopper 중 하나다.
inventory_size5Integer number컨테이너의 슬롯 수.
privatefalseBoolean true/falsetrue이면 엔티티가 죽을 때 인벤토리를 떨어뜨리지 않는다.
restrict_to_ownerfalseBoolean true/falsetrue이면 엔티티의 인벤토리는 주인이나 엔티티 자신만 열 수 있다.

예시​

minecraft:is_baby​

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

엔티티를 새끼로 표시한다. Molang과 필터의 is_baby 값에 쓰인다.

Sets that this entity is a baby. This is used to set the is_baby value for use in query functions like Molang and Filters.

예시​

Chicken​
"minecraft:is_baby": {}

minecraft:is_charged​

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

엔티티를 충전 상태로 표시한다. Molang과 필터의 is_charged 값에 쓰인다.

Sets that this entity is charged. This is used to set the is_charged value for use in query functions like Molang and Filters.

예시​

minecraft:is_chested​

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

엔티티가 상자를 싣고 있다고 표시한다.

Sets that this entity is currently carrying a chest.

예시​

Llama​
"minecraft:is_chested": {}

minecraft:is_collidable​

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

다른 몹이 이 몹과 수직·수평으로 충돌할 수 있게 한다. 양쪽 모두 collision_box가 필요하다.

Allows other mobs to have vertical and horizontal collisions with this mob. For a collision to occur, both mobs must have a "minecraft:collision_box" component. This component can only be used on mobs and enables collisions exclusively between mobs. Please note that this type of collision is unreliable for moving collidable mobs. It is recommended to use this component only in scenarios where the collidable mob remains stationary. Collidable behavior is closely related to stackable behavior. While the "minecraft:is_collidable" component governs how other mobs interact with the component's owner, the "minecraft:is_stackable" component describes how an entity interacts with others of its own kind.

예시​

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