An obsidian pylon and spinning sea lantern crystal absorb TNT craters and dropped debris to automatically rebuild a mossy stone courtyard in stages.
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.
/scoreboard objectives add c9_t dummy/summon marker ~ ~ ~ {Tags:["c9_core"]}/summon marker ~4 ~1 ~4 {Tags:["c9_pillar"]}/summon marker ~-4 ~1 ~4 {Tags:["c9_pillar"]}/summon marker ~4 ~1 ~-4 {Tags:["c9_pillar"]}/summon marker ~-4 ~1 ~-4 {Tags:["c9_pillar"]}/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]}}/fill ~-1 ~-1 ~-1 ~1 ~0 ~1 crying_obsidian/fill ~ ~1 ~ ~ ~2 ~ obsidian/scoreboard players set @e[tag=c9_core] c9_t 67/execute as @e[tag=c9_core] run scoreboard players add @s c9_t 1/execute as @e[tag=c9_core,scores={c9_t=120..}] run scoreboard players set @s c9_t 0/execute as @e[tag=c9_crystal] at @s run tp @s ~ ~ ~ ~8 ~/particle dust{color:[0.1,0.9,1.0],scale:1.3} ~ ~2.8 ~ 2.4 1.2 2.4 0 8/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}/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]}}/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/execute at @e[tag=c9_crystal,limit=1] run kill @e[type=item,distance=..1.8]/execute if entity @e[tag=c9_core,scores={c9_t=68}] run fill ~-9 ~-2 ~-9 ~9 ~-1 ~9 dirt keep/execute if entity @e[tag=c9_core,scores={c9_t=76}] run fill ~-6 ~0 ~-6 ~6 ~0 ~6 mossy_stone_bricks keep/execute if entity @e[tag=c9_core,scores={c9_t=84}] at @e[tag=c9_pillar] run fill ~ ~ ~ ~ ~2 ~ deepslate_bricks keep/execute if entity @e[tag=c9_core,scores={c9_t=92}] at @e[tag=c9_pillar] run setblock ~ ~3 ~ lantern keep/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]}}/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 7setup #7 Summons a glowing <code>block_display</code> sea lantern centered at the top of the obsidian pylon using a negative half-scale translation offset.loop #5 At tick 15, each corner pillar marker faces the central pylon and spawns primed TNT 1.8 blocks inward on the courtyard floor so the blast carves out both the mossy brick floor and the deepslate pillars.loop #6 Right after the TNT detonates at tick 36, the crystal interpolates to a larger scale and switches its <code>glow_color_override</code> from cyan (65535) to gold (16755200).loop #7 Pulls all blasted block item drops upward into the glowing crystal using local coordinates (<code>^ ^ ^0.75</code>) facing the crystal.loop #9 Rebuilds the courtyard in four timed stages (ticks 68, 76, 84, and 92) using <code>/fill ... keep</code> so intact blocks and the central obsidian pylon are never overwritten.


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.
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.
/kill @e[tag=c9_core]/kill @e[tag=c9_pillar]/kill @e[tag=c9_crystal]/scoreboard objectives remove c9_t/fill ~-9 ~0 ~-9 ~9 ~5 ~9 air/fill ~-9 ~-2 ~-9 ~9 ~-1 ~9 grass_blockThe 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.
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.
/data/execute/fill/kill/particle/scoreboard/setblock/summon/tp
▶Marionette Wooden-Crossbar String Puppeteer SpawnerSpawners & GeneratorsHard24 cmds
▶Hurdy-Gurdy Rosin-Wheel Boss SummonerSpawners & GeneratorsHard24 cmds
▶Runic Obelisk Mob Wave SummonerSpawners & GeneratorsHard25 cmds
▶Russian Nesting Doll Boss UnpackerSpawners & GeneratorsHard24 cmds
▶Astral Tarot Card Fate SelectorSpawners & GeneratorsExpert24 cmds
▶Automated Glass Pane InstallerSpawners & GeneratorsEasy23 cmds