Build an instant stone brick castle with four corner towers, walls, and a central keep that rise layer by layer out of an arcane foundation circle.
Animated BlocksMedievalMysticCyanGoldBlackBuilding ToolCinematicMap MakingItem displaysBlock building (fill/setblock/clone)13-20 commands
Building a castle block by block takes hours, so this command creation automates the entire process with a rising animation. An arcane foundation appears on the ground, and a glowing blue construction grid sweeps upward, printing four corner towers, stone brick outer walls, a deepslate central keep, and a golden spire out of thin air.
It uses a single rising marker entity paired with relative /fill commands and scoreboard timers to construct different sections of the fortress at different heights.
/scoreboard objectives add c9_t dummy/fill ~-9 ~-1 ~-9 ~9 ~-1 ~9 cobblestone/fill ~-8 ~-1 ~-8 ~8 ~-1 ~8 polished_andesite/fill ~-3 ~-1 ~-3 ~3 ~-1 ~3 chiseled_stone_bricks/summon item_display ~ ~0.5 ~ {Tags:["c9_all","c9_core"],item:{id:"minecraft:enchanting_table",count:1},Glowing:1b,glow_color_override:65535,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[1.5f,1.5f,1.5f]}}/scoreboard players add #tick c9_t 1/execute if score #tick c9_t matches 1 run kill @e[type=marker,tag=c9_b]/execute if score #tick c9_t matches 1 run summon marker ~ ~ ~ {Tags:["c9_all","c9_b"]}/execute if score #tick c9_t matches 1..115 as @e[type=marker,tag=c9_b] at @s run particle dust{color:[0.2,0.9,1.0],scale:1.8} ~ ~0.2 ~ 7 0.2 7 0 40/execute if score #tick c9_t matches 1..115 as @e[type=marker,tag=c9_b] at @s run tp @s ~ ~0.1 ~/execute as @e[type=marker,tag=c9_b] at @s if score #tick c9_t matches 1..75 run fill ~-7 ~ ~-7 ~-5 ~ ~-5 stone_bricks replace air/execute as @e[type=marker,tag=c9_b] at @s if score #tick c9_t matches 1..75 run fill ~5 ~ ~-7 ~7 ~ ~-5 stone_bricks replace air/execute as @e[type=marker,tag=c9_b] at @s if score #tick c9_t matches 1..75 run fill ~-7 ~ ~5 ~-5 ~ ~7 stone_bricks replace air/execute as @e[type=marker,tag=c9_b] at @s if score #tick c9_t matches 1..75 run fill ~5 ~ ~5 ~7 ~ ~7 stone_bricks replace air/execute as @e[type=marker,tag=c9_b] at @s if score #tick c9_t matches 1..45 run fill ~-6 ~ ~-6 ~6 ~ ~6 stone_bricks outline/execute as @e[type=marker,tag=c9_b] at @s if score #tick c9_t matches 1..50 run fill ~-6 ~ ~-6 ~6 ~ ~6 cobblestone_wall replace air/execute as @e[type=marker,tag=c9_b] at @s if score #tick c9_t matches 1..95 run fill ~-2 ~ ~-2 ~2 ~ ~2 deepslate_bricks replace air/execute as @e[type=marker,tag=c9_b] at @s if score #tick c9_t matches 90..115 run fill ~ ~ ~ ~ ~ ~ gold_block replace air/execute if score #tick c9_t matches 190.. run scoreboard players set #tick c9_t 0loop #4 On the first tick of the cycle, a marker entity tagged <code>c9_b</code> is summoned at the center of the foundation to act as our rising 3D printer head.loop #6 Every tick for 115 ticks, the marker teleports upward by <code>0.1</code> blocks, smoothly sweeping through 11.5 blocks of vertical space.loop #7 Commands 6 through 9 fill the four 3x3 corner towers with <code>stone_bricks</code> up to tick 75 (7.5 blocks tall) wherever the rising marker passes through air.loop #11 The outer walls are created up to tick 45 using <code>outline</code> mode, followed by <code>cobblestone_wall</code> battlements on top at tick 50.loop #13 The central keep rises higher than the outer walls using <code>deepslate_bricks</code> up to tick 95, finished by a central <code>gold_block</code> spire up to tick 115.


Recorded on our own test server: 65 frames at about 9.2 fps. Our image check saw: A small castle with four stone brick corner towers, stone brick walls, a deepslate central keep, and a gold block spire surrounded by glowing cyan particles.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To let a player trigger the castle construction by dropping a Nether Star on the ground, remove the last loop command (the loop reset) and add a command block that runs: /execute as @e[type=item,nbt={Item:{id:"minecraft:nether_star"}}] at @s run summon marker ~ ~ ~ {Tags:["c9_all","c9_b"]}, followed by resetting #tick to 1 and killing the dropped item entity.
/fill ~-9 ~ ~-9 ~9 ~15 ~9 air/fill ~-9 ~-1 ~-9 ~9 ~-1 ~9 grass_block/kill @e[tag=c9_all]/scoreboard objectives remove c9_tMoving in 0.1-block steps gives the cyan particle grid a smooth, continuous rising motion while still filling each full block layer as soon as the marker crosses its coordinate boundary.
Increase the tick range on the teleport command (for example, 1..160 instead of 1..115) for extra height, and adjust the relative coordinates in the /fill commands to widen the footprint.
▶Shattered Sword Reforging RitualAnimated BlocksMedium24 cmds
▶Ancient Shrine GateAnimated BlocksMedium26 cmds
▶Block Display MiniaturizerAnimated BlocksMedium24 cmds
▶Enchanted Grimoire Page-Turning RitualAnimated BlocksHard24 cmds
▶Instant Self-Assembling FortressAnimated BlocksMedium19 cmds
▶Morphing Banquet HallAnimated BlocksHard23 cmds