본문으로 건너뛰기

블록 컴포넌트 레퍼런스 (5/8)

MS Learn(MicrosoftDocs/minecraft-creator a9fd1c0, CC BY 4.0)의 레퍼런스를 발췌한 쪽이다. 원문의 상대 링크는 제거했다.

(출처: ms-learn, creator/Reference/Content/BlockReference/Examples/BlockComponents/minecraftBlock_queued_ticking.md)

Block Components Documentation - minecraft:queued_ticking​

[!IMPORTANT] This type is now deprecated, and no longer in use in the latest versions of Minecraft.

Triggers the specified event, either once, or at a regular interval equal to a number of ticks randomly chosen from the interval_range provided.

Queued Ticking Properties​

NameDefault ValueTypeDescription
interval_rangenot setArray of stringsA range of values, specified in ticks, that will be used to decide the interval between times this event triggers.
loopingtrueBoolean true/falseDoes the event loop?
on_ticknot setMinecraft Event TriggerThe event that will be triggered once or on an interval.
interval_range​

A range of values, specified in ticks, that will be used to decide the interval between times this event triggers. Each interval will be chosen randomly from the range, so the times between this event triggering will differ given an interval_range of two different values. If the values in the interval_range are the same, the event will always be triggered after that number of ticks.

looping​

Does the event loop? If false, the event will only be triggered once, after a delay equal to a number of ticks randomly chosen from the interval_range. If true, the event will loop, and each interval between events will be equal to a number of ticks randomly chosen from the interval_range.

(출처: ms-learn, creator/Reference/Content/BlockReference/Examples/BlockComponents/minecraftBlock_random_offset.md)

Block Components Documentation - minecraft:random_offset​

This component defines a random offset for the block, seeded based on the block's position and the specified range and steps. It affects the block's rendered position, outline, and collision. If the random offset causes the collision box to extend beyond the bounds of a cube, the offset range will automatically adjust to keep the collision box within the cube. Culling for this block is performed without considering the random offset.

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

Random Offset Properties​

NameDefault ValueTypeDescription
x{"range":{"max":0,"min":0},"steps":0}X itemX coordinate
y{"range":{"max":0,"min":0},"steps":0}Y itemY coordinate
z{"range":{"max":0,"min":0},"steps":0}Z itemZ coordinate
Block Range And Steps​

Defines an integer block state with a range of valid values and optional step increment. Used for block properties like growth stages (0-7 for crops), signal strength (0-15 for redstone), or rotation angles. The game only allows values within the specified min/max range at the given step intervals.

Block Range And Steps Properties​

JSON path: x

NameDefault ValueTypeDescription
rangenot setRange itemThe range of the random offset. Check that the limits imposed on the range (minimum, maximum and maximum distance between values) are respected
steps0Integer numberThe number of steps between the range. Specify 0 for all possible values between the range.

Legacy FloatRange​

Legacy FloatRange Properties​

JSON path: x > range

NameDefault ValueTypeDescription
max0Decimal number
min0Decimal number

(출처: ms-learn, creator/Reference/Content/BlockReference/Examples/BlockComponents/minecraftBlock_random_ticking.md)

Block Components Documentation - minecraft:random_ticking​

[!IMPORTANT] This type is now deprecated, and no longer in use in the latest versions of Minecraft.

Triggers the specified event randomly based on the random tick speed gamerule. The random tick speed determines how often blocks are updated. Some other examples of game mechanics that use random ticking are crop growth and fire spreading.

Random Ticking Properties​

NameDefault ValueTypeDescription
on_ticknot setMinecraft Event TriggerThe event that will be triggered on random ticks.

(출처: ms-learn, creator/Reference/Content/BlockReference/Examples/BlockComponents/minecraftBlock_redstone_conductivity.md)

Block Components Documentation - minecraft:redstone_conductivity​

The basic redstone properties of a block. If the component is not provided the default values are used.

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

Block Redstone Conductivity Properties​

