본문으로 건너뛰기

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

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

minecraft:area_attack​

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

범위 안에 들어온 엔티티에게 피해를 주는 컴포넌트다.

A component that does damage to entities that get within range.

Area Attack Properties​

이름기본값유형설명예시 값
causenot setString from a list of choices피해 범위에 들어온 엔티티에게 주는 피해의 종류.Magma Cube: "entity_attack"
damage_cooldown0Decimal number이 엔티티가 대상을 공격할 수 있는 간격의 쿨다운(초).Magma Cube: 0.5
damage_per_tick2Integer number피해 범위에 들어온 엔티티에게 틱마다 주는 피해량.Magma Cube: 6, 4, 3
damage_range0.2Decimal number피해를 적용하려면 적대적인 엔티티가 얼마나 가까이 있어야 하는지.Magma Cube: 0.15
death_message_overridenot setString범위 공격으로 엔티티가 죽을 때 사망 메시지로 쓸 번역 키. 비어 있으면 피해 원인의 기본 사망 메시지를 쓴다.
entity_filternot setMinecraft filter범위 안에 있을 때 피해를 줄 수 있는 유효한 엔티티 집합.Magma Cube: {"any_of":[{"subject":"other","test":"is_family","value":"player"},{"subject":"other","test":"is_family","value":"irongolem"}]}, Slime: {"any_of":[{"subject":"other","test":"is_family","value":"player"},{"subject":"other","test":"is_family","value":"irongolem"},{"subject":"other","test":"is_family","value":"snowgolem"}]}
play_attack_soundtrueBoolean true/false엔티티가 대상을 공격할 때 공격 소리를 재생할지 여부.
use_self_as_damage_sourcetrueBoolean true/false엔티티를 범위 피해의 가해자로 볼지 여부.

cause​

The type of damage that is applied to entities that enter the damage range. A list of available damage sources can be found at Entity Damage Sources located in the Vanilla Listings Documentation.

use_self_as_damage_source​

Whether the entity is treated as the source of the area damage. When true (default), other entities can retaliate against the attacking entity. Set to false to apply damage without making the attacker a valid retaliation target. This item requires a format version of at least 1.26.30.

예시​

Magma Cube​

At /minecraft:entity/component_groups/minecraft:slime_large/minecraft:area_attack/:

"minecraft:area_attack": {
"cause": "entity_attack",
"damage_cooldown": 0.5,
"damage_per_tick": 6,
"damage_range": 0.15,
"entity_filter": {
"any_of": [
{
"subject": "other",
"test": "is_family",
"value": "player"
},
{
"subject": "other",
"test": "is_family",
"value": "irongolem"
}
]
}
}

At /minecraft:entity/component_groups/minecraft:slime_medium/minecraft:area_attack/:

"minecraft:area_attack": {
"cause": "entity_attack",
"damage_cooldown": 0.5,
"damage_per_tick": 4,
"damage_range": 0.15,
"entity_filter": {
"any_of": [
{
"subject": "other",
"test": "is_family",
"value": "player"
},
{
"subject": "other",
"test": "is_family",
"value": "irongolem"
}
]
}
}

At /minecraft:entity/component_groups/minecraft:slime_small/minecraft:area_attack/:

"minecraft:area_attack": {
"cause": "entity_attack",
"damage_cooldown": 0.5,
"damage_per_tick": 3,
"damage_range": 0.15,
"entity_filter": {
"any_of": [
{
"subject": "other",
"test": "is_family",
"value": "player"
},
{
"subject": "other",
"test": "is_family",
"value": "irongolem"
}
]
}
}
Slime​

At /minecraft:entity/component_groups/minecraft:slime_large/minecraft:area_attack/:

"minecraft:area_attack": {
"cause": "entity_attack",
"damage_cooldown": 0.5,
"damage_per_tick": 4,
"damage_range": 0.15,
"entity_filter": {
"any_of": [
{
"subject": "other",
"test": "is_family",
"value": "player"
},
{
"subject": "other",
"test": "is_family",
"value": "irongolem"
},
{
"subject": "other",
"test": "is_family",
"value": "snowgolem"
}
]
}
}

At /minecraft:entity/component_groups/minecraft:slime_medium/minecraft:area_attack/:

"minecraft:area_attack": {
"cause": "entity_attack",
"damage_cooldown": 0.5,
"damage_per_tick": 2,
"damage_range": 0.15,
"entity_filter": {
"any_of": [
{
"subject": "other",
"test": "is_family",
"value": "player"
},
{
"subject": "other",
"test": "is_family",
"value": "irongolem"
},
{
"subject": "other",
"test": "is_family",
"value": "snowgolem"
}
]
}
}

minecraft:attack​

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

엔티티의 근접 공격 피해량과 적중 시 부여할 상태 효과를 정의한다.

Defines an entity's melee attack damage and any additional status effects applied on hit. Typical damage values range from 3 (zombie, creeper) to 7-21 (iron golem).

