Skip to main content

Block component reference (1/8)

This page excerpts the reference from MS Learn (MicrosoftDocs/minecraft-creator a9fd1c0, CC BY 4.0). Relative links in the original are removed.

(Source: ms-learn, creator/Reference/Content/BlockReference/Examples/BlockComponents/BlockComponentsList.md)

Block Components Documentation​

Block ComponentsDescription
block_entityAdds per-instance metadata for this block.
minecraft:block_light_absorptionLegacy component (format_version < 1.19.40).
minecraft:block_light_emissionLegacy component (format_version < 1.19.40).
minecraft:chest_obstructionThis defines how a block reacts to a chest being opened underneath it.
minecraft:collision_boxDefines the area of the block that collides with entities.
minecraft:connection_ruleDefines whether other blocks such as fences, walls, bars, and glass panes are allowed to connect to this block.
minecraft:crafting_tableMakes your block into a custom crafting table which enables the crafting table UI and the ability to craft recipes.
minecraft:destroy_timeLegacy component (format_version < 1.19.40).
minecraft:destructible_by_explosionDescribes the destructible by explosion properties for this block.
minecraft:destructible_by_miningDescribes the destructible by mining properties for this block.
Destruction ParticlesSets the particles that will be used when block is destroyed.
minecraft:display_nameSpecifies the language file key that maps to what text will be displayed when you hover over the block in your inventory and hotbar.
minecraft:embedded_visualThe 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).
minecraft:entity_fall_onConfigures what distance an entity must fall onto this block to cause the onEntityFallOn block custom component event to be sent to script.
minecraft:explosion_resistanceLegacy component (format_version < 1.19.40).
minecraft:flammableDescribes the flammable properties for this block.
minecraft:flower_pottableWhen added to a block type, indicates that this block can be placed inside a flower pot.
minecraft:frictionDescribes the friction for this block in a range of 0.0 to 0.9.
minecraft:geometryThe description identifier of the geometry to use to render this block.
minecraft:instrument_sound[Note: This component is currently experimental].
Item VisualThe description identifier of the geometry and material used to render the item of this block.
minecraft:light_dampeningThe amount that light will be dampened when it passes through the block, in a range of 0-15.
minecraft:light_emissionThe amount of light this block will emit in a range of 0-15.
Liquid DetectionThe definitions for how a block behaves when detecting liquid.
minecraft:lootSpecifies the path to the loot table that determines what items are dropped when the block is destroyed.
minecraft:map_colorSets the color of the block when rendered to a map.
minecraft:material_instancesThe material instances for a block. Maps face or material_instance names in a geometry file to an actual material instance.
minecraft:movableDefines whether the block can be pushed or pulled by a piston.
Placement FilterSets rules for under what conditions the block can be placed and survive.
minecraft:precipitation_interactionsDetermines interactions the block will have with different precipitations.
minecraft:random_offsetThis component defines a random offset for the block, seeded based on the block's position and the specified range and steps.
Redstone ConductivityThe basic redstone properties of a block.
minecraft:redstone_consumerA component describing how a block can consume and potentially propagate a redstone signal.
minecraft:redstone_producerIf added to a block, indicates that it produces a redstone signal.
minecraft:replaceableA 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)
minecraft:selection_boxDefines the area of the block that is selected by the player's cursor (the outline shown when looking at the block).
minecraft:supportDefines the support shape of the block.
minecraft:tickCauses the block to tick based on a regular interval equal to a number of ticks randomly chosen from the internal_range parameter.
TransformationThe block's translation, rotation and scale with respect to the center of its world position

Internal/Deprecated Components​

These components are either deprecated or internal to Minecraft and not usable in custom content.