NameDefault ValueTypeDescriptionExample Values
allows_wire_to_step_downtrueBoolean true/falseSpecifies if redstone wire can stair-step downward on the block.Block Black Concrete Stairs: true
redstone_conductorfalseBoolean true/falseSpecifies if the block can be powered by redstone.Block Black Concrete Double Slab: true

Samples​

Block Black Concrete Double Slab​

"minecraft:redstone_conductivity": {
"redstone_conductor": true
}

Block Black Concrete Slab​

"minecraft:redstone_conductivity": {
"redstone_conductor": false
}

Block Black Concrete Stairs​

"minecraft:redstone_conductivity": {
"redstone_conductor": false,
"allows_wire_to_step_down": true
}

(출처: ms-learn, creator/Reference/Content/BlockReference/Examples/BlockComponents/minecraftBlock_redstone_consumer.md)

Block Components Documentation - minecraft:redstone_consumer​

A component describing how a block can consume and potentially propagate a redstone signal. This component is not available for block permutations.

[!Note] Lets a custom block consume and optionally propagate a redstone signal. Pairs with the BlockComponentRedstoneUpdateEvent script API for custom redstone behavior. Not available on block permutations.

[!Note] Available without the Upcoming Creator Features experimental toggle for block format versions 1.26.0 or higher. In 1.26.0 the field was renamed from the original propogates_power spelling to propagates_power.

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

Block Redstone Consumer Properties​

NameDefault ValueTypeDescription
min_power0Integer numberOptional minimum value for incoming signal strength.
propagates_powerfalseBoolean true/falseOptional Boolean to control whether a signal can pass through this block or not, defaults to false.
min_power​

Optional minimum value for incoming signal strength. If signal strength is greater than or equal to this value then the 'onRedstoneUpdate' event is sent to Scripts. Defaults to 0 meaning event is always emitted. Value must be <= 15.

Samples​

(출처: ms-learn, creator/Reference/Content/BlockReference/Examples/BlockComponents/minecraftBlock_redstone_producer.md)

Block Components Documentation - minecraft:redstone_producer​

If added to a block, indicates that it produces a redstone signal.

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

Redstone Producer Properties​

NameDefault ValueTypeDescription
connected_faces[down, up, north, south, west, east]Connected Faces choicesThe list of faces that are considered connected to the circuit. If a face is not connected, it will not provide power to the block touching that face. By default, all faces are connected.
powernot setInteger numberThe strength of the redstone signal produced by this block. Valid values are from 0 to 15, where 0 means no signal and 15 is the maximum signal strength. Value must be <= 15.
strongly_powered_facenot setStrongly Powered Face choicesThe block touching this face will become strongly powered with the signal level strength of 'power'.
transform_relativefalseBoolean true/falseIf true, the strongly_powered_face and connected_faces properties will be rotated according to the 'minecraft:transformation' component.
strongly_powered_face​

The block touching this face will become strongly powered with the signal level strength of 'power'. Strongly powered blocks will power adjacent blocks. By default, the block will not strongly power any face.

Connected Faces choices​
ValueTitleDescription
northNorth
eastEast
southSouth
westWest
upUp
downDown

(출처: ms-learn, creator/Reference/Content/BlockReference/Examples/BlockComponents/minecraftBlock_replaceable.md)

Block Components Documentation - minecraft:replaceable​

A block with this component can be replaced when another block is placed in the same block position. Experimental toggles required: Upcoming Creator Features (in format versions before 1.21.60).

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

Samples​

Block Red Shrub​

"minecraft:replaceable": {}

(출처: ms-learn, creator/Reference/Content/BlockReference/Examples/BlockComponents/minecraftBlock_selection_box.md)

Block Components Documentation - minecraft:selection_box​

Defines the area of the block that is selected by the player's cursor (the outline shown when looking at the block). If set to true, default values are used (a full 16x16x16 block). If set to false, this block is not selectable by the player's cursor. If this component is omitted, default values are used.

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

Alternate Simple Representations​

