본문으로 건너뛰기

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

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

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

Block Components Documentation - minecraft:destructible_by_mining​

Describes the destructible by mining properties for this block. If set to true, the block will take the default number of seconds to destroy. If set to false, this block is indestructible by mining. If the component is omitted, the block will take the default number of seconds to destroy.

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

Alternate Simple Representations​

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

Destructible By Mining Properties​

NameDefault ValueTypeDescriptionExample Values
base_time_to_destroy0Decimal numberSets the number of server simulation ticks it takes to mine the block with base equipment. Greater numbers result in greater mining times. A negative number means the block can't be mined.
item_specific_speedsnot setArray of Item Specific Speeds itemsOptional array of objects to describe item specific block destroy speeds, each object contains an 'item' ItemDescriptor and a 'destroy_speed' float.Samples: "{ "minecraft:destructible_by_mining": { "base_time_to_destroy": 10, "item_specific_speeds": [ { "item": { "tags": "q.any_tag('minecraft:is_pickaxe', 'minecraft:is_tool') " }, "destroy_speed": 5.0 } ] } }", "{ "minecraft:destructible_by_mining": { "base_time_to_destroy": 10, "item_specific_speeds": [ { "item": "minecraft:iron_pickaxe", "destroy_speed": 5.0 }, { "item": "minecraft:diamond_pickaxe", "destroy_speed": 2.0 } ] } }"
seconds_to_destroy0Decimal numberSets the number of seconds it takes to destroy the block with base equipment. Greater numbers result in greater mining times.Block Black Concrete Double Slab: 1.8, Block Black Wool Double Slab: 0.8
item_specific_speeds​

Optional array of objects to describe item specific block destroy speeds, each object contains an 'item' ItemDescriptor and a 'destroy_speed' float. This array currently requires UpcomingFeatures experiment to be enabled.

Item Specific Speeds​

Optional array of objects to describe item specific block destroy speeds, each object contains an 'item' ItemDescriptor and a 'destroy_speed' float. This array currently requires UpcomingFeatures experiment to be enabled.

Item Specific Speeds Properties​

JSON path: item_specific_speeds

NameDefault ValueTypeDescription
destroy_speednot setDecimal numberRequired. A destroy speed applied while using the defined 'item'.
itemnot setArray of Item itemsRequired. A filter for the item used while mining.
item (as String)not setStringAn item tag that is usable for the item.

Item​

Optional array of objects to describe item specific block destroy speeds, each object contains an 'item' ItemDescriptor and a 'destroy_speed' float. This array currently requires UpcomingFeatures experiment to be enabled.

Item Properties​

JSON path: item_specific_speeds > item

NameDefault ValueTypeDescription
tagsnot setArray of numbers

Samples​

At JSON Object (Item Tags):

"minecraft:destructible_by_mining": {
"seconds_to_destroy": 10,
"item_specific_speeds": [
{
"item": {
"tags": "q.any_tag('minecraft:is_pickaxe', 'my_pack:custom_tool') "
},
"destroy_speed": 5
}
]
}

At JSON Object (Item Ids):

"minecraft:destructible_by_mining": {
"seconds_to_destroy": 10,
"item_specific_speeds": [
{
"item": "minecraft:iron_pickaxe",
"destroy_speed": 5
},
{
"item": "minecraft:diamond_pickaxe",
"destroy_speed": 2
}
]
}

Block Fabricator​

"minecraft:destructible_by_mining": {
"seconds_to_destroy": 0.4
}

Block White Sand​

"minecraft:destructible_by_mining": {
"seconds_to_destroy": 7.5,
"item_specific_speeds": [
{
"item": {
"tags": "q.all_tags('minecraft:is_pickaxe', 'minecraft:wooden_tier')"
},
"destroy_speed": 1.15
},
{
"item": {
"tags": "q.all_tags('minecraft:is_pickaxe', 'minecraft:stone_tier')"
},
"destroy_speed": 0.6
},
{
"item": {
"tags": "q.all_tags('minecraft:is_pickaxe', 'minecraft:iron_tier')"
},
"destroy_speed": 0.4
},
{
"item": {
"tags": "q.all_tags('minecraft:is_pickaxe', 'minecraft:golden_tier')"
},
"destroy_speed": 0.2
},
{
"item": {
"tags": "q.all_tags('minecraft:is_pickaxe', 'minecraft:diamond_tier')"
},
"destroy_speed": 0.3
},
{
"item": {
"tags": "q.all_tags('minecraft:is_pickaxe', 'minecraft:netherite_tier')"
},
"destroy_speed": 0.25
}
]
}

Block Leaf Pile​

"minecraft:destructible_by_mining": {
"seconds_to_destroy": 1
}

Luckyblock​

"minecraft:destructible_by_mining": {
"seconds_to_destroy": 5,
"item_specific_speeds": []
}

Block Black Concrete Double Slab​

"minecraft:destructible_by_mining": {
"seconds_to_destroy": 1.8
}