Entity Attack Properties​

이름기본값유형설명
damage{"max":0,"min":0}Range of floats근접 공격이 주는 무작위 피해량의 범위.
damage (Damage)not setDamage (Damage) item
effect_amplifier0Integer number피해를 입은 엔티티에게 적용되는 상태 이상의 증폭 수준(포션 단계).
effect_duration0Decimal number피해를 입은 엔티티에게 적용되는 상태 이상의 지속 시간(초).
effect_nameString이 엔티티의 근접 공격을 받은 엔티티에게 적용할 상태 이상의 식별자.

damage​

Range of the random amount of damage the melee attack deals. A negative value can heal the entity instead of hurting it. Can be a number, an array [min, max], or an object with range_min and range_max properties.

effect_amplifier​

Amplifier level (potion tier) of the status ailment applied to the damaged entity. Higher values increase the strength of the effect. Fixed in format version 1.26.30: effect_amplifier is now actually applied to the inflicted status effect, so amplifier-sensitive effects such as Hunger now scale correctly when triggered by a mob's melee attack. Prior versions silently ignored this value.

Damage (Damage)​

Damage Properties​

JSON path: damage

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

예시​

minecraft:attack_cooldown​

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

엔티티에 쿨다운을 추가한다. 새 공격 대상을 찾으려는 시도를 막는 데 쓴다.

Adds a cooldown to an entity. The intention of this cooldown is to be used to prevent the entity from attempting to acquire new attack targets.

Attack Cooldown Properties​

이름기본값유형설명
attack_cooldown_complete_eventnot setObject쿨다운이 끝났을 때 실행할 이벤트. event와 target 속성을 가진 객체 또는 단순한 이벤트 문자열을 쓸 수 있다.
attack_cooldown_complete_event (as String)not setString
attack_cooldown_timenot setRange of floats쿨다운 시간(초). 숫자 하나 또는 (최소, 최대) 숫자 쌍으로 지정할 수 있다.
attack_cooldown_time (as Decimal number)not setDecimal number

예시​

minecraft:attack_damage​

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

엔티티가 공격할 때 주는 피해량을 정한다.

Specifies how much damage is dealt by the entity when it attacks.

Attack Damage Properties​

이름기본값유형설명
valuenot setRange of integers공격이 대상에게 입힐 피해량.

minecraft:balloonable​

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

엔티티에 풍선을 달 수 있게 하고, 풍선이 달렸을 때의 조건과 이벤트를 정의한다.

Allows this entity to have a balloon attached and defines the conditions and events for this entity when is ballooned.

Balloonable Properties​

이름기본값유형설명
mass1Decimal number풍선 당김 힘을 계산할 때 이 엔티티가 가지는 질량.
max_distance10Decimal number풍선이 터지는 블록 거리.
on_balloonnot setMinecraft Event Trigger이 엔티티에 풍선이 달렸을 때 호출할 이벤트.
on_unballoonnot setMinecraft Event Trigger이 엔티티의 풍선이 풀렸을 때 호출할 이벤트.
soft_distance2Decimal number엔티티를 들어 올리는 '스프링' 효과가 작동하는 블록 거리.

minecraft:barter​

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

물물교환 결과로 아이템을 떨어뜨리게 한다.

Enables the component to drop an item as a barter exchange.

Entity Barter Properties​

이름기본값유형설명
barter_tableString from a list of choices무작위 아이템을 떨어뜨리는 데 쓰는 루트 테이블.
cooldown_after_being_attacked10Range of integers몹이 피해를 입었다면 아이템을 거래하지 않는 시간(초).

예시​

minecraft:block_climber​

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

플레이어가 비계 블록을 감지하고 그 위에서 움직일 수 있게 한다.

Allows the player to detect and manuever on the scaffolding block.

예시​

Endermite​
"minecraft:block_climber": {}

minecraft:block_movement_slowdown_immunity​

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

지정한 블록이 이 엔티티의 이동 감속에 영향을 주지 않게 한다.

Prevents specified blocks from contributing to this entity's block movement slowdown. It does not cause other blocks to apply slowdown.

Entity Block Movement Slowdown Immunity Properties​

이름기본값유형설명예시 값
blocks (Blocks)[]Array of Blocks items기존 이동 감속 영향을 무시할 블록 설명자 목록. 생략하거나 비어 있으면 아무것도 무시하지 않는다.Cave Spider: ["minecraft:web"]
blocks (as String)not setString
blocks (as Object)not setObject

Blocks​

Blocks Properties​

JSON path: blocks

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

예시​

Cave Spider​
"minecraft:block_movement_slowdown_immunity": {
"blocks": [
"minecraft:web"
]
}

minecraft:block_sensor​

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

감지 범위 안에서 목록의 블록이 부서지면 지정한 이벤트를 발생시킨다.

Fires off a specified event when a block in the block list is broken within the sensor range.