This item can also be represented as a Boolean true/false.

Selection Box Properties​

NameDefault ValueTypeDescriptionExample Values
origin[-8, 0, -8]x, y, z coordinate arrayMinimal position of the bounds of the selection box. "origin" is specified as [x, y, z] and must be in the range (-8, 0, -8) to (8, 16, 8), inclusive.Block Red Shrub: [-8,0,-8]
size[16, 16, 16]x, y, z coordinate arraySize of each side of the selection box. Size is specified as [x, y, z]. "origin" + "size" must be in the range (-8, 0, -8) to (8, 16, 8), inclusive.Block Red Shrub: [16,16,16]

Samples​

Block Fabricator​

"minecraft:selection_box": true

Block Red Shrub​

"minecraft:selection_box": {
"origin": [
-8,
0,
-8
],
"size": [
16,
16,
16
]
}

(출처: ms-learn, creator/Reference/Content/BlockReference/Examples/BlockComponents/minecraftBlock_support.md)

Block Components Documentation - minecraft:support​

Defines the support shape of the block. Currently only allows for blocks to have the same shape as a Vanilla fence and Vanilla stair. To work with custom stairs, requires the use of "minecraft:vertical_half" and "minecraft:cardinal_direction" or "minecraft:facing_direction" which can be set through the "minecraft:placement_direction" block trait. Custom blocks without this component will default to unit cube support. The type of support shape for this block. Currently, the options are: "fence" and "stair".

[!Note] Defines how this block provides structural support. Currently accepts shape fence or stair. Pair with the minecraft:placement_direction trait (and minecraft:vertical_half) for custom stair-shaped supports.

[!Note] Available without the Upcoming Creator Features experimental toggle for block format versions 1.26.0 or higher.

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

Block Support Properties​

NameDefault ValueTypeDescriptionExample Values
shapenot setShape choicesRequired field. The type of support shape for this block.Block Black Concrete Stairs: "stair"
Shape choices​
ValueTitleDescription
fenceFence
stairStair

Samples​

Block Black Concrete Stairs​

"minecraft:support": {
"shape": "stair"
}

(출처: ms-learn, creator/Reference/Content/BlockReference/Examples/BlockComponents/minecraftBlock_tag.md)

Block Documentation - tag:​

tag: is an empty JSON Object that defines a tag to be added to a block.

The component has no body or parameters, it is simply a flag, and when the block is parsed it will be added to the block's tag list.

Creators can use either vanilla block tags or make their own with a proper namespace.

Example​

"tag:minecraft:is_pickaxe_item_destructible": {},
"tag:minecraft:diamond_tier_destructible": {},
"tag:example_namespace:custom_block_tag": {}

(출처: ms-learn, creator/Reference/Content/BlockReference/Examples/BlockComponents/minecraftBlock_tick.md)

Block Components Documentation - minecraft:tick​

Causes the block to tick based on a regular interval equal to a number of ticks randomly chosen from the internal_range parameter. This ticking will send the onTick event to blocks with custom components subscribed for the event. Custom components listening to the onTick event that are added to a block that does not have the minecraft:tick component will cause a content error.

Tick Properties​

NameDefault ValueTypeDescription
interval_range[0, 0]Array of numbersA range of values, specified in ticks, to decide the next tick interval for a block.
loopingtrueBoolean true/falseIf false, the block will only be ticked once after a delay equal to a number of ticks randomly chosen from the interval_range and no further ticking will occur.
interval_range​

A range of values, specified in ticks, to decide the next tick interval for a block. After each block tick, a new value will be chosen from within the range to determine the next tick interval. If the values in the interval_range are the same, the block will always be ticked after that number of ticks. The first value must be lower or equal to the second value in the array. Value must have at least 2 items. Value must have at most 2 items.

looping​

If false, the block will only be ticked once after a delay equal to a number of ticks randomly chosen from the interval_range and no further ticking will occur. If true, after the block ticks, a new random value will be chosen from the interval_range for when the block will tick again.

