Blocks
This page collects how to make custom blocks and the known limits. The evidence is community research (2025-10~2026-12), the blocks docs of the Bedrock Wiki (0930b39) and the vanilla block JSON of bedrock-samples (15701fa9) (Source: private research). Verification level marks follow the legend on the wiki home page.
The full list of MS Learn block components is in the block component index.
Key summary
- Block features are decided by the
format_versionof the block file (the manifestmin_engine_versionaffects only the Molang/commands of the BP). Custom components v2 need 1.21.90 or higher,connection_ruleand the new traits need 1.26.0 or higher, and theminecraft:tagsarray needs 1.26.20 or higher. - Register custom components with
blockComponentRegistry.registerCustomComponent("ns:id", {...})insystem.beforeEvents.startup, and write"ns:id": {}directly in the blockcomponents. Theminecraft:custom_componentsarray andworld.beforeEvents.worldInitializeare dropped. - Putting a custom component in a permutation makes the custom components in the base
componentsdisappear (MCPE-234714, unresolved). Define them again in every permutation. - A block model is about 30px per axis (at most 14px outside the block), and only cubes are allowed. Geometry that is too large or invalid makes all custom blocks in that subchunk invisible.
minecraft:collision_boxaccepts an array of several boxes (experimental in 1.21.130, stable in 26.0). There is only one selection box.- The JSON, loot tables and behavior of vanilla blocks cannot be modified by add-ons. Silk Touch and Fortune are hardcoded, so handle them with scripts.
- For custom blocks placed by worldgen,
onTick/onPlaceoften do not run.
1. Concept and minimal example
Block files are in BP/blocks/*.json and have description, components, optional permutations and traits. Textures are defined in RP/textures/terrain_texture.json and referenced with minecraft:material_instances. The name is the lang key tile.<ns>:<id>.name. The following is a minimal glowing block valid in 1.26.30.
{
"format_version": "1.26.30",
"minecraft:block": {
"description": {
"identifier": "wiki:glow_block",
"menu_category": { "category": "construction" }
},
"components": {
"minecraft:geometry": { "identifier": "minecraft:geometry.full_block" },
"minecraft:material_instances": {
"*": { "texture": "glow_block", "render_method": "opaque" }
},
"minecraft:light_emission": 15
}
}
}
{
"resource_pack_name": "wiki",
"texture_name": "atlas.terrain",
"texture_data": { "glow_block": { "textures": "textures/blocks/glow_block" } }
}
tile.wiki:glow_block.name=Glow Block
The spelling is light_dampening (not damping). A block that uses geometry must not have textures in blocks.json, and only sound is valid.
2. format_version and file rules
format_version
- Only the format_version of the block file matters. A 1.21.90 block got the new traits working just by raising the number to 1.26.0 (no component changed format between 1.21.90 and 26.0). If the Realm is not yet on that version, it is ignored or fails.
- Effects per format_version (compiled by ciosciaa): 1.19.10 map color/flammability, 1.19.20 friction, 1.19.40 geometry + material_instances, 1.19.50 collision + crafting table, 1.19.60 display name/selection/adjacency filter, 1.19.80 transformation, 1.20.10 Molang bone visibility in geometry, 1.21.30 mining destructibility hardness override, 1.21.70 intrinsic particles +
isotropic, 1.21.90 UV lock + destruction particle count, 1.21.110 atlas tile in texture variations, 1.21.120 alpha-based tint masking, 1.26 fix for hardcoded full-block bottom face rotation, 1.26.20 trailing comma/tags component/block entity component/visual rotation state binding in geometry/lava flammability/versioned Molang in permutation conditions/relaxed identifier and state name validation/stricter placement_direction and geometry validation/flower_pottable banned inside permutations, 1.26.30 instrument sound component. Multiple collision boxes also worked in 1.20.80 (the bug fix is in 1.26.30). - 1.26.20 new parser: the
ambient_occlusionboolean was removed and it accepts a number 0-10 (using a boolean gives an unrelatedinvalid stringerror). Error messages have no location info. In 1.26.20menu_categorywas wrongly required for blocks with item overrides (worked around with"menu_category": {"category": "none"}, fixed by 2026-03-31). Going back to an older version still loads but loses the new components. - Comparing the client's block component name list for format 1.26.60 with the official sample (1.26.20), the new names are three:
minecraft:enchantment_power_transmitter,minecraft:neighbor_changeandminecraft:vibration_properties. All three appear to be behind the Upcoming Creator Features gate. The member ofneighbor_changeisneighbor_directions(an array of directions, valuesall,up,down,north,south,west,east), and what happens when which neighbor changes was not read.enchantment_power_transmitterhas no member name and appears to be written as an empty object{inferred}. No member name was found forvibration_properties.loot,sound,tagsandtick, which are in the sample, were only missed by the string search because their names are short, and that does not mean the client lacks them{code}. - Components outside
componentsare silently ignored. For example,"minecraft:collision_box": falseplaced outside gives a unit cube collision with no error. - 1.16.100-style syntax is dropped. Blocks from the 1.16 era appear as "?" / "update block" until migrated.
Legacy renames
minecraft:entity_collision became minecraft:collision_box, minecraft:block_light_dampening became minecraft:light_dampening, minecraft:pick_collision became minecraft:selection_box, minecraft:block_light_emission became minecraft:light_emission, minecraft:destroy_time became minecraft:destructible_by_mining.seconds_to_destroy, minecraft:rotation became minecraft:transformation, the minecraft:block_property query became q.block_state, and properties became states (1.20.30). minecraft:ticking does not exist and is minecraft:tick. Block events (events, minecraft:on_placed, set_block_state) were removed around 2024, so use scripts.
File locations and names
- Put
terrain_texture.json(singular) anditem_texture.jsoninRP/textures/. Putting the.pngextension in a path breaks PBR texture sets. Invalid JSON or a UTF-8-SIG (BOM) file givesfailed to parse. - The lang key is
tile.<ns>:<id>.name. Do not use uppercase in identifiers. - Put
menu_categorydirectly insidedescription(not insidetraits). Values are lowercase ("Construction"or the typomenu_catagorysilently hides it from creative). To hide, use"none"or omit it (omitting was allowed again from Preview 26.20.23). If you usereplace_block_item, the item's menu_category takes priority.register_to_creative_menustopped working in 1.26.20. Puttraitsinsidedescriptiontoo.
Reading the Content Log
- Order of block errors: the first line says the block is invalid, the second says which component, the third gives the reason (the real cause), and the fourth is data that does not match the format_version.
Unexpected version for the loaded datausually comes along with an earlier real error, so scroll up in the log. - A missing registry warning means the pack is not turned on or not fully reloaded. After changing geometry/textures, put it in a development pack and use
/reload all. - Editor false positives: the Blockception VS Code extension wrongly flags
minecraft:geometry.full_blockand thewool/carpetblock filter. The bridge. schema wrongly rejectsblock_face, integercountand numericambient_occlusion.
3. Custom components (scripts)
See also: the handler list, registration and parameters are in the custom components section of Entities, items, custom components.
Registration
In the block JSON, write "ns:id": {} directly in components, and a script registers it. The requirements are block format 1.21.90 or higher, @minecraft/server 2.0.0 or higher in the BP manifest, a script entry in modules, and importing the component file from the entry file.
import { system } from "@minecraft/server";
system.beforeEvents.startup.subscribe(({ blockComponentRegistry }) => {
blockComponentRegistry.registerCustomComponent("ns:id", {
onPlace(e) {},
onTick(e) {},
});
});
{ "type": "script", "language": "javascript", "entry": "scripts/main.js", "uuid": "...", "version": [1, 0, 0] }
- One note said a
minecraft:custom_componentsarray is needed, but that is the old format that has been invalid since 1.21.90. - Conflicting gametest dependency versions break script loading. At that time on the stable release use
@minecraft/server2.7.0 and server-ui 2.0.0, and leave out the unused@minecraft/server-gametest.{single report} - Causes of
child 'x:y' not valid here/component found in input but not present in Schema: the component not registered with the API, registered in the wrong registry (itemComponentRegistry), an old format_version (for example 1.20.80), no script module in the manifest, a script error or wrong import, or one of several manifests in a folder.bone_visibilityplaced outsideminecraft:geometrygives the same error. Wrapping in a fakeminecraft:componentsobject is not a solution. The error goes away only once the script loads and works. There is also a report of a single block failing to register at random and being fixed by rewriting it identically.{single report} - Registration timing: importing main one tick late, as in
system.run(() => import("./main")), breaks startup registration. If there is even one script error, block/item components may not attach./reloaddoes not run startup again. Block custom component 'x' is not being used by a blockmeans the format_version or location is wrong.component used on block but not registered in scriptmeans it is not registered or the@minecraft/servermetadata version is wrong. Right after the 2026-03 block schema change, every custom component gotNo transformer found for component ... Cannot downgrade from modern slice to legacy component(MCPE-237057).- The nesting depth of custom component parameters is at most 2.
tagis also a valid custom component namespace.
Hooks
- Available hooks (
BlockCustomComponent):beforeOnPlayerPlace,onBlockStateChange,onBreak,onEntity,onEntityFallOn,onPlace,onPlayerBreak(onPlayerDestroyin@minecraft/server1.x),onPlayerInteract,onRandomTick,onRedstoneUpdate,onStepOff,onStepOn,onTick.onNamedTickandonNeighborChangedare only in beta on 26.60 (@minecraft/server2.12.0-beta) and are in the stable API (2.13.0) on the 27.0.20 preview{vanilla}.beforeOnPlayerInteract,beforeEvents.blockTick,permutation.getMaterial(),onEntityStepOnandonEntityInsidedo not exist. onBreakappeared as an experiment in 1.21.130. It givesbrokenBlockPermutationandentitySourceand also fires when broken by pistons, explosions and loss of support. It does not fire when broken by a survivability failure (MCPE-240755).onPlayerInteractblocks normal use and placement against that block (placing works only while sneaking). Even if it is on only one permutation, every permutation becomes interactable (MCPE-225746). In the 27.0.20 preview,onPlayerInteractandbeforeOnPlayerPlaceare called only for permutations defined to use that hook (MCPE-225746 fixed). If any active custom component exists, the block becomes interactable. To avoid blocking, useworld.beforeEvents.playerInteractWithBlockand handle it insidesystem.run.beforeOnPlayerPlacechangese.permutationToPlaceor blocks withe.cancel = true. Using this hook turns off client prediction, which makes fast bridging hard. On areplace_block_itemblock it runs after the block is placed.onPlacefires on every placement. If broken in the same tick,e.blockcan beminecraft:air. It can run before neighbors settle, so delay withsystem.run.- Tick timers:
minecraft:tickhas no count limit and supports delayed queued ticks, but one block cannot have two tick timers.onRandomTickis preferred for performance. To turn ticking off, use one state and two permutations (only one containingminecraft:tick). - Ambient effects of vanilla blocks (particles and so on) run on the client-side animate tick, not on random ticks. One explanation says each pass picks 667 positions within 16 blocks and 667 within 32 blocks (1,334 in total) and calls the block class
animateTick()on them{single report}. Block ambient sounds (leaves, sand, terracotta, bushes and others) are not exposed to add-ons, so the suggested workaround is a random tick custom component that callsdimension.playSound. - Scheduled tick throughput: for each chunk-dimension pair only 100 blocks per tick run scheduled-tick behavior, and the rest cycle. When about 30 pressure plates used block
onTick, 10-15ms spikes occurred. Player-side ticks or the projectile hit event are recommended. - If you change the permutation of a placed block with
onTick/a redstone clock, the player cannot place against that block during that tick. Half of the block component events force the hand swing animation.
Permutations and the custom component bug (MCPE-234714)
Only the custom components of the last (bottom-most) matching permutation apply, and those defined elsewhere are ignored. If it is in both the root and the default permutation, only the permutation side is read. The workaround is to define every custom component in every permutation. Unresolved as of 2026-10.
Example: a block that swaps its texture with a boolean state
Each time a player uses the block, it flips the state wiki:on, and a permutation tied to that state swaps the texture. It takes a behavior pack, a resource pack and one script. With the code below, each use of the block switched the state false, true, false and the texture followed {measured} (example measurement record, 2026-11-27 Windows 1.26.65).
It relies on these facts from this page.
- The block
format_version1.26.30 form, usingminecraft:geometrytogether withminecraft:material_instances, and texture names being keys ofterrain_texture.json(sections 1 and 8). - States are defined in
description.stateswith a namespace and read withq.block_state, permutation components may overlap the base, and to change the look from a script you tie permutations to a state and useblock.setPermutation(section 4). - The registration requirements (block format 1.21.90 or higher,
@minecraft/server2.0.0 or higher, a script entry inmodules), and thatonPlayerInteractblocks normal use and placement (section 3). - The door pattern that flips a boolean state with
block.permutation.withStateinsideonPlayerInteract({block, dimension})(section 15). - The
dataandscriptmodules in the manifest, the uuid dependency that adds the RP automatically, and the lang location (manifest, file formats, overview-and-modules).
The @minecraft/server version is fixed at 2.7.0. The registration section of this page names 2.7.0 when it covers custom component loading problems {single report}, and the manifest example also uses 2.7.0. The minimal example in overview-and-modules uses 2.4.0. The registration requirement is 2.0.0 or higher, so both values meet it, but the wiki has no data on behavior differences between 2.4.0 and 2.7.0.
BP/manifest.json
BP/blocks/toggle_block.json
BP/scripts/main.js
RP/manifest.json
RP/textures/terrain_texture.json
RP/textures/blocks/toggle_off.png
RP/textures/blocks/toggle_on.png
RP/texts/en_US.lang
The UUIDs are placeholders, so generate new ones. Make the two PNGs yourself at 16x16.
{
"format_version": 2,
"header": {
"name": "Toggle Block BP",
"description": "Toggle block behavior pack",
"uuid": "00000000-0000-4000-8000-0000000000a1",
"version": [1, 0, 0],
"min_engine_version": [1, 26, 30]
},
"modules": [
{ "type": "data", "uuid": "00000000-0000-4000-8000-0000000000a2", "version": [1, 0, 0] },
{
"type": "script",
"language": "javascript",
"uuid": "00000000-0000-4000-8000-0000000000a3",
"version": [1, 0, 0],
"entry": "scripts/main.js"
}
],
"dependencies": [
{ "uuid": "00000000-0000-4000-8000-0000000000b1", "version": [1, 0, 0] },
{ "module_name": "@minecraft/server", "version": "2.7.0" }
]
}
{
"format_version": 2,
"header": {
"name": "Toggle Block RP",
"description": "Toggle block resource pack",
"uuid": "00000000-0000-4000-8000-0000000000b1",
"version": [1, 0, 0],
"min_engine_version": [1, 26, 30]
},
"modules": [
{ "type": "resources", "uuid": "00000000-0000-4000-8000-0000000000b2", "version": [1, 0, 0] }
]
}
{
"format_version": "1.26.30",
"minecraft:block": {
"description": {
"identifier": "wiki:toggle_block",
"menu_category": { "category": "construction" },
"states": { "wiki:on": [false, true] }
},
"components": {
"minecraft:geometry": { "identifier": "minecraft:geometry.full_block" },
"minecraft:material_instances": {
"*": { "texture": "toggle_off", "render_method": "opaque" }
},
"wiki:toggle": {}
},
"permutations": [
{
"condition": "q.block_state('wiki:on')",
"components": {
"minecraft:material_instances": {
"*": { "texture": "toggle_on", "render_method": "opaque" }
}
}
}
]
}
}
{
"resource_pack_name": "wiki",
"texture_name": "atlas.terrain",
"texture_data": {
"toggle_off": { "textures": "textures/blocks/toggle_off" },
"toggle_on": { "textures": "textures/blocks/toggle_on" }
}
}
tile.wiki:toggle_block.name=Toggle Block
import { system } from "@minecraft/server";
system.beforeEvents.startup.subscribe(({ blockComponentRegistry }) => {
blockComponentRegistry.registerCustomComponent("wiki:toggle", {
onPlayerInteract({ block }) {
const isOn = block.permutation.getState("wiki:on");
block.setPermutation(block.permutation.withState("wiki:on", !isOn));
},
});
});
blocks.json is not used. For a block that uses geometry, blocks.json must not hold textures, and the texture is picked by material_instances with a key of terrain_texture.json (sections 1 and 8).
Things to watch:
- MCPE-234714 (unresolved) applies. This example puts the custom component
wiki:toggleonly in the basecomponents, and the permutation holds onlymaterial_instances. If you add any custom component to a permutation, the custom components of the base disappear, so then definewiki:toggleagain in every permutation. - With
onPlayerInteractpresent, normal use and placement against that block are blocked. To place another block next to it, sneak. - Components are registered only in startup, so after editing the script or the block JSON, leave the world and re-enter.
/reloaddoes not run startup again.
These parts have no example elsewhere on the wiki and were carried over from the facts above. All of them worked in game with this example {measured}.
- Defining a boolean state as the array
[false, true]. The other examples on this page show only string arrays (["a", "b"]) and integer ranges. - Writing the permutation
conditionasq.block_state('wiki:on')alone. - Reading the current value with
block.permutation.getState("wiki:on").Blockhas nogetState, andblock.getState("wiki:on")gaveTypeError: not a function. - Putting a
datamodule next to thescriptmodule inmodules. The minimal example in overview-and-modules has only ascriptmodule. - Setting
min_engine_versionto[1, 26, 30]. This page saysformat_versiondecides block features and the manifest value affects only BP Molang and commands.
4. States, traits, permutations
States
States are defined in description.states and read with q.block_state('ns:name').
"description": {
"identifier": "wiki:crop",
"states": {
"wiki:growth": { "values": { "min": 0, "max": 7 } },
"wiki:kind": [ "a", "b" ]
}
},
"permutations": [
{ "condition": "q.block_state('wiki:growth') < 7",
"components": { "minecraft:tick": { "interval_range": [ 20, 40 ] } } }
]
- State names need a namespace (
gen:type). Without it,Identifier must have a namespace / Failed to create Block State Descriptionappears. At most 16 values per state, and if you need more, use two states. - Bitmask: to attach 6 faces like moss/sculk vines, set faces to 1,2,4,8,16,32 and use sums 1-63.
- A block always creates every permutation of its states. You cannot reuse vanilla states that have fewer values. A changed state in an existing world updates only when it ticks.
- Block components are not saved. Components are derived from the permutation (identifier + state values), and the only thing saved is the queued tick of
minecraft:tick. There is noblock.setTexture. To change geometry with scripts, tie permutations to a state and useblock.setPermutation. - Script API: many state values are strings (
turtle_egg_count: "one_egg").BlockStates.get(name).validValuesgives[]for flattened legacy types (stone_type,sand_typeand so on).BlockPermutation.getAllStates()gives only current values. Deprecated states (color,old_log_type) are also exposed for compatibility. - States are local to the block type. Generating every combination creates permutations that do not exist, so try
BlockPermutation#withStateand skip failures. Internal blocks that are in the palette but not in the metadata: chalkboard, client_request_placeholder_block, deprecated_anvil, deprecated_purpur_block_1/2, end_gateway, glowingobsidian, info_update, info_update2, invisible_bedrock, moving_block, netherreactor, reserved6, stonecutter. - Item data values work in
testfor/givebut block data values do not. Block aux IDs are fixed and item numeric IDs are assigned at runtime. Command autocomplete renumbers numeric state values from 0 (MCPE-236301).
Permutation rules and limits
- Components may overlap between permutations or with the base, but do not repeat the same condition. Permutations can be separate by feature (rotation 4 + texture 2) and need not be a Cartesian product. Conditions can use
&&,||and parentheses, and can see only their own states (not neighbors). - Limits: at most 65,536 permutations per block type (there is also a separate second limit, and vanilla is about 16,000). One add-on can register up to 32,767 blocks including vanilla. There is also a world-wide permutation warning (one add-on 40k, about 93,220). Connecting texture blocks exceed the limit, so map one numeric state to an X,Y grid or use entities.
- States vs separate blocks: one opinion is that there is no performance difference, and another is that separate blocks are better for redstone and lighting. Decide by whether each variant needs its own item. Traits probably count toward the permutation count like states.
Direction traits
"traits": {
"minecraft:placement_direction": { "enabled_states": [ "minecraft:cardinal_direction" ], "y_rotation_offset": 180 },
"minecraft:placement_position": { "enabled_states": [ "minecraft:block_face" ] }
}
Using q.block_state('minecraft:block_face') without the trait gives making use of non-registered block state.
placement_direction(minecraft:cardinal_directionN/E/S/W orminecraft:facing_direction) follows the direction the player looks, furnace style.placement_position(minecraft:block_face,minecraft:vertical_half) follows the clicked face, log/pillar style. Make the model front face north and givey_rotation_offset: 180.y_rotation_offsetis supported only for some hardcodedenabled_states. With corner+cardinal it fails if cardinal is not included (MCPE-240709).- For pillar rotation permutations, depending on
q.block_state('minecraft:block_face'), giveminecraft:transformationrotation west/east[0,0,90], north/south[90,0,0], up/down[0,0,0]. - Placing a
block_facetrait block with/setblockgives the defaultdown(the vanilla item frame is the same). A cardinal block also faces differently than when placed by hand, so specify the state explicitly. Thecardinal_directionorder (NWSE) differs from expectations, so west is not -90/270. - 16-way rotation
minecraft:sixteen_way_rotation/n_way_visual_rotationwas confirmed in the 2026-08-04 stable release. It cannot be used inside permutations, and a permutation that overrides geometry removes it. It does not work with hardcoded full-block models. The bug where the rotation was not visible to remote players/BDS/Realms (MCPE-241952) was reportedly fixed in 26.60.28/29, but reports that it does not work on Realms remain. It does not follow structure rotation (MCPE-243539). - Random rotation: a lily pad style texture gets position-based random rotation with the material instance
"isotropic": true. To randomize per placement, usee.permutationToPlace = e.permutationToPlace.withState("minecraft:cardinal_direction", directions[Math.floor(Math.random()*4)])inbeforeOnPlayerPlace. - Custom directional blocks with state-based rotation rotate wrongly when saved in a structure and rotated. Pipe/connection blocks placed by scripts need their connection state recomputed after loading a structure (unresolved).
Connection and stair traits
minecraft:connectiontrait:enabled_states: ["minecraft:cardinal_connections"]adds the automatically managedminecraft:connection_north/south/east/weststates. It can be used inbone_visibilityor permutations without scripts and is reflected faster than the script method. There are no up/down connections, and it cannot be limited to similar blocks or tags. It connects to vanilla full blocks, custom blocks withoutconnection_rule, and blocks with theminecraft:has_fence_connectionstag under a rule other than "none". Usingy_rotation_offsetbreaks connections with blocks that have no offset. Putting a connection trait or thehas_fence_connectionstag in a permutation crashes the game (MCPE-236302).
"minecraft:geometry": {
"identifier": "geometry.fence",
"bone_visibility": { "north": "q.block_state('minecraft:connection_north')", "centre": "true" }
}
minecraft:corner_and_cardinal_directionis used as an enabled state ofplacement_direction, with 4 directions x 5 corners (none, inner_left, outer_left, inner_right, outer_right) = 20 permutations, and adds aminecraft:cornerstate. Forblocks_to_corner_withgive a list of block IDs or{"tags":"q.any_tag('mytag')"}. There is nominecraft:cornerable_blocktag, so use a custom tag or your own ID. Connecting with vanilla stairs needed the Beta APIs experiment in 26.0, and a non-connecting bug remained in 2026-04. The bug where corner became none next to an inner piece (MCPE-232019) was fixed in 26.10.minecraft:vertical_halfis aplacement_positionenabled state that decides top/bottom of a slab.
5. Multi-block
"traits": { "minecraft:multi_block": { "enabled_states": [ "minecraft:multi_block_part" ], "parts": 2, "direction": "up" } }
(Source: ms-learn multi-blocks, bedrock-wiki multi-blocks)
- Stable version: both vertical multi-block and horizontal multi-block (beds) are stable from 26.50. The 1.26.40 stable release gives a
no parser available for version 1.26.40error. - Requirements and limits:
minecraft:movablemust be defined (immovable or popped, piston movement is not supported).placement_filter,replaceable,random_offset,movable,precipitation_interactionsandminecraft:block_entityare root only (putting them in a permutation givesComponent ... is not valid in multi block permutations). block_entity became valid again around 1.26.50 and one is attached per part. Puttingprecipitation_interactionsin a permutation makes the whole block fail to load from 26.30.25. For direction traits onlycardinal_directionworks (connection, placement_position and n-way are not supported). - Direction: if
placement_directionturns oncardinal_direction, the trait'sdirectionis ignored and it follows the placement direction (includingy_rotation_offset). Only one axis is supported, so make 3D/multi-axis with scripts. - Behavior: placing the base part places the rest. Placing a non-base part with
setblock/fillfails (fixed 2026-03-11). Breaking any part breaks them all, and only the loot of the part broken first drops. To make loot differ per part, put the loot in a permutation conditioned onq.block_state('minecraft:multi_block_part').onBreakfires once andonPlayerBreakdoes not fire. Non-base parts skip the entity collision check on placement. Each part counts as one pending tick. - State changes: from 2026-05 (around 1.26.20), the states of all parts must be changed in the same tick, and changing only part 0 breaks the block. Mojang said that setting one part at a time with scripts/commands was blocked on purpose.
permutationToPlaceinbeforeOnPlayerPlaceupdates all parts. - Scripts:
block.setType(typeId)places the default permutation (the first part) and creates the whole thing.setPermutation()places only one part, and writing to part 0 creates only a ghost part on the client. To change states, set each part withblock.getParts()(order guaranteed).
part.setPermutation(BlockPermutation.resolve(part.typeId, {
...states,
"minecraft:multi_block_part": part.permutation.getState("minecraft:multi_block_part"),
}));
getParts() returned part 0, then part 1, and this code changed the state of both parts together. Writing part.getState(...) gives TypeError: not a function because Block has no getState {measured} (record).
In a random tick, read minecraft:multi_block_part and skip if it is not 0. The vanilla door is a legacy method that changes only the upper state.
- Block entities and inventory: each part gets a separate block entity and they are not synced (the vanilla double chest is also 2 linked entities). There is no way to detect inventory changes, so there is a duplication risk when two players use different parts.
- Other bugs: a part with its selection box turned off is treated as 16x16x16 in outline calculation. Running
fill ... replace bed[...]in chat with a custom multi-block can crash. A multi-block that defines geometry/materials only in permutations gives an error if the root hasminecraft:flower_pottable(MCPE-237910). Mojang said it intends multi-block + voxel shape to be used for outlines beyond block bounds.
6. Block entities, containers, dynamic properties
minecraft:block_entityarrived in Preview 26.30.28. Experimental in 26.40, and in 26.50 the block entity itself (dynamic property storage) is no longer experimental whilecontainer {slot_count}is still experimental in 2026-11 (it needs Upcoming Creator Features and format 1.26.20 or higher, and in a world created without the toggle it disappears from creative). The UI is barrel style only (modifiable with JSON UI), with no chest rendering and no hopper suction. The container title istitleinside container (a localization key or a plain string for testing).- What cannot be done: falling blocks (the hardcoded
minecraft:falling_blockentity) and animations. A chest opening animation is imitated by changing geometry in steps with states and permutations. A multi-block sharing one block entity also does not work yet. - Bugs: changing container items with scripts after a redstone update closes the open UI (26.50). A snowlogged container block entity drops its items.
- Giving
dynamic_properties:trueto the loot functioncarry_over_block_entity_datapasses block dynamic properties to the item (26.40). - Storage methods before block entities: keep per-block data in world or entity dynamic properties. Entity-based storage lags with many blocks and disappears with
/kill @e.
container measurements (Windows 1.26.65)
Tested on a format 1.26.20 block with minecraft:geometry.full_block, minecraft:block_entity { "dynamic_properties": true, "container": { "slot_count": 3 } } and one custom component, in a world with Upcoming Creator Features on. {measured} (Source: repo-guide)
| What | Result |
|---|---|
| Using the block | A container UI opens. 3 slots, no title (no title was given) |
Custom component onPlayerInteract on the same use | Did not fire (1 trial) |
/replaceitem block <position> slot.container <slot> <item> | Works |
Script minecraft:inventory component | Sees the slots (size 3, the inserted items and counts) |
| Are inserted items drawn on the block | No. The block looks the same |
Breaking the block (/setblock ... air destroy) | The contents and the block item drop |
Custom blocks like item frames and shelves
- Item frames and shelves hold the item in their own block entity, and a dedicated renderer tied in engine code to that block entity type draws it. The fields of
minecraft:block_entityare onlydynamic_propertiesandcontainer(slot_count), and no field chooses the block entity type or renderer.containerhas an experiment check and cannot be used together withminecraft:crafting_table.{code}(Android 1.26.52.3 binary) - So up to 1.26.6x a custom block cannot be made to draw the items inside it like an item frame or shelf with JSON alone.
containeronly stores items and opens a UI (as measured above). The ways left are using the vanilla item frames (minecraft:frame,glow_frame) and shelves as they are (the frame shape cannot be changed), or having an invisible entity inside the block hold the item (the display entity in Attachables and item rendering). - A custom server can do the shelf. When the block definition the server sends (StartGame) has
{"type": "shelf_block"}invanilla_block_data.block_archetype, the client builds that block as the vanilla shelf class whatever its namespace, and gives it the shelf block entity and renderer. Sendingid: "Shelf"andItems(3 slots, each withName,Count,Damage,WasPickedUp) as NBT in the chunk drew the items at the custom block in the same layout as a vanilla shelf, and a laterBlockActorDatachanged them. WithBlockActorDataalone and no chunk NBT, nothing was drawn. The same path is open for thesign_block,hanging_sign_blockandwall_sign_blockarchetypes (the sign is measured below). What each of the 28 archetypes changes is in the server page. The archetype list has no item frame, so item frames cannot be done even from a server. Add-on JSON rejectsinternal_vanilla_dataon custom blocks as a schema error, so this path is server only.{measured, code (binary)}(2026-12-04 Windows 1.26.65 decompilation and a Dragonfly test server) - The trap when doing it from a server: the number of block states the client builds from the shelf archetype differed from the number the server registered (the vanilla shelf's 32), so block runtime IDs shifted (air and the floor showed as other blocks). The test avoided it with a name whose hash is the largest, so it comes last in the runtime ID list, and one registered state. The archetype gives no geometry or texture, so a resource pack geometry is needed (without geometry the block is invisible and only the items are drawn).
{measured} - The shelf renderer always loops over 3 slots and takes each slot's position and size from a constant table inside the renderer. It has no item rotation value either. What can change is the 4 directions from the
minecraft:cardinal_directionstate (the first direction when the state is missing) and which item is placed (items such as maps, heads and shields are drawn at other sizes).{code (binary)}(Windows 1.26.65) - The shelf's two states
powered_bitandpowered_shelf_typedescribe a redstone row.powered_bitturns on when the shelf gets a redstone signal. A powered shelf forms a row of up to 3 with powered neighbours facing the same way, andpowered_shelf_typeis 0 alone, 3 left end, 2 middle, 1 right end (as seen from the front). Look: an unpowered shelf has dividers between slots, a powered lone shelf has none, and a 3-2-1 row is drawn as one long frame. Interaction: unpowered, the clicked slot (front face horizontal 0 to 0.3125, to 0.6875, to 1) swaps with the held item; powered, the whole row swaps with the hotbar (right end and lone shelf with hotbar slots 7 to 9, middle with 4 to 6, left end with 1 to 3). Items withminecraft:item_lockare not swapped. Comparator output is 0 to 7, a bit per filled slot, on the front side. Neighbour checks use the names of the 13 vanilla shelves, soshelf_blockarchetype custom shelves can be powered but never form a row with each other.{measured, code (binary)}(2026-12-04 Windows 1.26.65, only the look was measured; the interaction is from code) - A server can do signs too. Sending a
sign_blockarchetype custom block withid: "Sign"andFrontText/BackText(Text,SignTextColorand so on) NBT in the chunk drew the sign board and post with the text, and a laterBlockActorDatachanged the text. The board and post are drawn by the sign renderer together with the text, not by the block geometry, so removing the geometry or making it transparent leaves the board. The archetype fixes the wood type to oak, so it is always drawn with the oak sign texture (textures/entity/sign). Making that texture transparent through a resource pack draws the board and post black (as with item frames), so no way to keep only the text was found. On the black board,SignTextColormust be white (-1) for the text to show. Without geometry an unidentified dark box was drawn in front of the board;full_blockgeometry with analpha_testtransparent texture left only the sign, without that box. When the server sent no direction state, the board faced south.{measured, code (binary)}(2026-12-04 Windows 1.26.65) - An item frame cannot be put on a custom block even from a server. The item frame block entity only exists on the vanilla
minecraft:frameandminecraft:glow_frameblocks; a custom name whoseblock_idis the frame's number, orid: ItemFrameNBT on another block, is not accepted. A server can send a definition namedminecraft:frameagain and the frame class stays, but in a test that sentfull_blockgeometry the shape did not change. The block tessellator draws the frame model as a fixed shape: the border uses the birch planks texture and the back panel theframe/glow_frametexture fromblocks.json. Making both textures transparent with a resource pack does not remove the frame; it draws black. The item is drawn separately by the block entity renderer (Item,ItemRotationas a Float angle, the glow frame fixes light at 15), and the shelf renderer uses the same item drawing function. So to show items frame-style on a custom shape, use theshelf_blockarchetype block above. A vanilla frame with no supporting block falls off.{measured, code (binary)}(2026-12-04 Windows 1.26.65) - Flower pots are the same as item frames. Only the block class of the vanilla
minecraft:flower_pothas the flower pot block entity (type 7), that class is built only by vanilla block registration, and the archetype list has no flower pot. So a custom block cannot be made into a flower pot. A flower pot also holds a block state (PlantBlock), not an item; putting a custom block into the vanilla flower pot is done withminecraft:flower_pottableandminecraft:embedded_visual.{code (binary)}(Windows 1.26.65)
7. Geometry, size, collision/selection boxes
Model size and format
- The size limit is about 30x30x30px including rotation ("1 + 14/16ths" per axis, 14px outside the 16 cube). The error is
Total length of parts for schematic ... greater than 1 + 14/16ths. A model taller than about 30px disappears in the game. Only cubes are allowed, and poly_mesh and locators give ais not included within the unit cubeerror. Larger shapes are made with several blocks, multi-block or entities. Size is checked before the transformation is applied (MCPE-236317). - Fallout of invalid geometry: if one subchunk has a block with invalid geometry, every geometry-based block in that subchunk (including cobwebs) is not rendered (
A block must have baked material data in order to tessellate). The causes are a model that is too large, a texture that is not 16x16 and so on. - Decimals: coordinates are rounded to one decimal place. Fix z-fighting with 7.9 or
inflate. Using a second decimal place causes gaps and render errors. - UV: Bedrock drops faces that have no explicit UV. If it is fine in Blockbench but has holes in game, use per-face UV (
uv,uv_sizeonnorth/south/east/west/up/down) instead of the box UV. Turn off faces that will not be seen. Planes with zero thickness are also supported. Using several PNGs on one model failed.
Vanilla geometry
- What can be used is
minecraft:geometry.full_blockandminecraft:geometry.crossand so on (theminecraft:prefix is required). For cross usealpha_test_single_sidedto avoid flicker. Other vanilla models such as slime, lantern, cauldron and sign must be made by hand. Reusing full_block reduces pack size. - Internals of
minecraft:geometry.cross(extracted from BDS): 2 cubes (origin [-10.2,0,0], size [20.4,16,0], Y axis +-45 degrees, pivot [0,8,0], material instance "cross", format 1.21.60). - Characteristics of full_block: the bottom face is rotated 180 degrees (fixed in format 1.26). It has no named main bone, so culling rules cannot reference a bone and UV lock does not apply. An
opaquefull_block is forced into unit cube culling. Transforming a full_block with transformation breaks culling (MCPE-241209). The only way to cast shadows on neighbors isminecraft:geometry.full_block+opaque(hardcoded).minecraft:embedded_visualis for flower pots only. The bug where full_block faces render wrongly next to snow layers is fixed in the Preview as of 2026-11-15.
bone_visibility
- Written inside the
minecraft:geometryobject as{"identifier": ..., "bone_visibility": {...}}, and values are booleans or Molang. In 1.26.20 and above a raw boolean fails withinvalid string, so use the strings"true"/"false"or 0/1 (MCPE-238524). A key controls only the cubes directly under that bone and ignores nested groups, and adding*to the end of the key includes nested bones. Bone visibility does not accumulate across permutations, so a 6-face block like glow lichen needs all 64 permutations. - Pack size: instead of one geometry per shape, use one geometry per block type with bones for every part, and a per-permutation
bone_visibilitythat turns on only that shape's bones. One file holding 640 connection shape geometries (3,808 cubes, only 43 distinct) was 1,476 KB (64.6% of the main pack); the bone version is 31 KB. Three geometries that differed only in identifier (161 KB) were merged into one shared geometry (45 KB, about 6 KB after minifying). In game the shapes looked the same{measured}(2026-11-09). Why the difference grows in encrypted packs is in Pack delivery, encryption and obfuscation. - Uses: showing flowers in pots, doors/hinges, cake stages, wall torch variants, fence connections. Flower pot example:
"minecraft:material_instances": {
"*": { "texture": "pot", "render_method": "opaque" },
"flower": { "texture": "flower_1", "render_method": "alpha_test_single_sided" }
}
Collision/selection boxes
- Multiple collision boxes:
minecraft:collision_boxaccepts an array of boxes (boxes only, no curved surfaces). They appeared in the 1.21.130 Preview (2025-11) as an Upcoming Creator Features experiment and became stable in 26.0. Stair example:
"minecraft:collision_box": [
{ "origin": [ -8, 0, -8 ], "size": [ 16, 8, 16 ] },
{ "origin": [ -8, 8, 0 ], "size": [ 16, 8, 8 ] }
]
At most 16 boxes are allowed. 17 boxes are refused with collision_box: too many input elements, expected no more than 16 and the block is not registered {measured}.
- In format 1.26.60 a box can also be written with
min/maxinstead oforigin/size:[{"min":[0,0,0],"max":[16,8,16]}]. This form needs Upcoming Creator Features. In a world with it off, the content log showsUpcoming Creator Features experiment is required to use "min"/"max" in "minecraft:collision_box" from version 1.26.60 and after, and in a world with it on, the block registered without error and half-block-height collision worked (a player dropped from above was confirmed to stand half a cell high). Values are, in cell coordinates, (0,0,0) to (16,24,16), inclusive (schema description strings{code}).max [16,24,16]registered and 1.5-cell-high collision worked, while[16,25,16],[16,30,16],[17,16,16],[16,24.5,16]and[16.001,8,16]were refused withinvalid numeric valueandmax: Expected [x, y, z].and the block was not registered. A negative"min": [-1,0,0]or[-8,0,-8]was refused even with the experiment on, withmin: Expected [x, y, z].. A refused block shows up asBlock type ... not found. Fractional values are accepted and applied to physics (withmin [0.5,0,0.5]andmax [15.5,8.5,15.5]the player stood at 8.5/16 height). The boxes must be written as an array (in format 1.26.60 a single object givesexpected an array, while in format 1.26.20 a single object also registered). Theorigin/sizeform registered without the experiment. The game crashed a few times on first entering a box probe world, but entered fine after a restart, and isolating the fractional blocks did not reproduce it. The cause is unknown and there is no evidence that the box values cause it{measured}. - The area covered by all collision boxes is, in cell coordinates, (0,0,0) to (16,24,16). In terms of
origin, x and z run from -8 to 8 and y from 0 to 24, so a height of 24 (8px upward) is allowed.size [16,24,16]registered, while[16,25,16],[16,30,16],[16,24.5,16], a size with x or z of 17,origin [-9,0,-8]andorigin [-8,-1,-8]were refused. Outside the area the block is refused withInvalid box bounds; the code reading compares the area covering all boxes once (a sum of several boxes exceeding it was not measured). A negative size is flipped and normalized without an error{measured, code}.collision_box: []is not "no collision" but full collision. A transformation can push the box out of block space (MCPE-236325). In the 27.0.20 preview with the voxel shapes experiment on,minecraft:transformationno longer pushesminecraft:collision_boxout of bounds: a box that overflows partly is clamped with a warning, and one that overflows fully falls back to the default shape. The box bounds error text says boxes must lie within (-14, -14, -14) to (30, 30, 30). Reports split on whether this also applies to blocks with older format versions (one says it does; another says only inlinemin/maxboxes on format 1.26.70 blocks that are pushed fully out fall back to a unit cube collision, while format 1.26.60 blocks are unaffected){conflict}. - There is only one selection box and it accepts only an
origin/sizeobject. An array is refused withselection_box: expected an object, andmin/maxis refused even with Upcoming Creator Features on, with an error that the member is not present in the schema (this member was found in the input, but is not present in the Schema). The range is (-8,0,-8) to (8,16,8) fororiginandorigin + size, so the height limit is 16.size [16,24,16],[16,25,16],[16,17,16]and[16,16.5,16]did not register. The engine does not clip an out-of-range box. A fractional size (size [8.5,8,8]) and a negative size register, and a negative size is normalized{measured}. Projectiles use the selection box, so do not turn offselection_boxif arrows should hit. Conversely, having only collision makes a "barrier that projectiles pass through". - Step detection: if the collision height is about 3.2px (0.2 block) or less, it is a "thin" block that cannot be stood on and
onStepOn/onEntityFallOndo not fire (measured about 3.25px, 4px recommended in practice). Another report says about 0.4 block or more is needed{conflict}. For spike blocks, put the spike on a 4px floor cube, or useonEntityFallOn(gives the fall distance, does not fire when walking) or scripts. - Entities spawn on blocks with full collision. There is no API that tells whether a collision box is full.
- One-way collision that changes with the entity and situation, like scaffolding or powder snow, cannot be given to a custom block through data. Java powder snow gives a 16x14.4x16 box to an entity falling more than 2.5 blocks, a 16x16x16 box to an entity at 0.99999 above the base that is not sneaking and can stand on powder snow (leather boots, cold-biome mobs, falling blocks), and no collision otherwise. Scripts have no client prediction and the box differs per entity, so emulating it with scripts is impractical
{single report}. - Tools: Kaioga's Collision Box Editor (web), the Blockbench plugin block_multi_collisions (auto-generation, ignores cube rotation).
transformation
minecraft:transformationspecifies rotation/scale/translation, and scale is around the block center. Collision/selection box scale applies only when that component is specified explicitly (MCPE-238027). A block rotation cannot exclude specific bones and there is only UV lock.uv_lockrotates square faces around the face center, not the block center. Snowlogging ignores transformation (MCPE-240710).- There are five coordinate systems: model/collision/selection (model units, bottom center, x+ is west), leashable offset (x+ is east), transformation translation/pivot (block units, center), voxel shape (model units, bottom north-west corner), item_display_transforms. Voxel shapes have a limit of 4500 unique ones after deduplication on world load.
- Collision and selection boxes that a server sends in block properties are also read in the geometry coordinate system, whose x axis is opposite to the world's. For shapes that are asymmetric east to west (east/west variants), send the boxes mirrored in x so they match the drawn model
{measured}(2026-11-05).
Item display
minecraft:item_visualchanges the hand/inventory model with{geometry, material_instances}(nominecraft:prefix inside).carried_texturesinblocks.jsondoes not work. If the item looks upside down because the defaultblock_faceis down, define item_visual to fix it.item_display_transformsneeds block geometry format 1.21.110 or higher. The defaults for contexts left out are in the table in Attachables and item rendering (on 1.26.65 third person is translation [0,2.5,0] rotation [70,45,0] scale 0.375). To match the vanilla slab usethirdperson_righthand.translation [0,2.9,1.5]andfirstperson_righthand [0,1.58,0]. A wrong property name (translate) crashes the game.fit_to_frame:falseis forced to center in icons (MCPE-240720).- Block as an item: put
minecraft:block_placer {block, replace_block_item:true}on an item with the same identifier as the block. It must be the same ID to be pick-blockable. A flat 2D icon,max_stack_size, head-wearingminecraft:wearableandminecraft:glintcan be used. If you omit the icon it is rendered as a block. A custom block cannot exist without a block item. - Side effects of item overrides: it inherits block tags (MCPE-235805). Block-oriented AI such as
move_to_blockandlay_eggfails (MCPE-240457). Fast bridging is turned off (MCPE-234686).aligned_placementofminecraft:block_placeraffects theblock_facestate.
8. Textures, material_instances, rendering
material_instances
- A format 1.26.20 block with
minecraft:material_instancesbut nominecraft:geometryis not registered (whether the texture is a pack texture orstone, and also withrender_method: opaque). Nothing is left in the content log (verbose), and/givegives a syntax error. Addingminecraft:geometry.full_blockmakes it register. Blocks withoutmaterial_instances(onlydisplay_name, onlyblock_entity, only a custom component) register.{measured}(Windows 1.26.65, Source: repo-guide) - A block that uses geometry must use
minecraft:material_instances. Keys are face names (up,down,northand so on, not top/bottom,*is the default, and custom face names from Blockbench also work). The fields of each instance aretexture(nottextures),render_method,face_dimming(bool),ambient_occlusion(a number in 1.26.20 and above,0.55for sand-style partial darkening),tint_methodandisotropic. The texture name is a key ofterrain_texture.json(not a path). Vanilla textures must also be defined in terrain_texture, and a short name alone is not enough. - Give short names in
terrain_texture.jsona namespace so they do not clash with other resource packs ("namespace:scorched_netherrack"instead of"scorched_netherrack"). - Instances of one block cannot mix
render_method(MaterialInstances can't mix and match). A block mixing opaque and translucent is thought to be impossible, and for a beacon style set both to blend. - Choosing a render method:
alpha_test_to_opaquefixes disappearing at a distance and is used for leaves.alpha_testis for cutouts.blendhas ordering problems, so put translucent cubes last or usealpha_test_single_sided/double_sided. With complex geometry, blend is drawn over blocks in front. Adouble_sidedblock disappears at half the render distance. Opaque with transparent pixels looks black. For cobweb/outline style usealpha_test_single_sided. Add-on maker apps ignoreblend/alpha_test, so write the JSON by hand.render_methodis a material instance field, not in blocks.json. - A material_instances entry has no
emissivekey. Dimming by face direction is set byface_dimmingand shading byambient_occlusion(vanilla JSON schemaMaterial Instance, format 1.26.20){vanilla}. True glow works only in Vibrant Visuals, and a glowing texture without VV/RTX is impossible, so make an illusion with a flipbook. - Tint:
tint_method: grasstints every non-alpha pixel (with vanilla grass_side even the dirt part).alpha_masked_tintneeds 1.21.120 or higher and the toggle, and had a problem tinting transparent pixels until 26.0. For transparent blocks usetint_color, notoverlay_color. - Texture size: it need not be 16x16, but normal cube UVs assume 16, so other sizes need custom geometry. Textures must be square. 8x8 is stretched to 16x16. A 64x64 whole-model atlas makes huge cracks and break particles, so use several 16x16 per-face textures. For the shrinking to 8x8 after editing the RP, there is a workaround of copying the RP, modifying the copy and overwriting the original, and do not keep
contents.json.
Shading, AO, shadows
- Custom block AO has the problem that flowers/crops with a model inside a neighbor look dark or black.
ambient_occlusion: falsewas fixed to turn it off completely in 26.10. Only opaque full blocks cast AO. The darker side of sand slabs looks like a game bug (0.55 per face). - A fully bright block (emits no light and has no shading) is made with
face_dimmingfalse +ambient_occlusion0. If too bright, adjustminecraft:light_dampening. AO/dimming can be toggled with permutations. - For black faces against walls, add a plane, move the face 0.1 forward or use custom culling. For a head shadow, put one more top-UV plane 0.125 above the floor.
- With
light_dampeningof 1 or higher mobs below do not burn in sunlight, and at 15 light bleeding is also blocked. With high dampening the grass below turns into dirt and path blocks revert. - Vibrant Visuals: in 26.0 some custom blocks rendered black until the hotfix. Texture layering breaks only in VV. VV turns off face dimming for entities but not for blocks. The automatic attachable of a held block ignores MER (MCPE-237517). The combination of
blendand reflective MER is unresolved. PBR/MER works with*.texture_set.json+_merand the pack capability "pbr", and it fails if.pngis used in the terrain_texture path.
Texture variations, flipbooks, break particles
- Weighted variations are written in
terrain_texture.json. It needs block (material) format 1.21.110 or higher. Vanilla dirt usesflattened_dirt, stoneflattened_stone, and sand theflattened_sand/red_sandkeys. A custom block can reference only the first entry of a vanilla texture array. Break particles do not follow variations, and when buried in snow it returns to the first variation.
{ "textures": { "variations": [ { "path": "textures/blocks/x", "weight": 50 }, { "path": "textures/blocks/x2", "weight": 50 } ] } }
- A flipbook uses
flipbook_textures.jsonentries (flipbook_texture,atlas_tile,ticks_per_frame) and registers the atlas_tile in terrain_texture as well. Because of mipmapping it falls back to the terrain_texture texture at a distance, so if it is not defined there it becomes a black/purple texture. Thin stripes also blur from mipmapping, so use a separate thin block. minecraft:destruction_particles {texture}(format 1.21.90 or higher) sets the texture when breaking. Break particles use a single texture even on a block that picks a random texture through terrain_texturevariations(vanilla cocoa also gives green particles at every stage). For particles per variant, set a block state per variant from script and give each permutation its own texture andminecraft:destruction_particles, or split the block.{single report}- For blocks that use data-driven tessellation only
soundis valid in blocks.json. Puttingtextureson a geometry block gives atrying to override the Geometry component with blocks.json settingserror. blocks.json maps vanilla blocks to terrain names. - Hardcoded vanilla rendering: chests, beds and banners are rendered as block entities. The copper golem statue texture is hardcoded. Beds have no color state (stored in the block entity, all are
minecraft:bed).
9. Culling rules
Put minecraft:block_culling_rules (format 1.21.80) in an RP block_culling/ file and reference it from minecraft:geometry.
"minecraft:geometry": {
"identifier": "geometry.x",
"culling": "namespace:culling.example",
"culling_layer": "minecraft:culling_layer.leaves"
}
- The rule fields are
cull_against_full_and_opaque,condition(same_block,same_culling_layer) andgeometry_part.geometry_part.facemust be a single string, and an array givesFailed to parse block culling file. - A rule only removes parts of the model and cannot turn them on, and checks a neighbor in only one direction. There is one rule per face but also one per bone, so to remove top and bottom together, split the bone. A culling rule cannot be used on full_block geometry.
cull_against_full_and_opaque:falseis ignored (MCPE-240757). If permutations have different transformations, the culling layer breaks (MCPE-234754). - Connecting textures are possible only with glass-style model culling or a mod. A connection table can be made with per-bone culling
"condition": "same_block"andcull_against_full_and_opaque: false, but it fails at T intersections. Otherwise set per-leg states with onPlace/onBreak scripts. - Voxel shapes in the BP
shapesfolder are a new feature and are currently used only for culling faces hidden by other blocks. Because of regex validation custom blocks cannot use vanilla voxel shapes (MCPE-240758). Vanilla block shape IDs include sculk_sensor 125, azalea/flowering_azalea 132, glow_frame 133 and glow_lichen 134. If leaves become see-through, turn off the voxel shapes experiment.
10. Sound
sound in blocks.json is still valid. default is a stone sound with only a different pitch. A blocks.json sound changes every block of that name, and to change it globally replace the audio file of the same name. End moss sounds are moss_block and moss_carpet, and the wood placement sound is use.wood. The gold block uses the same "metal" sound as stone, and iron/copper have their own IDs. No placement sound plays when placing in water (vanilla is the same). The instrument sound component was added in 1.26.30.
11. Mining, tools, loot tables
Mining speed
- Putting
"tag:minecraft:is_pickaxe_item_destructible": {}(or axe/shovel/hoe) as a component outsidedestructible_by_miningmakes vanilla tools mine fast and applies Efficiency automatically. The tag is adjusted in proportion to hardness, so for axestag:minecraft:is_axe_item_destructibleis better thanitem_specific_speeds, and the<material>_tiertag is used only to lock tiers. A custom pickaxe must check this tag in the digger component. item_specific_speedsis an array of{item, destroy_speed}inminecraft:destructible_by_mining, with item written like{"tags": "q.all_tags('minecraft:is_pickaxe','minecraft:stone_tier')"}. Tier tags such asminecraft:wooden_tierexist butminecraft:is_wooden_pickaxedoes not. Vanilla pickaxe tags areminecraft:digger,is_pickaxe,is_tooland<tier>_tier. Below format 1.21.30 it fails without a warning.- Matching vanilla speed:
seconds_to_destroyis not real seconds, and by default the real time is 1.5 times the value. Vanilla is 3.33 times slower when mining with the wrong tool, but custom blocks are not, so multiply it yourself. The method isseconds_to_destroy= vanilla hardness x 3.33 (bare hand) anditem_specific_speeds[].destroy_speed= hardness + pickaxe tag. The wiki penalty formula is right tool hardness x 1.5 and wrong tool x 5, but Bedrock always applies 1.5, so wrong tool = H x 5/1.5 and right tool = H. - Tags that do not work: tier destroy tags (
minecraft:iron_tier_destructible) and sword/mace tags (is_sword_item_destructible) have no effect on drops and penalties of custom blocks (MCPE-189586).minecraft:is_shears_item_destructiblewas fixed around 2026-08. There is no "drop only with the right tool" option. Block tags are for mining speed, item tags are for loot conditions/recipes, and only the loot table decides whether it drops. minecraft:diggerlimits (as of 2026-02): a custom item with digger is always treated as the right tool for vanilla blocks and drops regardless of tier. It does not reduce durability and supports only integer speeds, and there is nosword_efficientblock tag or custom tier. The first-person tool animation is also broken.- There is no API to judge whether a block can be broken, so keep your own list. Vanilla unbreakable blocks: command_block, chain_command_block, repeating_command_block, end_portal_frame, bedrock, structure_block, barrier, allow/deny.
Explosions
For explosion_resistance of minecraft:destructible_by_explosion use the blast resistance from minecraft.wiki. Negative values are not accepted. Explosion destruction resistance is about 5 times weaker than the vanilla value, so there is advice to give the expected value x5 with a comment. Even with false the Wither breaks blocks. Raise the resistance very high or cancel the destruction with a custom component.
Loot tables
- Specify with
"minecraft:loot": "loot_tables/...". With a custom table the block does not drop itself unless you list it explicitly, and to drop both an item and the block use two pools. A loot table inside a permutation also works. Make data value drops with theset_datafunction andcount {min,max}. match_toolgives item tags (for example["minecraft:is_shears"]) tominecraft:match_tool_filter_all/any/none. Without"count": 1an empty hand matches too. For tier-only drops list the allowed pickaxes in theitemslist. Since 26.30 (user report), the "bare hand" condition can no longer be expressed withmatch_tool_filter_none, so use scripts. A Count 1 drop ignores explosions, and pistons or loss of support can drop both pools, so useonBreakfor exact control.- Silk Touch is hardcoded, ignores loot tables, and cannot be blocked even with an empty loot table. Workarounds are canceling
world.beforeEvents.playerBreakBlockand insystem.rundoingblock.setType("minecraft:air"), playing the sound, removing the default drops and creating the item after checking Silk Touch, or replacing with air inonBreak. The vanilla Fortune formula cannot be reproduced with loot tables, so use scripts. - The loot function
explosion_decayis an old function that decides whether a block broken by an explosion drops the full stack (first used by concrete and wool stairs and slabs). Dropping nothing when mined with the wrong tool is still hardcoded even afterrequires_correct_tool_for_dropswas removed frominternal_vanilla_data, and custom blocks cannot use it.{single report} - Ore XP cannot be given by loot, so spawn
minecraft:xp_orbinonPlayerBreakif it is not Silk Touch. The consensus is items by loot table and only XP by script. In scripts you can read block + tool loot withgetLootTableManager(). - Vanilla block drops cannot be changed except for the new "data-driven" vanilla blocks of 26.50. Redefining even a data-driven block under its
minecraft:identifier in a behavior pack was rejected withstring has invalid namespace (minecraft){measured}(record). The only way is deleting the drop and generating it with scripts. The dropped item texture does not change per state, so a separate item is needed, and for a block like a leaf litter pile a loot table per state is easier. - To keep achievements even with a behavior pack, put
"metadata": {"product_type": "addon"}in the manifest.
12. Placement, support, liquids
placement_filterformat:{"conditions":[{"allowed_faces":["up"],"block_filter":["minecraft:glass",{"tags":"q.any_tag('dirt')"}]}]}. The block filter list is limited to 64. There is no general "solid/non-solid" check or tag that requires full support, and you cannot require all conditions at once.- Breaking on loss of support is unstable. It works only when blocks are listed concretely in the filter (glass types are not caught by tags), and with cardinal+tag it stays if only one side is valid. With only
allowed_facesand noblock_filter, it only blocks placement on other faces. Client prediction always uses the default permutation/block_face="down". The filter ignores rotation (MCPE-236323). To make dependent blocks (doors, supports) break exactly along, delete neighbors in the destroy event. minecraft:supportis{"shape": "fence"|"stair"}, decides only what can attach to the block and is unrelated to collision. It blocks torches, levers, buttons and redstone dust from attaching to a face. Ifstairhas no cardinal_direction/vertical_half, no face counts as full. A fence blocks the sides and allows only the top. It cannot be used in permutations. On a custom fence{shape:"fence"}breaks its own connections. The vanilla face support types are none, center, edges and both.- For a block such as a custom flower that leaf litter and similar blocks must not attach to or be placed on, give it
minecraft:support {shape:"stair"}without the vertical_half and cardinal_direction traits. It then behaves like a bottom slab and blocks side attachment and top placement.{single report} minecraft:connection_rulewent from the 1.21.130 beta experiment to stable in 26.0 and needs format 1.26.0 or higher. It decides what connects to this block.accepts_connections_fromis"none"(blocks fence/wall/pane/bars connections and also blocks its own type),"only_fences"(wooden fences + only customs that have the trait/tag), or"all"(all fences, walls, panes, bars, customs). There is no "same block" option, so connecting to itself needs scripts or culling. For a rotated block put the direction after transformation inenabled_directions(for example"enabled_directions":["north"]for rotation [0,180,0]). Connections ignore rotation (MCPE-235806). For a custom fence to connect to the vanilla nether brick fence it needs theminecraft:has_fence_connectionstag.tag:one_way_collidablestops pushing out a player inside the block.
Liquids and snow
minecraft:liquid_detectiondecides waterlogging and breaking in water. The only liquid kind is water.on_liquid_touchesis"blocking","popped"or"no_reaction".stops_liquid_flowing_from_directionblocks water flow from a specific direction. It ignores transformation rotation (MCPE-234654) and has a flow bug (MCPE-234648).
"minecraft:liquid_detection": {
"detection_rules": [ { "can_contain_liquid": true, "liquid_type": "water", "on_liquid_touches": "no_reaction" } ]
}
use_liquid_clippingis a known bug that has never worked (MCPE-236319).minecraft:liquid_clippedis an item component, and since 26.10, if true on a block placer item it is placed only on water (lily pad style). A seagrass style block needs a tick custom component that checksisWaterlogged. Custom fluids, water/powder snow fog and custom cauldron liquids are impossible.- Snowlogging:
"minecraft:precipitation_interactions": {"precipitation_behavior": "snowlogging"}(the schema name issnow_log_no_collision). It must have no collision and was experimental until 1.26.30. To avoid being buried like flowers in snow, usenone. When buried in snow, containers drop their items and texture variations return to the first value. A custom flower with precipitation behavior snowlogging showed only the first of itsterrain_texture.jsontexture variations when placed by a feature, and all three withnone(looks like a bug but unconfirmed; splitting the variations with permutations was suggested). The snow layer on custom blocks cannot be blocked in worldgen. detection_rulesis an array, but the 1.26.20 schema supports only water, so minItems/maxItems is 1. Lava logging is said to be planned{unverified}. Snowlogging is done withminecraft:precipitation_interactions, notliquid_detection.
13. Redstone
minecraft:redstone_producerreplaces the "block swap + redstone block below" hack used for buttons. It gives power (0 or 15) per permutation.strongly_powered_faceis a single direction (a string) and a warning appears if omitted. To make redstone dust connect to the block, useconnected_faces. Withtransform_relative: truefaces are relative to the block itself. From 1.26.20 it must also be in the basecomponentsto be placed in a permutation. The same block cannot be both a producer and a consumer in its main components.
"minecraft:transformation": { "rotation": [ 0, 180, 0 ] },
"minecraft:redstone_producer": { "power": 15, "connected_faces": [ "east", "south" ], "strongly_powered_face": "east", "transform_relative": true }
- producer bugs: the output direction does not update when the permutation changes (MCPE-242205), and it does not face adjacent dust correctly (MCPE-242204).
minecraft:redstone_consumerhasmin_powerandpropagates_power, is used together with format 1.26.0 or higher and theonRedstoneUpdate(e.powerLevel) custom component, and is cheaper than a per-tick check. Without turning onpropagates_powerit does not conduct even with full geometry. For side dust to connect,redstone_conductivity.redstone_conductoris needed. A consumer has no direction so a repeater cannot be made. A block that is also a consumer cannot give comparator output.onRedstoneUpdatealso fires on first placement and chunk load, so toggle blocks such as doors/trapdoors need a separate power state to detect a change. The betafirstUpdateboolean filters the initial load event. Do not use onTick for redstone behavior.- Lit/unlit ore changes light_emission and texture with a
pro:litstate and aquery.block_state('pro:lit') == truepermutation, and reverts with random tick or tick.
14. Other components
minecraft:friction{conflict}: there is a report that the default is 0.4. Reports split on the direction of the value (one says higher is more slippery, another says lower means more friction). One value changes two internal things together, so a soul sand style block is impossible. If you want the default, omit it.- The value of
minecraft:flammableis an object (catch_chance_modifier,destroy_chance_modifier,lava_flammable).lava_flammableworks in format 1.26.20 or higher. The default is"never"(MCPE-240718, intended behavior). Withdestroy_chance_modifier: 0the block is not removed while burning, so it burns forever{measured}(record). Lava immunity (lava_flammable: "never") was seen once without a control. Fire and soul fire are hardcoded. - The experimental
minecraft:climbablecomponent takes an optionalspeed_modifierfield in the 27.0.20 preview. The changelog says the field will be removed in an upcoming preview. A Mojang developer explained in chat that it was removed over photosensitivity concerns: the camera fix used for ladders and vines does not apply to climbables the player walks into, such as scaffolding. Speeds slower than the base may be allowed again, but faster speeds are doubtful{single report}. The script climbable component hasspeedModifier. minecraft:replaceableaccepts only{}and makes a block replaceable like grass.minecraft:crafting_tablegives a custom crafting UI (there is no furnace component).minecraft:map_colorspecifies the block map color (the map color of vanilla blocks cannot be changed).BlockMapColorComponentdoes not work on vanilla blocks (MCPE-240722).minecraft:flower_pottable+minecraft:embedded_visualneed format 1.21.124 or higher. Even if every permutation has geometry + material_instances, it must also be in the root separately (MCPE-237910), and from 1.26.20 it is banned in permutations.minecraft:chest_obstructionapplies to chests, ender chests, trapped chests and copper chests and not to shulkers. The"shape"mode uses the collision box and fails if it overlaps origin [-7,0,-7] size [14,8,14].- Tags: below format 1.26.20, block tags are written as
"tag:ns:name": {}components, and from format 1.26.20 the"minecraft:tags": ["ns:tag"]array is used (atag:key is a schema error). On 1.26.65 a format 1.26.50 block loaded only the array and a format 1.21.90 block loaded onlytag:components; with the other form the block failed to register at all{measured}(record).query.block_neighbor_has_any_tag/block_has_any_tagcan no longer be used. - Mob spawning: mobs did not spawn on custom full blocks of an old format, but this was fixed in format 1.21.90 or higher (one user needed 1.26.0). The block must be solid/opaque. There is a report that entities do not spawn if a custom block is used as the biome
top_material. - A trial spawner spawns only when natural mob spawning rules are on. A workaround is to block natural hostile mob spawning with BP spawn_rules (format 1.8.0
minecraft:spawns_on_block_filter: ["minecraft:deny"]or weight 0). - Component ordering (ciosciaa's suggestion): METADATA (display name, loot, transformation, random offset, tags), then PRESENTATION (geometry, material instances, item visuals, embedded visuals, destruction particles, map color), PHYSICS (selection/collision box, friction, light dampening/emission, precipitation, destructible by mining/explosion, liquid detection, flammable, movable), RELATIONS (placement filter, replaceable, support, connection rule), FEATURES (redstone, crafting table, leashable, flower pottable) and EVENTS (tick, fall-on).
15. Patterns made with blocks
- Doors: in
onPlayerInteract(event, definition)toggle a boolean state withpermutation.withStateand play the sound withdimension.playSound(sound, block.center()). A parameter example is"ns:door": {"block_state":"ns:open_bit","enable_sound":"open.wooden_door","disable_sound":"close.wooden_door"}. Open/hinge are handled withbone_visibilityMolang ("door_open": "q.block_state('ns:open_bit') && !q.block_state('ns:door_hinge_bit')"). A 2-tall door uses multi-block. Define the geometry once in the base. Combine block and item withblock_placer+replace_block_itemand use theminecraft:is_axe_item_destructibletag. - A trapdoor does
block.permutation.withState("ns:open", !isOpen)inonPlayerInteract({block, dimension})and playsopen.wooden_trapdoor/close.wooden_trapdooratblock.center(). A pressure plate toggles a boolean withonStepOn/onStepOff, but a thin plate is hard because of the height constraint. - A slab switches one full-block geometry with two bones using
vertical_halfand adds a double state. To replicate vanilla slab behavior useminecraft:support {shape:"stair"}+minecraft:vertical_half(without cardinal/facing traits). support cannot be in permutations, so keep the double slab as a separate block file. Stacking needs scripts. Method 1: checkminecraft:vertical_half,blockFaceand the held item in thens:is_double_slabstate andbeforeEvents.playerInteractWithBlock, then afterevent.cancel = truedowithState(state, true)insystem.run. Method 2: make the item not place itself with"minecraft:block_placer": {"aligned_placement": true, "block": "...", "replace_block_item": true, "use_on": [{"tags": "q.any_tag('this_tag_should_not_be_used_on_any_block')"}]}and let an item custom component handle placement and merging. Method 3: in the item componentonUseOn, look atusedOnBlockPermutation,blockFaceandfaceLocation.yand place a half in the adjacent cell (faceLocation.yis flipped when y is 0 or below, so MCPE-236442 needs correction). After 26.20 a ghost block shows when placing a double slab. - Stairs: the 26.0 stable traits (
placement_direction+vertical_half+corner_and_cardinal_direction) combine into 40 permutations. UV lock changes only the UV mapping and does not work properly on rotated stairs. Collision uses two multi boxes and the selection box stays a full cube. The stair self-cornering bug is MCPE-234801. - Fences: a collision width of exactly 16 gives a water glitch, so use 15.999. A fence gate needs a custom component, and fences also connect to the front and back of the gate. In the wall template
sticky:"same"blocks piston movement so use "none", and panes must be treated as attachable to walls. The upper part of a wall depends on the connections and the wall above, so 6 boolean states are needed. A custom pane was not possible natively on stable releases before 1.26 and needs scripts (100-300 lines). Vanilla wall states (165 wall shapes) are not exposed. - Crops and vines: grow with
minecraft:tick(or the cheaperonRandomTick) +permutation.withState(state, value+1), and handle the fully grown stage with a permutation condition component. If farmland is below, give slow_falling to prevent trampling. For vines,onRandomTickturns the tip into a body and places a new tip below. Bone meal doescancel = trueinplayerInteractWithBlockand is handled withsystem.run, and survival consumption doesstack.amount--; slot.setItem(stack)withgetEquipmentSlot(EquipmentSlot.Mainhand)and skips inGameMode.Creative. Vanilla plants cannot be placed on custom blocks, and sugar cane style support did not work with the sand tag. - Saplings: features are placed on top of saplings, so the sapling must be in the feature's
may_replaceor erased first. Usedimension.placeFeature. - Stripping logs: if there is an axe in the main hand, do
block.setType(stripped)inonPlayerInteract, and reduce durability withitem.getComponent("minecraft:durability").damage++and thenslot.setItem(item). Replacing a block after a delay usessystem.runTimeout, and a 2-tall block places the upper block withpermutationToPlaceinbeforeOnPlayerPlaceand copiesminecraft:cardinal_direction. - A bouncy block does
applyImpulsefrom theonEntityFallOnfall distance, and fall damage is canceled in before entity hurt by checking the cause fall and the block below. Cactus damage usessystem.runIntervalinstead of per-block ticks. Fire detection is done with a tick component that checks forminecraft:firenearby. A portal is made as a normal block with custom geometry, collision, an animated texture and an axis state. - Structure void style blocks (a transparent block visible only when held):
minecraft:geometry.full_block,minecraft:collision_box: false,"*": {texture:"invisible", render_method:"blend"},minecraft:selection_box: true,minecraft:tickinterval [1,1], and an onTick that emitsminecraft:shulker_bulletparticles when the player holds the item (format 1.21.90). Withplayer.spawnParticleonly that player sees it. Barrier visibility is hardcoded. - Summoning entities from blocks: have a
completeboolean state, and the tick of the complete=false permutation summons the entity and then changes complete to true. Dynamic lighting all places or moves alight_blockat the player position. - Updating multi-block structures: walk the neighbors with a BFS queue and a visited Set keyed by
x,y,z, comparing typeId andminecraft:cardinal_direction(recursion without visited loops forever). ABlockobject is created anew on every access, so using position + permutation can be faster. To break blocks from scripts use/setblock ... destroywith runCommand. - The template collection Kaioga's Block Templates is about 80 vanilla block recreations (BP+RP pairs and .mcaddon, with comments and no experimental toggles) and was updated to 1.26.50. It includes cactus, cake, vines, ladder, walls, snow layers, ore, doors and slime blocks.
16. What blocks cannot do and entity alternatives
- Impossible (replace with entities or scripts): falling/gravity blocks (a custom falling entity with the same texture), animation controllers and continuous animation, chests/containers (before 26.50 block_entity), signs/text, custom fluids, barrier visibility, end gateway effect, blocks visible through walls, non-solid blocks that cannot be attached, blocking mob pathing (decided by the entity-side
behavior.avoid_block), setting vanilla map colors, modifying/replacing vanilla blocks, dispenser detection, XP drops from blocks (scripts needed), neighbor change events in the 26.60 stable API (onNeighborChangedis in the beta API and on the 27.0.20 preview, see Hooks). - Entity alternative patterns: interactive furniture, item displays, storage drawers and pedestals are made with invisible entities (summoned on placement, removed on destruction, collision from entity components). Inventory block = inventory entity, and
player.openInventorydoes not exist. An entity chest can despawn on close and save its inventory with scripts, but many entities cause lag. To protect against/kill @e, give minimum health 1. Needing one more click on a furniture entity is because the hitbox is small, so enlarge the hitbox. The detailed entity-side rules are in section 16 of Entities. - Custom heads are 16-direction and wearable. The charged creeper drop is hardcoded, and only the wither skeleton loot is data-driven. Block geometry has no Molang, so there are only 4 head bones.
- What custom wood sets lack (2026-02): sign text, double slab pick block, shelf item display/comparator, block sounds for sound blocks, lava flammability (added later in 1.26.20).
17. Case study: a block texture that moves only while active (a Dragonfly-based server)
A way to show a moving texture only while a machine is running (Source: private research). Block texture animation is done with textures/flipbook_textures.json of the resource pack. The image is a vertical strip of width 16 and height 16 x the number of frames, and one entry animates one atlas tile (a key of terrain_texture.json).
[
{
"flipbook_texture": "textures/blocks/harvester_side_on",
"atlas_tile": "custom_harvester_side_on",
"ticks_per_frame": 2,
"blend_frames": false
}
]
ticks_per_frameis ticks per frame (20 ticks = 1 second), andframes(an array of frame order) can give the order and repetition directly.blend_framesmixes between frames to smooth it (on by default,falsefor a pixel look). There are alsoatlas_index,atlas_tile_variantandreplicate. A custom block moves as it is if the texture name inmaterial_instancesis that atlas tile.terrain_texture.jsonandflipbook_textures.jsonare merged across packs.- A flipbook is always run by the client, so turning it on and off is done by changing the texture with a block state (permutation). The off state uses a still texture, and the on state uses the moving tile (
..._on). The server doesSetBlockonly when the machine starts or stops work. A Dragonfly-based server uses the block statecustom:active(off/on) and keeps it on for 40 ticks after the last work to prevent flicker. - Constraints: every block moves on the same beat (it does not start from frame 0 the moment it turns on), and a progress picture matched to a server value is not possible (use per-state textures/models). Only the texture moves, so if you need to show parts turning, you must float entities over it, which is much heavier. In item icons a flipbook does not work depending on the version, so leave a still image. If it does not move under an
alpha_testmaterial or the transition is late, try changingblend_framesand the render method.
| id | Source | License | Commit | Accessed |
|---|---|---|---|---|
private-research | Private research (-) | - | 2026-11-13 | |
bedrock-wiki | Bedrock Wiki | CC BY 4.0 (docs/licenses/CC-BY-4.0.md in the repository) | 0930b39 | 2026-11-13 |
ms-learn | Minecraft Creator documentation (Microsoft Learn) | CC BY 4.0 (documentation), MIT (code) | a9fd1c0 | 2026-11-13 |
bedrock-samples | Mojang bedrock-samples | Minecraft EULA applies, (c) Mojang AB. All rights reserved | 15701fa9 (guide baseline 46ba6ea) | 2026-11-13 |
repo-guide | JSON UI comprehensive guide (this repository) (guide/) | This project's material | 2026-11-13 |