본문으로 건너뛰기

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

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

minecraft:pushable​

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

엔티티를 다른 엔티티와 피스톤 사이에서 밀 수 있는 대상을 정의한다. 1.26.10에서 둘로 나뉘었다.

Defines what can push an entity between other entities and pistons.

[!Note] In 1.26.10 this component was split into minecraft:pushable_by_block (pistons and Shulker Boxes, equivalent to is_pushable_by_piston: true) and minecraft:pushable_by_entity (other entities, equivalent to is_pushable: true). The original minecraft:pushable component is no longer parsed.

[!Note] This item no longer works after format versions of at least 1.26.10.

Pushable Properties​

이름기본값유형설명예시 값
is_pushabletrueBoolean true/false엔티티가 다른 엔티티에게 밀릴 수 있는지 여부.Allay: true
is_pushable_by_pistontrueBoolean true/false엔티티가 피스톤에 안전하게 밀릴 수 있는지 여부.Allay: true

예시​

Allay​
"minecraft:pushable": {
"is_pushable": true,
"is_pushable_by_piston": true
}
Armor Stand​
"minecraft:pushable": {
"is_pushable": false,
"is_pushable_by_piston": true
}

minecraft:pushable_by_block​

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

셜커 상자나 피스톤 같은 블록이 엔티티를 밀 수 있게 한다.

Allows the entity to be pushed by certain blocks, like Shulker Boxes and Pistons.

[!Note] Added in 1.26.10 as part of the split of minecraft:pushable into minecraft:pushable_by_block (pistons and Shulker Boxes) and minecraft:pushable_by_entity (other entities). The legacy minecraft:pushable component is no longer parsed.

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

예시​

Armor Stand​
"minecraft:pushable_by_block": {}

minecraft:pushable_by_entity​

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

다른 엔티티가 이 엔티티를 밀 수 있게 한다.

Allows an entity to be pushed by other entities.

[!Note] Added in 1.26.10 as part of the split of minecraft:pushable into minecraft:pushable_by_block (pistons and Shulker Boxes) and minecraft:pushable_by_entity (other entities). The legacy minecraft:pushable component is no longer parsed.

[!Note] Released out of beta in format version 1.26.30. The presets field replaces the previous flat property layout; the preset field max_distance was renamed from kick_distance_threshold.

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

Entity Pushable By Entity Properties​

이름기본값유형설명예시 값
presets[]Array of Presets items다른 엔티티에게 밀렸을 때 이 엔티티의 동작을 정의한다. "filter" 조건을 만족하는 첫 프리셋이 적용되며, 맞는 것이 없으면 기본 설정이 쓰인다.Boat: [{"filters":{"all_of":[{"test":"is_family","subject":"other","value":"sulfur_cube"},{"test":"enum_property","subject":"other","domain":"minecraft:sulfur_cube_archetype","operator":"not","value":"none"},{"test":"is_controlling_passenger_family","subject":"self","value":"player"}]},"push_mode":"none"},{"push_mode":"legacy_boat","strength_multiplier":0.1,"min_distance":0.55,"push_scale_self":0.5,"push_scale_other":0.25}]

Entity PushableByEntityPreset​

Entity PushableByEntityPreset Properties​

JSON path: presets

이름기본값유형설명
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
kick_speed_scale2Decimal number발길질 힘을 정하기 위해 미는 엔티티의 이동 속도에 곱하는 배수. push_mode가 "ball"일 때만 쓴다.
max_distance3.4028234663852886e+38Decimal number미는 힘이 적용되려면 밀리는 엔티티의 중심과 미는 엔티티의 충돌 사이 최대 수평 거리. 이보다 멀리 떨어진 엔티티는 서로 밀지 않는다.
max_kick_speed0.5Decimal number미는 엔티티가 아무리 빠르게 움직여도 엔티티가 뒤로 밀리는 최대 속도. push_mode가 "ball"일 때만 쓴다.
min_distance0.009999999776482582Decimal number미는 힘이 적용되려면 두 엔티티 중심 사이의 최소 수평 거리. 이보다 가까운 엔티티는 서로 밀지 않는다.
min_kick_speed0Decimal number미는 엔티티가 아무리 느리게 움직여도 엔티티가 뒤로 밀리는 최소 속도. push_mode가 "ball"일 때만 쓴다.
play_soundfalseBoolean true/false(소리 이름과 달리) 다른 어떤 엔티티에게 밀려도 "pushed_by_player" 소리를 재생할지 여부.
play_sound_cooldown_in_seconds0.20000000298023224Decimal number소리 사이의 쿨다운(초). 값이 작을수록 소리가 더 자주 난다.
play_sound_impulse_threshold0.20000000298023224Decimal number밀림 소리를 내는 데 필요한 최소 속도 변화. 값이 작을수록 더 민감하다.
push_modedefaultPush Mode choices엔티티에 적용되는 미는 벡터 계산의 종류를 정의한다. "none"은 엔티티를 밀 수 없다는 뜻이다.
push_scale_other1Decimal number충돌할 때 이 엔티티가 상대 엔티티에게 가하는 미는 힘의 비율. 1.0은 전체 힘, 0.5는 절반이다.
push_scale_self1Decimal number다른 엔티티와 충돌할 때 이 엔티티가 스스로 밀려나는 힘의 비율. 1.0은 전체 힘, 0.5는 절반이다.
require_collision_overlaptrueBoolean true/falsetrue이면 충돌 상자가 겹치지 않는 한 엔티티들이 서로 밀지 않는다.
strength_multiplier0.05000000074505806Decimal number미는 세기에 곱하는 배수. 값이 클수록 더 세게 민다.
vertical_kick_multiplier0.30000001192092896Decimal number지면에 있는 엔티티가 밀릴 때 가해지는 위쪽 힘에 곱하는 배수. 0이면 엔티티가 납작하게 유지된다. push_mode가 "ball"일 때만 쓴다.
push_mode​

