Self-Repairing Tactical Wall

A fortified stone brick barrier blasts apart into flying debris from an automated TNT charge, then magically reassembles itself in mid-air block by block.

Java EditionHolograms & Display EntitiesMedium24 commandsTested on a real 26.2 & 26.3 server
Deepslate bricks tumble from a breached Minecraft wall as one block glows cyan. Download the GIF Video & GIF © www.9minecraft.net

Animated BlocksMysticMedievalBlackCyanPvPMap MakingCinematicParticlesBlock displaysSmooth animation (interpolation)Scoreboard timersExecute chainsRiding & passengersBlock building (fill/setblock/clone)SoundsGlowing outlines21+ commands

Watch a fortified deepslate and stone brick wall get blown apart by a planted explosive charge, only for arcane energy to catch the flying rubble and rewind it back into place. Using block display entities and smooth interpolation, each brick tumbles away from the blast before glowing cyan and floating back into formation.

This command setup runs on an automated loop without needing mods or data packs. It combines physical block destruction with smooth display entity animation to create a regenerating defensive barrier for arenas, adventure maps, or siege bases.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_timer dummy
  2. /scoreboard players set #tick c9_timer 0
  3. /fill ~-5 ~ ~-1 ~5 ~5 ~1 air
  4. /fill ~-4 ~ ~ ~-3 ~4 ~ polished_deepslate
  5. /fill ~3 ~ ~ ~4 ~4 ~ polished_deepslate
  6. /setblock ~-4 ~5 ~ soul_lantern
  7. /setblock ~4 ~5 ~ soul_lantern
  8. /fill ~-2 ~ ~ ~2 ~3 ~ stone_bricks
  9. /fill ~-2 ~4 ~ ~2 ~4 ~ stone_brick_slab
  10. /summon block_display ~-0.5 ~1 ~0.7 {Tags:["c9_wall","c9_tnt"],block_state:{Name:"minecraft:tnt"}}

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

  1. /scoreboard players add #tick c9_timer 1
  2. /execute if score #tick c9_timer matches 1..30 run particle flame ~ ~2 ~1.2 0.1 0.1 0.1 0.02 3 force
  3. /execute if score #tick c9_timer matches 20..30 run data modify entity @e[tag=c9_tnt,limit=1] Glowing set value 1b
  4. /execute if score #tick c9_timer matches 30 run particle explosion_emitter ~ ~2 ~ 1 1 1 0 1 force
  5. /execute if score #tick c9_timer matches 30 run playsound entity.generic.explode master @a ~ ~2 ~ 1 0.8
  6. /execute if score #tick c9_timer matches 30 run kill @e[tag=c9_tnt]
  7. /execute if score #tick c9_timer matches 30 run fill ~-2 ~ ~ ~2 ~3 ~ air
  8. /execute if score #tick c9_timer matches 30 run summon block_display ~-1.5 ~0.5 ~-0.5 {Tags:["c9_wall","c9_debris"],Glowing:1b,glow_color_override:65535,block_state:{Name:"minecraft:stone_bricks"},Passengers:[{id:"minecraft:block_display",Tags:["c9_wall","c9_p1"],block_state:{Name:"minecraft:cracked_stone_bricks"}},{id:"minecraft:block_display",Tags:["c9_wall","c9_p2"],block_state:{Name:"minecraft:stone_bricks"}},{id:"minecraft:block_display",Tags:["c9_wall","c9_p3"],block_state:{Name:"minecraft:mossy_stone_bricks"}},{id:"minecraft:block_display",Tags:["c9_wall","c9_p4"],block_state:{Name:"minecraft:cracked_stone_bricks"}},{id:"minecraft:block_display",Tags:["c9_wall","c9_p5"],block_state:{Name:"minecraft:stone_bricks"}}]}
  9. /execute if score #tick c9_timer matches 31 as @e[tag=c9_p1] run data modify entity @s transformation set value {translation:[-2.5f,0.2f,3.5f],left_rotation:[0.3f,0.2f,0.1f,0.9f],scale:[1f,1f,1f],right_rotation:[0f,0f,0f,1f]}
  10. /execute if score #tick c9_timer matches 31 as @e[tag=c9_p2] run data modify entity @s transformation set value {translation:[3.5f,0.5f,4.0f],left_rotation:[-0.2f,0.4f,0.2f,0.85f],scale:[1f,1f,1f],right_rotation:[0f,0f,0f,1f]}
  11. /execute if score #tick c9_timer matches 31 as @e[tag=c9_p3] run data modify entity @s transformation set value {translation:[0.5f,3.5f,2.5f],left_rotation:[0.5f,-0.1f,0.3f,0.8f],scale:[1f,1f,1f],right_rotation:[0f,0f,0f,1f]}
  12. /execute if score #tick c9_timer matches 31 as @e[tag=c9_p4] run data modify entity @s transformation set value {translation:[-1.5f,2.8f,-3.2f],left_rotation:[0.1f,0.5f,-0.3f,0.8f],scale:[1f,1f,1f],right_rotation:[0f,0f,0f,1f]}
  13. /execute if score #tick c9_timer matches 31..95 as @e[tag=c9_wall] run data merge entity @s {interpolation_duration:15,start_interpolation:0}
  14. /execute if score #tick c9_timer matches 65..95 run particle trial_spawner_detection_ominous ~ ~2 ~ 2 1.5 2 0.02 8 force