Block ComponentsDescription
bone_visibilityA JSON object that contains a list of key/value pairs that map from bone name in the specified geometry file (key) to a boolean that tells whether the bone should be visible or not (value).
breathabilityDetermines whether the block is breathable by defining if the block is treated as a solid or as air.
custom_componentsSets an ordered list of custom component names which are bound in script to be executed upon a block event.
queued_tickingTriggers the specified event, either once, or at a regular interval equal to a number of ticks randomly chosen from the interval_range provided.
random_tickingTriggers the specified event randomly based on the random tick speed gamerule.
unit_cubeSpecifies that a unit cube is to be used with tessellation.

(Source: ms-learn, creator/Reference/Content/BlockReference/Examples/BlockComponents/minecraftBlock_block_entity.md)

Block Components Documentation - minecraft:block_entity​

Adds per-instance metadata for this block.

Block Entity Properties​

NameDefault ValueTypeDescription
containernot setContainer itemAdds a container to this block.
dynamic_propertiesfalseBoolean true/falseDynamic-properties can store and retrieve variables on a block via scripting, more at https://learn.microsoft.com/en-us/minecraft/creator/scriptapi/minecraft/server/blockdynamicpropertiescomponent.
Block Container​

Block Container Properties​

JSON path: container

NameDefault ValueTypeDescription
show_ui_on_interactiontrueBoolean true/falseDetermines whether interacting with this block opens its container UI. Defaults to true. When false, normal block interaction events can run instead.
slot_countnot setInteger numberSets the number of slots in the container. Value must be >= 1. Value must be <= 54.
titlenot setStringOptional container title, stored as a language file key or raw text. Must be nonempty and at most 256 characters. Value must have at least 1 items. Value must have at most 256 items.

(Source: ms-learn, creator/Reference/Content/BlockReference/Examples/BlockComponents/minecraftBlock_block_light_absorption.md)

Block Components Documentation - minecraft:block_light_absorption​

Legacy component (format_version < 1.19.40). The amount light is dampened when passing through this block (0-15). Use minecraft:light_dampening in newer format versions.

Alternate Simple Representations​

This item can also be represented as a Integer number.

(Source: ms-learn, creator/Reference/Content/BlockReference/Examples/BlockComponents/minecraftBlock_block_light_emission.md)

Block Components Documentation - minecraft:block_light_emission​

Legacy component (format_version < 1.19.40). The amount of light this block emits (0-15). Use minecraft:light_emission in newer format versions.

Alternate Simple Representations​

This item can also be represented as a Integer number.

(Source: ms-learn, creator/Reference/Content/BlockReference/Examples/BlockComponents/minecraftBlock_bone_visibility.md)

Block Components Documentation - minecraft:bone_visibility​

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

A JSON object that contains a list of key/value pairs that map from bone name in the specified geometry file (key) to a boolean that tells whether the bone should be visible or not (value).

(Source: ms-learn, creator/Reference/Content/BlockReference/Examples/BlockComponents/minecraftBlock_breathability.md)

Block Components Documentation - minecraft:breathability​

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

Determines whether the block is breathable by defining if the block is treated as a solid or as air. The default is solid if this component is omitted.

Alternate Simple Representations​

This item can also be represented as a String.

(Source: ms-learn, creator/Reference/Content/BlockReference/Examples/BlockComponents/minecraftBlock_chest_obstruction.md)

Block Components Documentation - minecraft:chest_obstruction​

This defines how a block reacts to a chest being opened underneath it.

[!Note] Added in 1.26.10 behind the Upcoming Creator Features experiment and released without the experimental toggle for block format versions 1.26.20 and newer. Controls how a block placed above a chest affects the chest's ability to open: always always obstructs, never never obstructs, and shape (the default) uses the block's AABB.

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

Block Chest Obstruction Properties​

NameDefault ValueTypeDescriptionExample Values
obstruction_ruleshapeObstruction Rule choices[optional] How the block should be evaluated by a chest during chest opening.Block Black Concrete Stairs: "never"
obstruction_rule​

[optional] How the block should be evaluated by a chest during chest opening. Must be one of the following options: "always" - Will always oba chest from opening when directly above it. "never" - Will never obstruct a chest from opening when directly above it. "shape" - Will use the Blocks collision shape to determine if the chest is obstructed from opening when directly above it; this is the default value if no rule is provided. A Block can define its collision shape by adding a collision component.