Defines the type of push vector calculation applied to the entity: - "none": The entity cannot be pushed. - "default": Standard push calculations used by most entities. - "legacy_boat": Legacy push calculations historically used by boats. Includes dampened forces and sneak-based cancellation. - "legacy_minecart": Legacy push calculations historically used by minecarts. Includes alignment-based collision handling and velocity averaging.- "ball": Push calculation resulting in a behavior similar to kicking a ball. The entity is propelled in the direction of the pusher’s movement, with force scaled by their speed.

Filters​
Filters Properties​

JSON path: presets > filters

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

Push Mode choices​

값제목설명
ballBall
defaultDefault
legacy_boatLegacy boat
legacy_minecartLegacy minecart
noneNone

예시​

Blaze​
"minecraft:pushable_by_entity": {}
Boat​
"minecraft:pushable_by_entity": {
"presets": [
{
"filters": {
"all_of": [
{
"test": "is_family",
"subject": "other",
"value": "sulfur_cube"
},
{
"test": "enum_property",
"subject": "other",
"domain": "minecraft:sulfur_cube_archetype",
"operator": "not",
"value": "none"
},
{
"test": "is_controlling_passenger_family",
"subject": "self",
"value": "player"
}
]
},
"push_mode": "none"
},
{
"push_mode": "legacy_boat",
"strength_multiplier": 0.1,
"min_distance": 0.55,
"push_scale_self": 0.5,
"push_scale_other": 0.25
}
]
}

minecraft:raid_trigger​

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

엔티티의 위치에서 습격 발생을 시도한다.

Attempts to trigger a raid at the entity's location.

Raid Trigger Properties​

이름기본값유형설명예시 값
minecraft:raid_triggernot setRaid Trigger itemPlayer: {"triggered_event":{"event":"minecraft:remove_raid_trigger","target":"self"}}
triggered_eventnot setMinecraft Event Trigger마을에서 습격이 시작되었을 때 실행할 이벤트.

Raid Trigger​

예시​

Player​
"minecraft:raid_trigger": {
"minecraft:raid_trigger": {
"triggered_event": {
"event": "minecraft:remove_raid_trigger",
"target": "self"
}
}
}

minecraft:rail_movement​

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

엔티티의 레일 위 이동을 정의한다. 이 컴포넌트가 있으면 레일 위로만 움직인다.

Defines the entity's movement on the rails. An entity with this component is only allowed to move on the rail.

Entity Rail Movement Properties​

이름기본값유형설명
max_speed0.4000000059604645Decimal number엔티티가 레일 위에서 움직일 수 있는 최대 속도.

예시​

Chest Minecart​
"minecraft:rail_movement": {}

minecraft:rail_sensor​

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

광부 수레류 엔티티가 파워 레일을 감지하고 활성 상태 변화에 반응하게 한다.

Enables minecart-type entities to detect powered rails and respond to activation state changes. Triggers events when the entity passes over activated or deactivated rails, enabling custom minecart behaviors like launching at boosted speed, stopping at braking rails, or triggering special effects at detector rails.

Rail Sensor Properties​

이름기본값유형설명예시 값
check_block_typesfalseBoolean true/falsetrue이면 틱마다 이 엔티티가 on_deactivate 동작을 실행한다.Command Block Minecart: true
eject_on_activatetrueBoolean true/falsetrue이면 활성화된 레일을 지날 때 이 엔티티가 모든 탑승자를 내보낸다.Minecart: true
eject_on_deactivatefalseBoolean true/falsetrue이면 비활성화된 레일을 지날 때 이 엔티티가 모든 탑승자를 내보낸다.
on_activatenot setMinecraft Event Trigger레일이 활성화되었을 때 호출할 이벤트.Command Block Minecart: {"event":"minecraft:command_block_activate"}, Hopper Minecart: {"event":"minecraft:hopper_deactivate"}, Tnt Minecart: {"event":"minecraft:on_prime","filters":{"all_of":[{"domain":"tntexplodes","operator":"==","test":"is_game_rule","value":true}]}}
on_deactivatenot setMinecraft Event Trigger레일이 비활성화되었을 때 호출할 이벤트.Command Block Minecart: {"event":"minecraft:command_block_deactivate"}, Hopper Minecart: {"event":"minecraft:hopper_activate"}
tick_command_block_on_activatetrueBoolean true/falsetrue이면 활성화된 레일을 지날 때 명령 블록이 틱을 시작한다.Command Block Minecart: true
tick_command_block_on_deactivatefalseBoolean true/falsefalse이면 비활성화된 레일을 지날 때 명령 블록이 틱을 멈춘다.

