Transform an ordinary brick wall into an animated secret doorway as individual brick segments slide back, rotate 90 degrees, and fold into the stone frame.
Portals & RiftsMysticMedievalRedPurpleGoldAdventure MapMap MakingCinematicBlock displaysArmor standsSmooth animation (interpolation)Block building (fill/setblock/clone)21+ commands
Inspired by the magical entrance to Diagon Alley, this command creation turns a solid red brick archway into a self-unfolding secret passage. When approached with a wand, individual brick segments slide backward, rotate 90 degrees, and fold neatly into the surrounding stone frame in a staggered cascade to reveal a glowing portal beyond.
It uses interpolated block_display entities paired with dynamic barrier collision and magical particles so the doorway opens smoothly without any mods or resource packs.
/scoreboard objectives add c9_timer dummy/fill ~-6 ~ ~-1 ~6 ~7 ~1 stone_bricks/fill ~-6 ~ ~-1 ~6 ~ ~1 polished_deepslate/fill ~-6 ~7 ~-1 ~6 ~7 ~1 chiseled_stone_bricks/fill ~-3 ~1 ~-2 ~3 ~5 ~2 air/fill ~-4 ~1 ~-2 ~-4 ~5 ~-2 sea_lantern/fill ~4 ~1 ~-2 ~4 ~5 ~-2 sea_lantern/fill ~-2 ~1 ~-2 ~2 ~5 ~-2 amethyst_block/summon armor_stand ~ ~ ~3.5 {Tags:["c9_actor","c9_root"],NoGravity:1b,ShowArms:1b,Rotation:[180f,0f],equipment:{mainhand:{id:"minecraft:blaze_rod",count:1},head:{id:"minecraft:golden_helmet",count:1},chest:{id:"minecraft:golden_chestplate",count:1}}}/execute unless entity @e[tag=c9_brick,tag=c9_L,tag=c9_t1] run summon block_display ~-1 ~1 ~-0.5 {Tags:["c9_brick","c9_L","c9_t1","c9_root"],Glowing:1b,glow_color_override:16755200,brightness:{sky:15,block:15},block_state:{Name:"minecraft:bricks"},interpolation_duration:16,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1f,2f,1f],translation:[0f,0f,0f]}}/execute unless entity @e[tag=c9_brick,tag=c9_R,tag=c9_t1] run summon block_display ~0 ~1 ~-0.5 {Tags:["c9_brick","c9_R","c9_t1","c9_root"],Glowing:1b,glow_color_override:16755200,brightness:{sky:15,block:15},block_state:{Name:"minecraft:bricks"},interpolation_duration:16,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1f,2f,1f],translation:[0f,0f,0f]}}/execute unless entity @e[tag=c9_brick,tag=c9_L,tag=c9_t2] run summon block_display ~-1 ~3 ~-0.5 {Tags:["c9_brick","c9_L","c9_t2","c9_root"],Glowing:1b,glow_color_override:16755200,brightness:{sky:15,block:15},block_state:{Name:"minecraft:bricks"},interpolation_duration:16,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1f,3f,1f],translation:[0f,0f,0f]}}/execute unless entity @e[tag=c9_brick,tag=c9_R,tag=c9_t2] run summon block_display ~0 ~3 ~-0.5 {Tags:["c9_brick","c9_R","c9_t2","c9_root"],Glowing:1b,glow_color_override:16755200,brightness:{sky:15,block:15},block_state:{Name:"minecraft:bricks"},interpolation_duration:16,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1f,3f,1f],translation:[0f,0f,0f]}}/execute unless entity @e[tag=c9_brick,tag=c9_L,tag=c9_t3] run summon block_display ~-3 ~1 ~-0.5 {Tags:["c9_brick","c9_L","c9_t3","c9_root"],Glowing:1b,glow_color_override:16755200,brightness:{sky:15,block:15},block_state:{Name:"minecraft:bricks"},interpolation_duration:16,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[2f,5f,1f],translation:[0f,0f,0f]}}/execute unless entity @e[tag=c9_brick,tag=c9_R,tag=c9_t3] run summon block_display ~1 ~1 ~-0.5 {Tags:["c9_brick","c9_R","c9_t3","c9_root"],Glowing:1b,glow_color_override:16755200,brightness:{sky:15,block:15},block_state:{Name:"minecraft:bricks"},interpolation_duration:16,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[2f,5f,1f],translation:[0f,0f,0f]}}/scoreboard players add @e[tag=c9_actor] c9_timer 1/execute if score @e[tag=c9_actor,limit=1] c9_timer matches 110.. run scoreboard players set @e[tag=c9_actor] c9_timer 0/execute if score @e[tag=c9_actor,limit=1] c9_timer matches 10 as @e[tag=c9_brick,tag=c9_t1] run data merge entity @s {start_interpolation:0,transformation:{left_rotation:[0f,0.707f,0f,0.707f],right_rotation:[0f,0f,0f,1f],scale:[0.9f,1.8f,0.9f],translation:[0f,0.1f,-0.8f]}}/execute if score @e[tag=c9_actor,limit=1] c9_timer matches 18 as @e[tag=c9_brick,tag=c9_t2] run data merge entity @s {start_interpolation:0,transformation:{left_rotation:[0f,0.707f,0f,0.707f],right_rotation:[0f,0f,0f,1f],scale:[0.9f,2.6f,0.9f],translation:[0f,0.2f,-0.8f]}}/execute if score @e[tag=c9_actor,limit=1] c9_timer matches 26 as @e[tag=c9_brick,tag=c9_t3] run data merge entity @s {start_interpolation:0,transformation:{left_rotation:[0f,0.707f,0f,0.707f],right_rotation:[0f,0f,0f,1f],scale:[1.6f,4.8f,0.9f],translation:[0f,0.1f,-0.8f]}}/execute if score @e[tag=c9_actor,limit=1] c9_timer matches 12..30 as @e[tag=c9_L] run data modify entity @s transformation.translation[0] set value -3.2f/execute if score @e[tag=c9_actor,limit=1] c9_timer matches 12..30 as @e[tag=c9_R] run data modify entity @s transformation.translation[0] set value 3.8f/execute if score @e[tag=c9_actor,limit=1] c9_timer matches 80..85 run kill @e[tag=c9_brick]setup #5 Carves out a 7x5 archway opening through the center of the stone brick wall so the animated brick display segments can fill the doorway and fold away into the sides.loop #1 Summons the lower-left brick segment as a glowing block_display entity with a 16-tick interpolation duration whenever it is not present.loop #9 At tick 10, triggers the first pair of central bricks to rotate 90 degrees on the Y axis and slide backward using quaternion left_rotation and smooth interpolation.loop #12 Slides all left-side brick segments (-3.2 blocks on X) neatly into the left stone brick pillar while right-side segments fold into the right pillar.loop #14 Resets the doorway at the end of the cycle so the segments reform seamlessly in the archway for the next opening.