Obstruction Rule choices​
ValueTitleDescription
alwaysAlways
neverNever
shapeShape

Samples​

Block Black Concrete Stairs​

"minecraft:chest_obstruction": {
"obstruction_rule": "never"
}

(Source: ms-learn, creator/Reference/Content/BlockReference/Examples/BlockComponents/minecraftBlock_collision_box.md)

Block Components Documentation - minecraft:collision_box​

Defines the area of the block that collides with entities. If set to true, default values are used (a full 16x16x16 block). If set to false, the block's collision with entities is disabled, allowing entities to pass through. If this component is omitted, default values are used.

[!Note] Released from the Holiday Creator Features experiment in 1.19.50. Pairs with the custom geometry component so creators can author bespoke collision shapes.

[!Note] Supports an array of collision boxes (for multi-part collision shapes) and a maximum collision box height of 24 units (up from 16). Available without the Upcoming Creator Features experiment and without the format_version 1.21.130 requirement starting in 1.26.0.

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

Alternate Simple Representations​

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

Collision Box Properties​

NameDefault ValueTypeDescription
Using a voxel shapecustom:shape_nameStringCurrently only available with the VoxelShape experiment on.
Using custom boxesnot setArray of Using Custom Boxes itemsAn array of boxes that define the area of the block that collides with entities.
Using a voxel shape​

Currently only available with the VoxelShape experiment on. When using the minecraft namespace, the only currently available collision shapes 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.

Using Custom Boxes​

An array of boxes that define the area of the block that collides with entities.

Using Custom Boxes Properties​

JSON path: Using custom boxes

NameDefault ValueTypeDescription
max[16, 24, 16]x, y, z coordinate arrayMaximum position of the bounds of the collision box. "max" is specified as [x, y, z] and must be in the range (0, 0, 0) to (16, 24, 16), inclusive.
min[0, 0, 0]x, y, z coordinate arrayMinimal position of the bounds of the collision box. "min" is specified as [x, y, z] and must be in the range (0, 0, 0) to (16, 24, 16), inclusive.

Samples​

"minecraft:collision_box": {
"min": [
0,
0,
0
],
"max": [
16,
16,
16
]
}

Block Red Shrub​

"minecraft:collision_box": false

(Source: ms-learn, creator/Reference/Content/BlockReference/Examples/BlockComponents/minecraftBlock_connection_rule.md)

Block Components Documentation - minecraft:connection_rule​

Defines whether other blocks such as fences, walls, bars, and glass panes are allowed to connect to this block.

[!Note] Lets a custom block control whether other blocks with connection behavior (fences, walls, bars, glass panes) may visually connect to it. Released alongside the new minecraft:has_fence_connections VanillaBlockTag.

