본문으로 건너뛰기

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

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

minecraft:tick_world​

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

엔티티가 월드를 틱할지와 틱할 반경을 정의한다.

Defines if the entity ticks the world and the radius around it to tick.

Entity Tick World Properties​

이름기본값유형설명
distance_to_players128Decimal number이 엔티티가 디스폰되기 위해 가장 가까운 플레이어가 있어야 하는 거리. never_despawn이 true이면 무시된다. 값은 128 이상이어야 한다.
never_despawntrueBoolean true/falsetrue이면 플레이어가 멀리 있어도 엔티티가 디스폰되지 않는다. false이면 distance_to_players로 디스폰 시점을 정한다.
radius2Integer number엔티티 주변에서 틱할 영역. 값은 2 이상 6 이하여야 한다.

minecraft:timer​

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

시간이 지나면 이벤트를 발생시키는 타이머를 추가한다.

Adds a timer after which an event will fire.

Entity Timer Properties​

이름기본값유형설명
loopingtrueBoolean true/falsetrue이면 타이머가 작동할 때마다 다시 시작한다.
random_time_choices[]Array of Random Time Choices items이벤트를 발생시키기 전에 고를 수 있는 시간(초) 값과 선택적 가중치를 나타내는 객체 목록. time과 함께 쓸 수 없다.
randomIntervaltrueBoolean true/falsetrue이면 타이머의 시간이 time에 지정한 최소·최대 값 사이에서 무작위로 정해진다.
time (Legacy FloatRange)not setTime item타이머 시간(초). 숫자 하나 또는 (최소, 최대) 숫자 쌍으로 지정할 수 있다. random_time_choices와 함께 쓸 수 없다.
time (as Decimal number)not setDecimal number
time_down_event (Entity ActorDefinitionTrigger){"event":"","filters":{"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null},"target":"self"}Time Down Event item타이머 시간이 다 되었을 때 발생시킬 이벤트. event와 target 속성을 가진 객체 또는 단순한 이벤트 문자열을 쓸 수 있다.
time_down_event (as String)not setString

Entity TimerWeightChoiceEntry​

Entity TimerWeightChoiceEntry Properties​

JSON path: random_time_choices

이름기본값유형설명
value0Decimal number
weight0Integer number

Legacy FloatRange​

Legacy FloatRange Properties​

JSON path: time

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

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: time_down_event

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

예시​

minecraft:trade_resupply​

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

엔티티의 거래를 재보충한다.

Resupplies an entity's trade.

minecraft:trade_table​

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

엔티티가 플레이어와 거래하는 능력을 정의한다.

Defines this entity's ability to trade with players.

Entity Trade Table Properties​

이름기본값유형설명
convert_trades_economyfalseBoolean true/false몹이 변환될 때, 새 몹에 economy_trade_table이 있으면 거래를 변환할지 정한다.
display_nameString이 엔티티와 거래하는 동안 표시할 이름.
new_screenfalseBoolean true/false이 엔티티와 거래할 때 새 거래 화면을 여는지 판단하는 데 쓴다.
persist_tradesfalseBoolean true/false몹이 변환될 때 거래를 유지할지 정한다.
tableString이 엔티티의 거래를 담은 파일의 비헤이비어 팩 루트 기준 경로.

convert_trades_economy​

Determines when the mob transforms, if the trades should be converted when the new mob has a economy_trade_table. When the trades are converted, the mob will generate a new trade list with their new trade table, but then it will try to convert any of the same trades over to have the same enchantments and user data. For example, if the original has a Emerald to Enchanted Iron Sword (Sharpness 1), and the new trade also has an Emerald for Enchanted Iron Sword, then the enchantment will be Sharpness 1.

persist_trades​

Determines if the trades should persist when the mob transforms. This makes it so that the next time the mob is transformed to something with a trade_table or economy_trade_table, then it keeps their trades.

예시​

minecraft:trail​

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

엔티티가 이동하면서 블록 흔적을 남기게 한다. 몹 그리핑 규칙을 따른다.

Causes an entity to leave a trail of blocks as it moves about the world. Obeys Mob Griefing rules.

Entity Trail Properties​

이름기본값유형설명
block_typeairString배치되는 블록의 종류. offset이 [0, 0, 0]이면 엔티티 위치에 고체 블록은 배치할 수 없다.
extent0Integer number블록을 배치할 수 있는 중심으로부터의 최대 수평 거리. 값은 16 이하여야 한다.
offset[0, 0, 0]Array of numbers흔적 블록을 배치하고 배치 검사를 적용할 위치를 정하는 엔티티 위치로부터의 오프셋. 최대 16블록까지 떨어질 수 있다.
offset (Offset)not setOffset (Offset) item
place_only_on_block_position_changefalseBoolean true/falsetrue이면 엔티티의 바닥이 다른 블록 위치로 이동하거나 착지(공중에서 지면으로)한 틱에만 흔적 블록을 배치한다.
placement_checksblockPlacement Checks choices흔적 블록을 배치하기 전에 각 배치 위치에서 적용되는 검사를 제어한다.
placement_conditions[[object Object]]Array of Placement Conditions items흔적 블록 배치 위치를 기준으로 모두 충족해야 하는 조건.
placement_filter (Placement Filter){"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null}Placement Filter item선택한 블록 종류가 배치되기 위해 충족해야 하는 조건 하나 이상.
placement_filter (Alternate 1)not setObject
shapecornersShape choices수평 배치 패턴을 제어한다. 'corners'는 모서리 네 곳에, 'square'는 정사각형을 채우고, 'circle'은 원형으로 채운다. 기본값은 'corners'다.
spawn_filternot setMinecraft filter흔적 블록이 배치되기 위해 충족해야 하는 조건.
spawn_offset[0, 0, 0]x, y, z coordinate array흔적 블록이 배치되는 엔티티 위치로부터의 오프셋.

offset​

Offset from the entity's position used to determine where trail blocks are placed and placement checks are applied, capped at 16 blocks away. X and Z are relative to the entity's orientation and rotate to its nearest cardinal facing; Y is a vertical offset.

place_only_on_block_position_change​

When true, trail blocks are only placed on ticks where the bottom of the entity moves into a different block position, or where the entity lands (goes from airborne to grounded). Standing still or moving within the same block does not place blocks. Defaults to false.

placement_checks​

Controls the checks applied at each trail block placement position before placing the trail block. 'none' applies no placement checks, 'block' applies block placement conditions, and 'standard' applies standard block placement rules, including clearance from entities that obblock placement.

placement_conditions​

Conditions that must all be satisfied relative to the trail block placement position. Block types within one condition are alternatives. When omitted, defaults to [{ "y_offset": 0, "block_types": ["minecraft:air"] }]. Value must have at least 1 items.

Offset (Offset)​

Offset Properties​

JSON path: offset

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

Placement Checks choices​

값제목설명
blockBlock
noneNone
standardStandard

Entity Trail Placement Conditions Entry​

Entity Trail Placement Conditions Entry Properties​

JSON path: placement_conditions

이름기본값유형설명
block_types (Block Types)[]Array of Block Types items배치 위치에서 수직 오프셋만큼 떨어진 곳에서 이 조건을 만족하는 블록 종류. 항목이 1개 이상이어야 한다.
block_types (as String)not setString
block_types (as Object)not setObject
y_offset0Integer number흔적 블록 배치 위치로부터의 수직 오프셋. 기본값은 0이다. -16 이상 16 이하여야 한다.
Block Types​
Block Types Properties​

JSON path: placement_conditions > block_types

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

Placement Filter​

Placement Filter Properties​

JSON path: placement_filter

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

Shape choices​

값제목설명
circleCircle
cornersCorners
squareSquare

예시​

minecraft:trail_placement_conditions_entry​

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

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

Entity Trail Placement Conditions Entry Properties​

이름기본값유형설명
block_types (Block Types)[]Array of Block Types items배치 위치에서 수직 오프셋만큼 떨어진 곳에서 이 조건을 만족하는 블록 종류. 항목이 1개 이상이어야 한다.
block_types (as String)not setString
block_types (as Object)not setObject
y_offset0Integer number흔적 블록 배치 위치로부터의 수직 오프셋. 기본값은 0이다. -16 이상 16 이하여야 한다.

Block Types​

Block Types Properties​

JSON path: block_types

이름기본값유형설명
nameString
states{}Integer number
states (as String)not setString
states (as Boolean true/false)not setBoolean true/false
tagsString
출처
id출처라이선스커밋접근일
ms-learnMinecraft Creator 문서 (Microsoft Learn)CC BY 4.0 (문서), MIT (코드)a9fd1c02026-11-13