Rewinding Terrain Shield

An obsidian pylon and spinning sea lantern crystal absorb TNT craters and dropped debris to automatically rebuild a mossy stone courtyard in stages.

Java EditionMini-games & UtilitiesMedium24 commandsTested on a real 26.2 & 26.3 server
A glowing sea lantern crystal on an obsidian pylon reconstructs a mossy courtyard after an explosion. Download the GIF Video & GIF © www.9minecraft.net

Spawners & GeneratorsMysticMedievalCyanGoldGreenBuilding ToolAdventure MapPvPBlock displaysSmooth animation (interpolation)Summoned mobsBlock building (fill/setblock/clone)Rotation math21+ commands

The Rewinding Terrain Shield builds an obsidian and crying obsidian pylon topped with a spinning, glowing sea lantern crystal inside a mossy stone brick courtyard with four lantern pillars. When primed TNT blasts a crater across the courtyard floor and pillars, the crystal swells in size and shifts from cyan to gold, pulling every dropped block into its core before reconstructing the grass foundation, floor, pillars, and lanterns layer by layer.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_t dummy
  2. /summon marker ~ ~ ~ {Tags:["c9_core"]}
  3. /summon marker ~4 ~1 ~4 {Tags:["c9_pillar"]}
  4. /summon marker ~-4 ~1 ~4 {Tags:["c9_pillar"]}
  5. /summon marker ~4 ~1 ~-4 {Tags:["c9_pillar"]}
  6. /summon marker ~-4 ~1 ~-4 {Tags:["c9_pillar"]}
  7. /summon block_display ~ ~3.5 ~ {Tags:["c9_crystal"],Glowing:1b,glow_color_override:65535,teleport_duration:1,block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.45f,-0.45f,-0.45f],scale:[0.9f,0.9f,0.9f]}}
  8. /fill ~-1 ~-1 ~-1 ~1 ~0 ~1 crying_obsidian
  9. /fill ~ ~1 ~ ~ ~2 ~ obsidian
  10. /scoreboard players set @e[tag=c9_core] c9_t 67

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

  1. /execute as @e[tag=c9_core] run scoreboard players add @s c9_t 1
  2. /execute as @e[tag=c9_core,scores={c9_t=120..}] run scoreboard players set @s c9_t 0
  3. /execute as @e[tag=c9_crystal] at @s run tp @s ~ ~ ~ ~8 ~
  4. /particle dust{color:[0.1,0.9,1.0],scale:1.3} ~ ~2.8 ~ 2.4 1.2 2.4 0 8
  5. /execute if entity @e[tag=c9_core,scores={c9_t=15}] at @e[tag=c9_pillar] facing ~ ~1 ~ run summon tnt ^ ^ ^1.8 {fuse:20s}
  6. /execute if entity @e[tag=c9_core,scores={c9_t=36}] as @e[tag=c9_crystal] run data merge entity @s {start_interpolation:0,interpolation_duration:10,glow_color_override:16755200,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.7f,-0.7f,-0.7f],scale:[1.4f,1.4f,1.4f]}}
  7. /execute if entity @e[tag=c9_core,scores={c9_t=37..66}] as @e[type=item,distance=..18] at @s facing entity @e[tag=c9_crystal,limit=1] feet run tp @s ^ ^ ^0.75
  8. /execute at @e[tag=c9_crystal,limit=1] run kill @e[type=item,distance=..1.8]
  9. /execute if entity @e[tag=c9_core,scores={c9_t=68}] run fill ~-9 ~-2 ~-9 ~9 ~-1 ~9 dirt keep
  10. /execute if entity @e[tag=c9_core,scores={c9_t=76}] run fill ~-6 ~0 ~-6 ~6 ~0 ~6 mossy_stone_bricks keep
  11. /execute if entity @e[tag=c9_core,scores={c9_t=84}] at @e[tag=c9_pillar] run fill ~ ~ ~ ~ ~2 ~ deepslate_bricks keep
  12. /execute if entity @e[tag=c9_core,scores={c9_t=92}] at @e[tag=c9_pillar] run setblock ~ ~3 ~ lantern keep
  13. /execute if entity @e[tag=c9_core,scores={c9_t=100}] as @e[tag=c9_crystal] run data merge entity @s {start_interpolation:0,interpolation_duration:15,glow_color_override:65535,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.45f,-0.45f,-0.45f],scale:[0.9f,0.9f,0.9f]}}
  14. /execute if entity @e[tag=c9_core,scores={c9_t=40..95}] at @e[tag=c9_pillar] run particle end_rod ~ ~1.5 ~ 2.0 1.8 2.0 0.04 7

How it works

Frames from the test run

Rewinding Terrain Shield - frame 1Rewinding Terrain Shield - frame 2Rewinding Terrain Shield - frame 3

Recorded on our own test server: 59 frames at about 9.7 fps. Our image check saw: A mossy stone brick courtyard with four lantern pillars and an obsidian pylon topped with a glowing sea lantern crystal undergoes an explosion, after which the crystal turns gold and grows while the terrain and pillars reconstruct amidst bright particles.

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 41x41 area and run the 10 setup commands in chat to create the scoreboard, markers, obsidian pylon, and glowing sea lantern crystal.
  2. Place 14 repeating command blocks set to Always Active (or 1 repeating command block feeding into 13 chain command blocks) at the exact center coordinate.
  3. Paste each loop command in order into the command blocks.
  4. Watch the courtyard construct itself, take a quad TNT blast across the floor and pillars, vacuum the debris into the gold-charged crystal, and rewind the damage layer by layer.

Use it with real players

To use this shield to protect a survival base without the demo TNT, remove loop command 5 (the TNT summon) and replace the timer trigger with a creeper or explosion check, or let the 120-tick cycle run continuously to vacuum loose drops and repair any missing blocks in the keep fill zones.

Remove it again 6 commands

  1. /kill @e[tag=c9_core]
  2. /kill @e[tag=c9_pillar]
  3. /kill @e[tag=c9_crystal]
  4. /scoreboard objectives remove c9_t
  5. /fill ~-9 ~0 ~-9 ~9 ~5 ~9 air
  6. /fill ~-9 ~-2 ~-9 ~9 ~-1 ~9 grass_block

FAQ

Why doesn't the central pylon get blown up by the TNT?

The central pylon is built from obsidian and crying obsidian, which both have high blast resistance that completely withstands TNT explosions while the surrounding mossy stone bricks and deepslate pillars shatter.

Can I customize the blocks that the shield repairs?

Yes. Change the block names and coordinate ranges in loop commands 9 through 12 to match your own floor and pillar materials. Keep the keep keyword at the end so it only fills air gaps left by explosions.

Commands used

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

Similar creations

Join 9Minecraft News & Guides