Block Black Wool Double Slab​

"minecraft:destructible_by_mining": {
"seconds_to_destroy": 0.8
}

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

Block Components Documentation - minecraft:destruction_particles​

Sets the particles that will be used when block is destroyed.

[!Note] Available without experimental toggle in 1.21.100. The particle_count field controls how many particles spawn when the block is broken.

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

Block Destruction Particles Properties​

NameDefault ValueTypeDescriptionExample Values
particle_count100Integer numberSets number of particles to spawn on block destruction. Value must be <= 255.Block Black Concrete Slab: 48
textureStringThe texture name used for the particle.
tint_methodnoneTint Method choicesTint multiplied to the color. Tint method logic varies, but often refers to the "rain" and "temperature" of the biome the block is placed in to compute the tint.
Tint Method choices​
ValueTitleDescription
noneNone
default_foliageDefault Foliage
birch_foliageBirch Foliage
evergreen_foliageEvergereen Foliage
dry_foliageDry Foliage
grassGrass
waterWater

Samples​

Block Black Concrete Slab​

"minecraft:destruction_particles": {
"particle_count": 48
}

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

Block Components Documentation - minecraft:display_name​

Specifies the language file key that maps to what text will be displayed when you hover over the block in your inventory and hotbar. If the string given can not be resolved as a loc string, the raw string given will be displayed. If this component is omitted, the name of the block will be used as the display name.

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

Alternate Simple Representations​

This item can also be represented as a String.

Samples​

Block White Sand​

"minecraft:display_name": "White Sand"

Luckyblock​

"minecraft:display_name": "Lucky Block"

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

Block Components Documentation - minecraft:embedded_visual​

The description identifier of the geometry and material used to render this block when it it is embedded inside of another block (for example, a flower inside of a flower pot).

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

Embedded Visual Properties​

NameDefault ValueTypeDescription
geometrynot setArray of objectsThe "minecraft:geometry" component that will be used when rendered inside of another block.
geometry (Geometry)not setGeometry (Geometry) item
material_instancesnot setArray of objectsThe "minecraft:material_instances" component that will be used when rendered inside of another block. Value must have at most 64 items.
Geometry (Geometry)​

Geometry Properties​

JSON path: geometry

NameDefault ValueTypeDescription
bone_visibility{}ObjectA JSON object that contains a list of key/value pairs that map from bone name in the specified geometry file (key) to a Molang expression that tells whether the bone should be visible or not (value).
bone_visibility (as Keyed collection of boolean values)not setKeyed collection of boolean values
cullingStringWhich block_culling .json file to use when rendering this block. Value must have at most 256 items.
culling_layernot setStringA string that allows culling rule to group multiple blocks together when comparing them.
culling_shapeStringCurrently only available with the VoxelShape experiment on.
identifiernot setStringThe description identifier of the geometry to use to render this block.
n_way_visual_rotationnot setn Way Visual Rotation itemOptional object that maps x/y/z axes to block state names that drive visual-only geometry rotation.
uv_lockfalseObjectA field that is either a Boolean or an array of strings, max size 64 strings.

bone_visibility​

A JSON object that contains a list of key/value pairs that map from bone name in the specified geometry file (key) to a Molang expression that tells whether the bone should be visible or not (value). The expression is limited to using the "query.block_state()" query. When using "bone_visibility" in geometry components in the "permutations" section, you must also have a default version of the geometry component with "bone_visibility" in the "components" section. Value must have at most 64 items.

culling_layer​

A string that allows culling rule to group multiple blocks together when comparing them. When using the minecraft namespace, the only allowed culling layer identifiers are : "minecraft:culling_layer.undefined" or "minecraft:culling_layer.leaves". When using no namespaces or a custom one, the names must start and end with an alpha-numeric character. Value must have at least 1 items. Value must have at most 256 items. Value must match a regular expression pattern of "^(?:minecraft:culling_layer.undefined|minecraft:culling_layer.leaves|(?!minecraft:)[a-z0-9].*[a-z0-9])$".

culling_shape​

Currently only available with the VoxelShape experiment on. The voxel shape used for culling adjacent block faces. Voxel shapes work together with culling rules and will not function if there is no culling rule defined for the block. Only adjacent blocks with voxel shapes will occlude using this shape. Blocks using "minecraft:geometry.full_block" always use the unit cube shape and will ignore custom shapes if specified. When using the minecraft namespace, the only currently available culling shape identifiers are : "minecraft:empty" or "minecraft:unit_cube". When using no namespaces or a custom one, the names must start and end with an alpha-numeric character. Value must have at most 256 items. Value must match a regular expression pattern of "^(?:minecraft:empty|minecraft:unit_cube|(?!minecraft:)[a-z0-9].*[a-z0-9])$".

identifier​

The description identifier of the geometry to use to render this block. This identifier must either match an existing geometry identifier in any of the loaded resource packs or be one of the currently supported Vanilla identifiers: "minecraft:geometry.full_block" or "minecraft:geometry.cross". Value must have at most 256 items.