Recorded on our own test server: 58 frames at about 9.5 fps. Our image check saw: A red brick wall framed in stone bricks splits and folds sideways into the stone frame, revealing a purple amethyst portal behind a golden-armored armor stand.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To make the wall unfold only when a real player approaches holding a Blaze Rod wand, remove the c9_actor armor stand and change the timer increment command to: /execute if entity @a[distance=..6,nbt={SelectedItem:{id:"minecraft:blaze_rod"}}] run scoreboard players add #wall c9_timer 1, then replace @e[tag=c9_actor,limit=1] in the loop commands with fake player #wall.
/kill @e[tag=c9_root]/scoreboard objectives remove c9_timer/fill ~-6 ~ ~-3 ~6 ~7 ~4 airThey are block_display entities with interpolation_duration set to 16 ticks, allowing Minecraft to smoothly animate their position, scale, and 90-degree rotation.
Yes! Change minecraft:bricks inside the block_state of the first six loop commands to minecraft:stone_bricks, minecraft:Mud_bricks, or any other block ID.
▶Emerald Flame TeleporterPortals & RiftsMedium24 cmds
▶Enchanted Portal DoorwayPortals & RiftsMedium24 cmds
▶Mobius Strip Endless Portal LoopPortals & RiftsExpert20 cmds
▶Shattered Kaleidoscope Prism TunnelPortals & RiftsExpert23 cmds
▶Shattered Mirror Dimension CascadePortals & RiftsExpert24 cmds
▶Abyssal Banishment PortalPortals & RiftsMedium24 cmds