Block Sensor Properties​

이름기본값유형설명
on_breaknot setArray of Break items부서지는지 감시할 블록 목록. 블록이 여러 목록에 있으면 이벤트가 여러 번 발생한다.
sensor_radius16Decimal number지정한 블록을 감지할 수 있는 최대 반경 거리. 가장 큰 반경은 32.0이다.
sourcesnot setMinecraft filter감시할 블록을 부수는 원인 목록. 지정하지 않으면 모든 블록 파괴를 감지한다.

Break​

Block Break Entry Properties​

JSON path: on_break

이름기본값유형설명
block_listnot setArray of stringson_block_broken 이벤트를 일으키는 블록 목록.
on_block_brokennot setStringblock_list의 블록이 부서질 때 호출할 이벤트.

예시​

minecraft:body_rotation_always_follows_head​

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

몸 회전이 항상 머리 회전과 일치하게 한다.

Causes the entity's body rotation to match the one of their head. Does not override the "minecraft:body_rotation_blocked" component.

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

예시​

minecraft:body_rotation_axis_aligned​

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

몸이 현재 방향에서 가장 가까운 기준 방향(동서남북)에 맞게 자동으로 회전하게 한다.

Causes the entity's body to automatically rotate to align with the nearest cardinal direction based on its current facing direction. Combining this with the "minecraft:body_rotation_blocked" component will cause the entity to align to the nearest cardinal direction and remain fixed in that orientation, regardless of future changes in its facing direction.

예시​

Happy Ghast​
"minecraft:body_rotation_axis_aligned": {}

minecraft:body_rotation_blocked​

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

엔티티가 바라보는 방향에 맞춰 몸을 시각적으로 돌리지 않게 한다.

When set, the entity will no longer visually rotate their body to match their facing direction.

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

예시​

minecraft:body_rotation_locked_to_vehicle​

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

몸 회전을 탈것이 향한 방향에 맞춘다. 1.21.130에서 rotation_locked_to_vehicle로 이름이 바뀌었다.

Causes the entity's body rotation to match their vehicle's facing direction.

[!Note] In 1.21.130 this component was renamed to minecraft:rotation_locked_to_vehicle, which now locks both body and overall entity rotation to the vehicle. Existing usages should migrate to the new identifier.

예시​

Drowned​
"minecraft:body_rotation_locked_to_vehicle": {}

minecraft:boostable​

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

탑승 가능한 엔티티의 가속(부스트) 조건과 동작을 정의한다.

Defines the conditions and behavior of a rideable entity's boost.

Boostable Properties​

이름기본값유형설명예시 값
boost_itemsnot setArray of Boost Items items이 엔티티를 탄 채로 부스트에 쓸 수 있는 아이템 목록.Pig: [{"item":"carrotOnAStick","damage":2,"replace_item":"fishing_rod"}], Strider: [{"item":"warped_fungus_on_a_stick","damage":1,"replace_item":"fishing_rod"}]
duration3Decimal number부스트 지속 시간(초).Pig: 3, Strider: 16
speed_multiplier1Decimal number엔티티의 평소 속도에 곱해지는 배수. 예를 들어 2.0이면 두 배 빠르다.Pig: 1.35

Boost Items​

Boost Items Properties​

JSON path: boost_items

이름기본값유형설명
damagenot setInteger number아이템을 한 번 쓸 때마다 입는 피해량.
itemnot setString부스트에 쓸 수 있는 아이템의 이름.
replace_itemnot setString부스트에 쓴 아이템이 다 소모되면 이 아이템이 된다.

예시​

Pig​
"minecraft:boostable": {
"speed_multiplier": 1.35,
"duration": 3,
"boost_items": [
{
"item": "carrotOnAStick",
"damage": 2,
"replace_item": "fishing_rod"
}
]
}
Strider​
"minecraft:boostable": {
"speed_multiplier": 1.35,
"duration": 16,
"boost_items": [
{
"item": "warped_fungus_on_a_stick",
"damage": 1,
"replace_item": "fishing_rod"
}
]
}

minecraft:boss​

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

보스 HUD를 갱신하기 위한 보스의 현재 상태를 정의한다.

Defines the current state of the boss for updating the boss HUD.

Entity Boss Properties​

이름기본값유형설명
hud_range55Integer number보스의 체력 바가 플레이어 화면에 표시되는, 보스로부터의 최대 거리.
name55String보스 체력 바 위에 표시할 이름.
should_darken_skyfalseBoolean true/false보스가 있을 때 하늘을 어둡게 할지 여부.

예시​

minecraft:break_blocks​

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

엔티티가 이동하며 부술 수 있는 블록을 지정한다.

Specifies the blocks that the entity can break as it moves around.

Break Blocks Properties​

이름기본값유형설명
breakable_blocksnot setArray of strings이 엔티티가 이동하면서 부술 수 있는 블록 목록.

예시​

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