[!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 Connection Rule Properties​

NameDefault ValueTypeDescriptionExample Values
accepts_connections_fromallAccepts Connections From choicesThe type of block allowed to connect to this block. Note that the "only_fences" option allows connections from all Vanilla fences excluding NetherBrick.Block Red Shrub: "none"
enabled_directions[south, north, east, west]Enabled Directions choicesThe cardinal directions that connection is enabled for. Note that if "none" is specified for "accepts_connections_from", this field will not be used.
Accepts Connections From choices​
ValueTitleDescription
allAll
noneNone
only_fencesOnly fences
Enabled Directions choices​
ValueTitleDescription
eastEast
northNorth
southSouth
westWest

Samples​

Block Red Shrub​

"minecraft:connection_rule": {
"accepts_connections_from": "none"
}

(Source: ms-learn, creator/Reference/Content/BlockReference/Examples/BlockComponents/minecraftBlock_crafting_table.md)

Block Components Documentation - minecraft:crafting_table​

Makes your block into a custom crafting table which enables the crafting table UI and the ability to craft recipes.

[!Note] Released from the Holiday Creator Features experiment in 1.19.50.

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

Block Crafting Table Properties​

NameDefault ValueTypeDescription
crafting_tagsnot setArray of stringsDefines the tags recipes should define to be crafted on this table. Limited to 64 tags. Each tag is limited to 64 characters. Value must have at most 64 items.
table_nameStringSpecifies the language file key that maps to what text will be displayed in the UI of this table.
table_name​

Specifies the language file key that maps to what text will be displayed in the UI of this table. If the string given can not be resolved as a loc string, the raw string given will be displayed. If this field is omitted, the name displayed will default to the name specified in the "display_name" component. If this block has no "display_name" component, the name displayed will default to the name of the block. Value must have at most 256 items.

Samples​

Example​

"minecraft:crafting_table": {
"crafting_tags": [
"crafting_table",
"custom_crafting_tag"
],
"table_name": "My Crafting Table"
}

Block Fabricator​

"minecraft:crafting_table": {
"crafting_tags": [
"graywave_fabricator"
],
"table_name": "Fabricator"
}

(Source: ms-learn, creator/Reference/Content/BlockReference/Examples/BlockComponents/minecraftBlock_custom_components.md)

Block Components Documentation - minecraft:custom_components​

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

Sets an ordered list of custom component names which are bound in script to be executed upon a block event.

[!Note] See the Scripting 2.0.0 Overview article for an overview of upcoming changes to custom components functionality.

Samples​

Luckyblock​

"minecraft:custom_components": [
"mike_luck:luckyblock_actions"
]

(Source: ms-learn, creator/Reference/Content/BlockReference/Examples/BlockComponents/minecraftBlock_destroy_time.md)

Block Components Documentation - minecraft:destroy_time​

Legacy component (format_version < 1.19.40). Time in seconds to destroy the block with base equipment. Use minecraft:destructible_by_mining in newer format versions.

Alternate Simple Representations​

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

(Source: ms-learn, creator/Reference/Content/BlockReference/Examples/BlockComponents/minecraftBlock_destructible_by_explosion.md)

Block Components Documentation - minecraft:destructible_by_explosion​

Describes the destructible by explosion properties for this block. If set to true, the block will have the default explosion resistance. If set to false, this block is indestructible by explosion. If the component is omitted, the block will have the default explosion resistance.

Alternate Simple Representations​

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

Destructible By Explosion Properties​

NameDefault ValueTypeDescriptionExample Values
explosion_resistance0Decimal numberSets the explosion resistance for the block.Block Black Concrete Double Slab: 1.8, Block Black Wool Double Slab: 0.8
explosion_resistance​

Sets the explosion resistance for the block. Greater values result in greater resistance to explosions. The scale will be different for different explosion power levels. A value of 0 means it will easily explode; larger numbers increase level of resistance.

Samples​

Example​

"minecraft:destructible_by_explosion": true

Block Fabricator​

"minecraft:destructible_by_explosion": {
"explosion_resistance": 15
}

Block Gray Ore​

"minecraft:destructible_by_explosion": {
"explosion_resistance": 96
}

Block Palm Leave​

"minecraft:destructible_by_explosion": {
"explosion_resistance": 1.3
}

Block White Sand​

"minecraft:destructible_by_explosion": {
"explosion_resistance": 1.1
}

Block Leaf Pile​

"minecraft:destructible_by_explosion": {
"explosion_resistance": 0.5
}

Block Orange Ore​

"minecraft:destructible_by_explosion": {
"explosion_resistance": 30
}

Apple Block​

"minecraft:destructible_by_explosion": {
"explosion_resistance": 2.9
}

Block Black Concrete Double Slab​

"minecraft:destructible_by_explosion": {
"explosion_resistance": 1.8
}

Block Black Wool Double Slab​

"minecraft:destructible_by_explosion": {
"explosion_resistance": 0.8
}
Sources
idSourceLicenseCommitAccessed
ms-learnMinecraft Creator documentation (Microsoft Learn)CC BY 4.0 (documentation), MIT (code)a9fd1c02026-11-13