Self-Unfolding Brick Wall (Diagon Alley Secret Door)

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.

Java EditionMagic & SpellsHard23 commandsTested on a real 26.2 & 26.3 server
A glowing brick wall folds into a stone frame to reveal a hidden purple portal. Download the GIF Video & GIF © www.9minecraft.net

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.

1. Setup - type these once 9 commands

  1. /scoreboard objectives add c9_timer dummy
  2. /fill ~-6 ~ ~-1 ~6 ~7 ~1 stone_bricks
  3. /fill ~-6 ~ ~-1 ~6 ~ ~1 polished_deepslate
  4. /fill ~-6 ~7 ~-1 ~6 ~7 ~1 chiseled_stone_bricks
  5. /fill ~-3 ~1 ~-2 ~3 ~5 ~2 air
  6. /fill ~-4 ~1 ~-2 ~-4 ~5 ~-2 sea_lantern
  7. /fill ~4 ~1 ~-2 ~4 ~5 ~-2 sea_lantern
  8. /fill ~-2 ~1 ~-2 ~2 ~5 ~-2 amethyst_block
  9. /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}}}

2. Loop - one repeating command block each (Always Active) 14 commands

  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]}}
  2. /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]}}
  3. /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]}}
  4. /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]}}
  5. /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]}}
  6. /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]}}
  7. /scoreboard players add @e[tag=c9_actor] c9_timer 1
  8. /execute if score @e[tag=c9_actor,limit=1] c9_timer matches 110.. run scoreboard players set @e[tag=c9_actor] c9_timer 0
  9. /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]}}
  10. /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]}}
  11. /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]}}
  12. /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
  13. /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
  14. /execute if score @e[tag=c9_actor,limit=1] c9_timer matches 80..85 run kill @e[tag=c9_brick]

How it works

Frames from the test run

Self-Unfolding Brick Wall (Diagon Alley Secret Door) - frame 1Self-Unfolding Brick Wall (Diagon Alley Secret Door) - frame 2Self-Unfolding Brick Wall (Diagon Alley Secret Door) - frame 3

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.

Build it in your world

  1. Stand at the center of a flat open area where you want the secret brick wall archway to appear.
  2. Run each command from the Setup list once in chat to build the stone frame, illuminated portal backdrop, and demo wizard stand.
  3. Place 14 Repeating Command Blocks set to Always Active near your stage center.
  4. Paste one command from the Loop list into each repeating command block.
  5. Watch the brick segments glow, rotate 90 degrees, and fold into the surrounding stone pillars in a staggered wave.

Use it with real players

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.

Remove it again 3 commands

  1. /kill @e[tag=c9_root]
  2. /scoreboard objectives remove c9_timer
  3. /fill ~-6 ~ ~-3 ~6 ~7 ~4 air

FAQ

Why do the bricks move smoothly instead of snapping between block grid positions?

They are block_display entities with interpolation_duration set to 16 ticks, allowing Minecraft to smoothly animate their position, scale, and 90-degree rotation.

Can I change the bricks to match a castle or dungeon wall?

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.

Commands used

/data/execute/fill/kill/scoreboard/summon

Similar creations

Join 9Minecraft News & Guides