How it works

Frames from the test run

Self-Repairing Tactical Wall - frame 1Self-Repairing Tactical Wall - frame 2Self-Repairing Tactical Wall - frame 3

Recorded on our own test server: 50 frames at about 9.9 fps. Our image check saw: Three identical frames show a deepslate and stone brick wall at night with its center missing, several tilted deepslate block entities around the gap, and one brick glowing cyan.

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 where you want the centre of your tactical wall to be and run each of the 10 Setup commands in chat once.
  2. Place a line of 14 Repeating Command Blocks nearby (all set to Always Active), or 1 Repeating block leading into 13 Chain Command Blocks.
  3. Copy and paste the 14 Loop commands in order into your command blocks.
  4. To make the wall finish reassembling and reset automatically on a 6-second cycle, add two extra Chain Command Blocks at the end with: <code>/execute if score #tick c9_timer matches 70 as @e[tag=c9_wall] run data modify entity @s transformation.translation set value [0f,0f,0f]</code> and <code>/execute if score #tick c9_timer matches 100 run fill ~-2 ~ ~ ~2 ~3 ~ stone_bricks</code> followed by resetting <code>#tick</code> to 0.
  5. Watch the TNT charge ignite, shatter the wall into glowing debris, and draw the pieces back together with ominous particles.

Use it with real players

To trigger the blast and repair when a player shoots or approaches the wall instead of on a fixed timer, replace the scoreboard increment in the first loop command with /execute if entity @a[distance=..5] if score #tick c9_timer matches 0 run scoreboard players set #tick c9_timer 1, and only increment #tick while it is 1 or higher.

Remove it again 3 commands

  1. /kill @e[tag=c9_wall]
  2. /fill ~-5 ~ ~-1 ~5 ~5 ~1 air
  3. /scoreboard objectives remove c9_timer

FAQ

Why does it use block_display entities instead of falling_block entities?

Block display entities do not lag with gravity physics, can be rotated to any angle in mid-air, and smoothly interpolate back to their starting position when their transformation is reset.

Can I change the blocks used in the wall?

Yes. Change stone_bricks in Setup command 8 and in the Passengers list of Loop command 8 to any block ID you prefer, such as iron_block or obsidian.

Commands used

/data/execute/fill/kill/particle/playsound/scoreboard/setblock/summon

Similar creations

Join 9Minecraft News & Guides