Samples​

Tick Every 1 To 3 Seconds​

"minecraft:tick": {
"interval_range": [
20,
60
],
"looping": true
}

(출처: ms-learn, creator/Reference/Content/BlockReference/Examples/BlockComponents/minecraftBlock_transformation.md)

Block Components Documentation - minecraft:transformation​

The block's translation, rotation and scale with respect to the center of its world position.

[!Note] Added in 1.19.80 as a replacement for the previous block rotation component, adding support for scaling and translation in addition to rotation. May be added to the whole block and/or to individual block permutations.

[!Note] Added rotation_pivot and scale_pivot attributes in 1.21.0 to support pivoted rotation and scale operations.

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

Block Transformation Properties​

NameDefault ValueTypeDescription
rotation[0, 0, 0]Array of numbersThe block's rotation in increments of 90 degrees
rotation (Rotation)not setRotation (Rotation) item
rotation_pivot[0, 0, 0]x, y, z coordinate arrayThe point to apply rotation around. This item requires a format version of at least 1.21.0.
rotation_pivot (Rotation Pivot)not setRotation Pivot (Rotation Pivot) item
scale[1, 1, 1]Array of numbersThe block's scale
scale (Scale)not setScale (Scale) item
scale_pivot[0, 0, 0]x, y, z coordinate arrayThe point to apply scale around. This item requires a format version of at least 1.21.0.
scale_pivot (Scale Pivot)not setScale Pivot (Scale Pivot) item
translation[0, 0, 0]Array of numbersThe block's translation
translation (Translation)not setTranslation (Translation) item
Rotation (Rotation)​

Rotation Properties​

JSON path: rotation

NameDefault ValueTypeDescription
x0Decimal number
y0Decimal number
z0Decimal number
Rotation Pivot (Rotation Pivot)​

Same structure as Rotation (Rotation).

Scale (Scale)​

Same structure as Rotation (Rotation).

Scale Pivot (Scale Pivot)​

Same structure as Rotation (Rotation).

Translation (Translation)​

Same structure as Rotation (Rotation).

(출처: ms-learn, creator/Reference/Content/BlockReference/Examples/BlockComponents/minecraftBlock_unit_cube.md)

Block Components Documentation - minecraft:unit_cube​

[!IMPORTANT] This type is now deprecated, and no longer in use in the latest versions of Minecraft.

Specifies that a unit cube is to be used with tessellation.

(출처: ms-learn, creator/Reference/Content/BlockReference/Examples/traits/connection.md)

Block Traits: connection​

The minecraft:connection block trait contains information about whether the block connects to other blocks, and if so, on what faces. The values of the states will change when the block or neighboring blocks change or move.

[!IMPORTANT] The connection trait requires Bedrock Edition 1.21.130 or higher, and currently requires that the "Upcoming Creator Features" experimental toggle is set on.

There is only one valid state for enabled_states in this trait: minecraft:cardinal_connections.

Queryable block states​

When the cardinal_connections state is enabled, you can read one of four block states for connections.

  • minecraft:connection_north is true if the block is connected to another block to the north, false if it is not.
  • minecraft:connection_south is true if the block is connected to another block to the south, false if it is not.
  • minecraft:connection_east is true if the block is connected to another block to the east, false if it is not.
  • minecraft:connection_west is true if the block is connected to another block to the west, false if it is not.

Example​

{
"format_version": "1.21.130",
"minecraft:block": {
"description": {
"identifier": "test:connection_trait_block",
"traits": {
"minecraft:connection": {
"enabled_states": [
"minecraft:cardinal_connections"
]
}
}
},
"permutations": [
{
"condition": "q.block_state('minecraft:connection_north') && !q.block_state('minecraft:connection_south')",
"components": {
// ...
}
}
]
}
}
출처
id출처라이선스커밋접근일
ms-learnMinecraft Creator 문서 (Microsoft Learn)CC BY 4.0 (문서), MIT (코드)a9fd1c02026-11-13