본문으로 건너뛰기

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

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

minecraft:annotation.break_door​

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

엔티티가 문을 부술 수 있게 한다. 내비게이션의 can_break_doors가 true여야 한다.

Allows an entity to break doors, assuming that that flags set up for the component to use in navigation.

[!Note] Requires the entity's navigation component to have the parameter can_break_doors set to true.

Break doors annotation Properties​

이름기본값유형설명
break_time12Integer number문을 부수는 데 필요한 시간(초).
min_difficultyhardMin Difficulty choices이 엔티티가 문을 부수려면 월드가 가져야 하는 최소 난이도.

Min Difficulty choices​

값제목설명
easyEasy
hardHard
normalNormal
peacefulPeaceful

예시​

Drowned​
"minecraft:annotation.break_door": {}

minecraft:annotation.open_door​

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

엔티티가 문을 열 수 있게 한다. 내비게이션의 can_open_doors가 true여야 한다.

Allows the entity to open doors.

[!Note] Requires the entity's navigation component to have the parameter can_open_doors set to true.

예시​

minecraft:apply_knockback_rules​

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

엔티티가 넉백을 가하는 방식을 정의한다.

Defines how an entity applies knockback.

[!Note] Released out of beta in format version 1.26.30. The preset field extra_knockback_approach controls how knockback from enchantments, sprinting, and swimming combines with the preset's power (reapply_default preserves the prior behavior; multiply multiplies the preset's power by the extra-knockback factor).

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

Entity Apply Knockback Rules Properties​

이름기본값유형설명예시 값
presets[]Array of Presets items엔티티에 넉백을 적용하는 방식을 정의하는 규칙 인스턴스의 배열.Drowned: [{"horizontal_power":0.6,"vertical_power":-0.6,"vertical_velocity_cap":-0.4,"check_if_target_is_immersed_in_water":true}], Egg: [{"vertical_power":0.1,"vertical_velocity_cap":0.1}], Iron Golem: [{"horizontal_power":0.52,"vertical_power":0.39,"vertical_velocity_cap":0.8}]

Entity Apply Knockback Rules Instance​

Intance of rules definition.

Entity Apply Knockback Rules Instance Properties​

JSON path: presets