uv_lock​

A field that is either a Boolean or an array of strings, max size 64 strings. This field locks UV orientation for all/some bones in the geometry, regardless of how the block is rotated using "minecraft:transformation" component. For performance reasons it's recommended to use the Boolean.

Block NWayVisualRotation​

Block NWayVisualRotation Properties​

JSON path: geometry > n_way_visual_rotation

NameDefault ValueTypeDescription
xStringBlock state name that controls visual rotation around the x axis. Value must have at most 256 items.
yStringBlock state name that controls visual rotation around the y axis. Value must have at most 256 items.
zStringBlock state name that controls visual rotation around the z axis. Value must have at most 256 items.

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

Block Components Documentation - minecraft:entity_fall_on​

Configures what distance an entity must fall onto this block to cause the onEntityFallOn block custom component event to be sent to script. Custom components subscribed to the onEntityFallOn event on a block without the minecraft:entity_fall_on component use the default fall distance of 1 block.

Entity Fall On Properties​

NameDefault ValueTypeDescription
min_fall_distance0Decimal numberThe minimum distance in blocks that an actor needs to fall before events are triggered.
minimum_fall_distance1Decimal numberThe minimum distance in blocks that an entity needs to fall before events are raised.

Samples​

Fall Distance Of 2 Blocks​

"minecraft:entity_fall_on": {
"minimum_fall_distance": 2
}

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

Block Components Documentation - minecraft:explosion_resistance​

Legacy component (format_version < 1.19.40). The block's resistance to explosions. Use minecraft:destructible_by_explosion in newer format versions.

Alternate Simple Representations​

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

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

Block Components Documentation - minecraft:flammable​

Describes the flammable properties for this block. If set to true, default values are used (catch: 5, destroy: 20). Note that the default value of lava_flammable is false for backwards compatibility. If set to false, or if this component is omitted, the block will not be able to catch on fire naturally from neighbors, but it can still be directly ignited.

Alternate Simple Representations​

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

Flammable Properties​

NameDefault ValueTypeDescriptionExample Values
catch_chance_modifier5Integer numberA modifier affecting the chance that this block will catch flame when next to a fire.Block Black Wool Double Slab: 30
destroy_chance_modifier20Integer numberA modifier affecting the chance that this block will be destroyed by flames when on fire.Block Black Wool Double Slab: 60
lava_flammablefalseBoolean true/falseWhether the block can be ignited by adjacent lava.Block Black Wool Double Slab: "always"
catch_chance_modifier​

A modifier affecting the chance that this block will catch flame when next to a fire. Values are greater than or equal to 0, with a higher number meaning more likely to catch on fire. For a "catch_chance_modifier" greater than 0, the fire will continue to burn until the block is destroyed (or it will burn forever if the "destroy_chance_modifier" is 0). If the "catch_chance_modifier" is 0, and the block is directly ignited, the fire will eventually burn out without destroying the block (or it will have a chance to be destroyed if "destroy_chance_modifier" is greater than 0). The default value of 5 is the same as that of Planks.

destroy_chance_modifier​

A modifier affecting the chance that this block will be destroyed by flames when on fire. Values are greater than or equal to 0, with a higher number meaning more likely to be destroyed by fire. For a "destroy_chance_modifier" of 0, the block will never be destroyed by fire, and the fire will burn forever if the "catch_chance_modifier" is greater than 0. The default value of 20 is the same as that of Planks.

lava_flammable​

Whether the block can be ignited by adjacent lava. Defaults to false for backwards compatibility; set to true to allow lava to set the block on fire the way it does Planks and other vanilla flammable blocks. This item requires a format version of at least 1.26.30.

Samples​

Block Fabricator​

"minecraft:flammable": {
"destroy_chance_modifier": 20,
"catch_chance_modifier": 5
}

Block Leaf Pile​

"minecraft:flammable": {
"destroy_chance_modifier": 100,
"catch_chance_modifier": 100
}

Block Black Wool Double Slab​

"minecraft:flammable": {
"catch_chance_modifier": 30,
"destroy_chance_modifier": 60,
"lava_flammable": "always"
}

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

Block Components Documentation - minecraft:flower_pottable​

When added to a block type, indicates that this block can be placed inside a flower pot.

[!Note] In format version 1.26.20, validation enforces that minecraft:flower_pottable may only appear in the root components object; placing it under permutations is rejected.

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

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

Block Components Documentation - minecraft:friction​

Describes the friction for this block in a range of 0.0 to 0.9. Friction affects an entity's movement speed when it travels on the block. Higher values result in more friction (less sliding). The default value is 0.4, which is used by most blocks. Ice uses 0.02 for its slippery surface.

Alternate Simple Representations​

This item can also be represented as a Decimal number.

Samples​

Block Palm Leave​

"minecraft:friction": 0.38

Block White Sand​

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