예시​

Command Block Minecart​

At /minecraft:entity/component_groups/minecraft:command_block_active/minecraft:rail_sensor/:

"minecraft:rail_sensor": {
"check_block_types": true,
"on_deactivate": {
"event": "minecraft:command_block_deactivate"
},
"eject_on_activate": false,
"eject_on_deactivate": false,
"tick_command_block_on_activate": true,
"tick_command_block_on_deactivate": false
}

At /minecraft:entity/component_groups/minecraft:command_block_inactive/minecraft:rail_sensor/:

"minecraft:rail_sensor": {
"check_block_types": false,
"eject_on_activate": false,
"eject_on_deactivate": false,
"on_activate": {
"event": "minecraft:command_block_activate"
},
"tick_command_block_on_activate": true,
"tick_command_block_on_deactivate": false
}
Hopper Minecart​

At /minecraft:entity/component_groups/minecraft:hopper_active/minecraft:rail_sensor/:

"minecraft:rail_sensor": {
"on_activate": {
"event": "minecraft:hopper_deactivate"
}
}

At /minecraft:entity/component_groups/minecraft:hopper_inactive/minecraft:rail_sensor/:

"minecraft:rail_sensor": {
"on_deactivate": {
"event": "minecraft:hopper_activate"
}
}
Minecart​
"minecraft:rail_sensor": {
"eject_on_activate": true
}
Tnt Minecart​

At /minecraft:entity/component_groups/minecraft:inactive/minecraft:rail_sensor/:

"minecraft:rail_sensor": {
"on_activate": {
"event": "minecraft:on_prime",
"filters": {
"all_of": [
{
"domain": "tntexplodes",
"operator": "==",
"test": "is_game_rule",
"value": true
}
]
}
}
}

At /minecraft:entity/component_groups/minecraft:instant_explode_tnt/minecraft:rail_sensor/:

"minecraft:rail_sensor": {}

minecraft:ravager_blocked​

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

파괴수의 근접 공격이 막혔을 때의 반응을 정의한다.

Defines the ravager's response to their melee attack being blocked.

Ravager Blocked Properties​

이름기본값유형설명
knockback_strength3Decimal number막는 엔티티가 넉백되는 세기.
reaction_choices[ ]Array of strings근접 공격이 막혔을 때 가중치가 있는 반응 목록.

예시​

minecraft:reflect_projectiles​

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

[실험적] 엔티티가 투사체를 반사하게 한다.

[EXPERIMENTAL] Allows an entity to reflect projectiles.

Reflect Projectiles Properties​

이름기본값유형설명예시 값
azimuth_angle0String[실험적] 투사체의 y축 회전에 더할 각도(도)를 정의하는 Molang 식.Breeze: "180.0 + Math.random(-20.0, 20.0)"
elevation_angle0String[실험적] 투사체의 x축 회전에 더할 각도(도)를 정의하는 Molang 식.
reflected_projectilesnot setArray of strings[실험적] 엔티티에 맞았을 때 반사되는 투사체 종류를 정의하는 문자열 배열.Breeze: ["xp_bottle","thrown_trident","shulker_bullet","dragon_fireball","arrow","snowball","egg","fireball","splash_potion","ender_pearl","wither_skull","wither_skull_dangerous","small_fireball","lingering_potion","llama_spit","fireworks_rocket","fishing_hook"]
reflection_scale1String[실험적] 반사된 투사체의 속도 배율을 정의하는 Molang 식. 1보다 작으면 속도가 줄고 1보다 크면 늘어난다.Breeze: "0.5"
reflection_soundreflectString[실험적] 투사체가 반사될 때 재생할 소리 이벤트의 이름을 정의하는 문자열. 지정하지 않으면 "reflect"다.

예시​

Breeze​
"minecraft:reflect_projectiles": {
"azimuth_angle": "180.0 + Math.random(-20.0, 20.0)",
"reflected_projectiles": [
"xp_bottle",
"thrown_trident",
"shulker_bullet",
"dragon_fireball",
"arrow",
"snowball",
"egg",
"fireball",
"splash_potion",
"ender_pearl",
"wither_skull",
"wither_skull_dangerous",
"small_fireball",
"lingering_potion",
"llama_spit",
"fireworks_rocket",
"fishing_hook"
],
"reflection_scale": "0.5"
}

minecraft:remove_in_peaceful​

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

평화로움 난이도에서 존재할 수 없는 엔티티임을 나타낸다.

Denotes entities that are not allowed to exist in "Peaceful" difficulty.

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

예시​

Blaze​
"minecraft:remove_in_peaceful": {}

minecraft:renders_when_invisible​

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

투명해도 엔티티를 렌더링하게 한다. 구체적 렌더링은 client_entity에서 정한다.

When set, the entity will render even when invisible. Appropriate rendering behavior can then be specified in the corresponding "minecraft:client_entity".

예시​

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