이름기본값유형설명
check_if_target_is_immersed_in_waterfalseBoolean true/false넉백 규칙이 적용되려면 대상이 완전히 물에 잠겨 있어야 하는지 여부.
extra_knockback_approachreapply_defaultExtra Knockback Approach choices인챈트나 달리기로 인한 추가 넉백을 합치는 방식을 정의한다. "reapply_default"는 기본 넉백 매개변수로 넉백을 다시 적용한다.
filter (Filter){"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null}Filter item이 넉백 규칙의 영향을 받을 엔티티 종류에 대한 필터.
filter (Alternate 1)not setObject
horizontal_power1Decimal number대상을 뒤로 날려 보내는 힘.
knockback_moderelative_horizontalKnockback Mode choices대상에게 넉백을 적용하는 방식을 정의한다. "relative_horizontal"은 공격자에서 대상으로 향하는 수평 방향으로 넉백을 적용한다.
scale_with_damagefalseBoolean true/false피해량의 제곱에 반비례하여 넉백 크기에 적용하는 배율.
slowdown_scale0.5Decimal number넉백을 적용하기 전에 대상의 속도에 곱하는 배율. 값은 1 이하여야 한다.
vertical_power0.4000000059604645Decimal number대상을 위로 날려 보내는 힘.
vertical_velocity_cap0.4000000059604645Decimal number대상의 넉백 규칙을 평가한 뒤 허용되는 최대 Y 속도.
extra_knockback_approach​

Defines the approach for combining extra knockback from enchantments or sprinting: - "reapply_default": Reapplies knockback again with default knockback parameters, i.e. values not defined by this component. - "multiply_reduced": Multiplies the extra knockback with the base knockback and a reduction factor, and adds it to the base knockback.

knockback_mode​

Defines how knockback is applied to the target: - "relative_horizontal": Applies knockback along the horizontal direction from the attacker to the target. - "hit_direction": Applies knockback based on the hit direction and the point of impact (e.g. hits to the bottom of the entity or from below push it upward, hits on the left side of the entity push it to the right).

Extra Knockback Approach choices​

값제목설명
multiply_reducedMultiply reduced
reapply_defaultReapply default
Filter​
Filter Properties​

JSON path: presets > filter

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

Knockback Mode choices​

값제목설명
hit_directionHit direction
relative_horizontalRelative horizontal

예시​

Drowned​
"minecraft:apply_knockback_rules": {
"presets": [
{
"horizontal_power": 0.6,
"vertical_power": -0.6,
"vertical_velocity_cap": -0.4,
"check_if_target_is_immersed_in_water": true
}
]
}
Egg​
"minecraft:apply_knockback_rules": {
"presets": [
{
"vertical_power": 0.1,
"vertical_velocity_cap": 0.1
}
]
}
Iron Golem​
"minecraft:apply_knockback_rules": {
"presets": [
{
"horizontal_power": 0.52,
"vertical_power": 0.39,
"vertical_velocity_cap": 0.8
}
]
}
Player​
"minecraft:apply_knockback_rules": {
"presets": [
{
"filter": {
"test": "enum_property",
"subject": "other",
"domain": "minecraft:sulfur_cube_archetype",
"value": "bouncy"
},
"horizontal_power": 0.165,
"vertical_power": 0.105,
"vertical_velocity_cap": 8,
"slowdown_scale": 1,
"scale_with_damage": true,
"knockback_mode": "hit_direction",
"extra_knockback_approach": "multiply_reduced"
},
{
"filter": {
"test": "enum_property",
"subject": "other",
"domain": "minecraft:sulfur_cube_archetype",
"value": "regular"
},
"horizontal_power": 0.165,
"vertical_power": 0.105,
"vertical_velocity_cap": 8,
"slowdown_scale": 1,
"scale_with_damage": true,
"knockback_mode": "hit_direction",
"extra_knockback_approach": "multiply_reduced"
},
{
"filter": {
"test": "enum_property",
"subject": "other",
"domain": "minecraft:sulfur_cube_archetype",
"value": "slow_bouncy"
},
"horizontal_power": 0.165,
"vertical_power": 0.24,
"vertical_velocity_cap": 8,
"slowdown_scale": 1,
"scale_with_damage": true,
"knockback_mode": "hit_direction",
"extra_knockback_approach": "multiply_reduced"
},
{
"filter": {
"test": "enum_property",
"subject": "other",
"domain": "minecraft:sulfur_cube_archetype",
"value": "slow_flat"
},
"horizontal_power": 0.165,
"vertical_power": 0.105,
"vertical_velocity_cap": 8,
"slowdown_scale": 1,
"scale_with_damage": true,
"knockback_mode": "hit_direction",
"extra_knockback_approach": "multiply_reduced"
},
{
"filter": {
"test": "enum_property",
"subject": "other",
"domain": "minecraft:sulfur_cube_archetype",
"value": "fast_flat"
},
"horizontal_power": 0.365,
"vertical_power": 0.09,
"vertical_velocity_cap": 8,
"slowdown_scale": 1,
"scale_with_damage": true,
"knockback_mode": "hit_direction",
"extra_knockback_approach": "multiply_reduced"
},
{
"filter": {
"test": "enum_property",
"subject": "other",
"domain": "minecraft:sulfur_cube_archetype",
"value": "light"
},
"horizontal_power": 0.165,
"vertical_power": 0.18,
"vertical_velocity_cap": 8,
"slowdown_scale": 1,
"scale_with_damage": true,
"knockback_mode": "hit_direction",
"extra_knockback_approach": "multiply_reduced"
},
{
"filter": {
"test": "enum_property",
"subject": "other",
"domain": "minecraft:sulfur_cube_archetype",
"value": "fast_sliding"
},
"horizontal_power": 0.265,
"vertical_power": 0.09,
"vertical_velocity_cap": 8,
"slowdown_scale": 1,
"scale_with_damage": true,
"knockback_mode": "hit_direction",
"extra_knockback_approach": "multiply_reduced"
},
{
"filter": {
"test": "enum_property",
"subject": "other",
"domain": "minecraft:sulfur_cube_archetype",
"value": "slow_sliding"
},
"horizontal_power": 0.165,
"vertical_power": 0.09,
"vertical_velocity_cap": 8,
"slowdown_scale": 1,
"scale_with_damage": true,
"knockback_mode": "hit_direction",
"extra_knockback_approach": "multiply_reduced"
},
{
"filter": {
"test": "enum_property",
"subject": "other",
"domain": "minecraft:sulfur_cube_archetype",
"value": "sticky"
},
"horizontal_power": 0.165,
"vertical_power": 0.09,
"vertical_velocity_cap": 8,
"slowdown_scale": 1,
"scale_with_damage": true,
"knockback_mode": "hit_direction",
"extra_knockback_approach": "multiply_reduced"
},
{
"filter": {
"test": "enum_property",
"subject": "other",
"domain": "minecraft:sulfur_cube_archetype",
"value": "high_resistance"
},
"horizontal_power": 0.165,
"vertical_power": 0.09,
"vertical_velocity_cap": 8,
"slowdown_scale": 1,
"scale_with_damage": true,
"knockback_mode": "hit_direction",
"extra_knockback_approach": "multiply_reduced"
},
{
"filter": {
"test": "enum_property",
"subject": "other",
"domain": "minecraft:sulfur_cube_archetype",
"value": "explosive"
},
"horizontal_power": 0.165,
"vertical_power": 0.09,
"vertical_velocity_cap": 8,
"slowdown_scale": 1,
"scale_with_damage": true,
"knockback_mode": "hit_direction",
"extra_knockback_approach": "multiply_reduced"
},
{
"filter": {
"test": "enum_property",
"subject": "other",
"domain": "minecraft:sulfur_cube_archetype",
"value": "hot"
},
"horizontal_power": 0.165,
"vertical_power": 0.105,
"vertical_velocity_cap": 8,
"slowdown_scale": 1,
"scale_with_damage": true,
"knockback_mode": "hit_direction",
"extra_knockback_approach": "multiply_reduced"
},
{
"filter": {
"test": "enum_property",
"subject": "other",
"domain": "minecraft:sulfur_cube_archetype",
"value": "cold"
},
"horizontal_power": 0.265,
"vertical_power": 0.09,
"vertical_velocity_cap": 8,
"slowdown_scale": 1,
"scale_with_damage": true,
"knockback_mode": "hit_direction",
"extra_knockback_approach": "multiply_reduced"
}
]
}

minecraft:apply_knockback_rules_instance​

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

넉백 규칙 정의의 인스턴스다.

Intance of rules definition.

Entity Apply Knockback Rules Instance Properties​

이름기본값유형설명
check_if_target_is_immersed_in_waterfalseBoolean true/false넉백 규칙이 적용되려면 대상이 완전히 물에 잠겨 있어야 하는지 여부.
extra_knockback_approachreapply_defaultExtra Knockback Approach choices인챈트나 달리기로 인한 추가 넉백을 합치는 방식을 정의한다. "reapply_default"는 기본 넉백 매개변수로 넉백을 다시 적용한다.
filter (Filter){"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null}Filter item이 넉백 규칙의 영향을 받을 엔티티 종류에 대한 필터.
filter (Alternate 1)not setObject
horizontal_power1Decimal number대상을 뒤로 날려 보내는 힘.
knockback_moderelative_horizontalKnockback Mode choices대상에게 넉백을 적용하는 방식을 정의한다. "relative_horizontal"은 공격자에서 대상으로 향하는 수평 방향으로 넉백을 적용한다.
scale_with_damagefalseBoolean true/false피해량의 제곱에 반비례하여 넉백 크기에 적용하는 배율.
slowdown_scale0.5Decimal number넉백을 적용하기 전에 대상의 속도에 곱하는 배율. 값은 1 이하여야 한다.
vertical_power0.4000000059604645Decimal number대상을 위로 날려 보내는 힘.
vertical_velocity_cap0.4000000059604645Decimal number대상의 넉백 규칙을 평가한 뒤 허용되는 최대 Y 속도.

extra_knockback_approach​

Defines the approach for combining extra knockback from enchantments or sprinting: - "reapply_default": Reapplies knockback again with default knockback parameters, i.e. values not defined by this component. - "multiply_reduced": Multiplies the extra knockback with the base knockback and a reduction factor, and adds it to the base knockback.

knockback_mode​

Defines how knockback is applied to the target: - "relative_horizontal": Applies knockback along the horizontal direction from the attacker to the target. - "hit_direction": Applies knockback based on the hit direction and the point of impact (e.g. hits to the bottom of the entity or from below push it upward, hits on the left side of the entity push it to the right).

Extra Knockback Approach choices​

값제목설명
multiply_reducedMultiply reduced
reapply_defaultReapply default

Filter​

Filter Properties​

JSON path: filter

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

Knockback Mode choices​

값제목설명
hit_directionHit direction
relative_horizontalRelative horizontal
출처
id출처라이선스커밋접근일
ms-learnMinecraft Creator 문서 (Microsoft Learn)CC BY 4.0 (문서), MIT (코드)a9fd1c02026-11-13