Summon a complete medieval stone brick castle from thin air with corner watchtowers, crenellated battlements, and glowing sea lantern windows.
Self-building StructuresMedievalRoyalWhiteRedCyanBuilding ToolMap MakingDecorationItem displaysArmor standsBlock building (fill/setblock/clone)21+ commands
Watching a massive medieval keep assemble itself out of thin air is one of the most satisfying sights in Minecraft. This command creation uses a choreographed scoreboard timer to build a multi-story stone brick fortress from the foundation up, complete with four tall corner watchtowers, notched battlements, glowing sea lantern windows, and a peaked red roof.
By combining sequential /fill and /clone commands with golden dust and end rod particles, each architectural feature snaps into place on camera before holding the completed castle view.
/scoreboard objectives add c9_timer dummy/scoreboard players set #castle c9_timer 0/fill ~-12 ~ ~-12 ~12 ~22 ~12 air/fill ~-11 ~-1 ~-11 ~11 ~-1 ~11 polished_andesite/summon item_display ~ ~17 ~ {Tags:["c9_builder","c9_ent"],Glowing:1b,glow_color_override:16766720,item:{id:"minecraft:nether_star",count:1},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[2.5f,2.5f,2.5f]}}/summon armor_stand ~ ~ ~11 {Tags:["c9_actor","c9_ent"],Invisible:0b,NoGravity:1b,Rotation:[180f,0f],equipment:{head:{id:"minecraft:golden_helmet",count:1},chest:{id:"minecraft:iron_chestplate",count:1},mainhand:{id:"minecraft:blaze_rod",count:1}}}/scoreboard players add #castle c9_timer 1/execute if score #castle c9_timer matches 240.. run scoreboard players set #castle c9_timer 1/execute if score #castle c9_timer matches 1 run fill ~-11 ~ ~-11 ~11 ~20 ~11 air/execute if score #castle c9_timer matches 5 run fill ~-7 ~ ~-7 ~7 ~5 ~7 stone_bricks hollow/execute if score #castle c9_timer matches 12 run fill ~-8 ~6 ~-8 ~8 ~6 ~8 stone_brick_stairs[half=top]/execute if score #castle c9_timer matches 18 run fill ~-9 ~ ~-9 ~-5 ~11 ~-5 deepslate_bricks/execute if score #castle c9_timer matches 22 run fill ~-10 ~11 ~-10 ~-4 ~12 ~-4 chiseled_deepslate hollow/execute if score #castle c9_timer matches 25 run fill ~-9 ~12 ~-10 ~-5 ~12 ~-4 air/execute if score #castle c9_timer matches 28 run fill ~-10 ~12 ~-9 ~-4 ~12 ~-5 air/execute if score #castle c9_timer matches 32 run fill ~-7 ~3 ~-9 ~-7 ~9 ~-5 sea_lantern/execute if score #castle c9_timer matches 36 run clone ~-10 ~ ~-10 ~-4 ~12 ~-4 ~4 ~ ~-10/execute if score #castle c9_timer matches 40 run clone ~-10 ~ ~-10 ~10 ~12 ~-4 ~-10 ~ ~4/execute if score #castle c9_timer matches 45 run fill ~-4 ~6 ~-4 ~4 ~13 ~4 stone_bricks/execute if score #castle c9_timer matches 50 run fill ~-4 ~8 ~-4 ~4 ~11 ~4 sea_lantern replace stone_bricks/execute if score #castle c9_timer matches 55 run fill ~-5 ~14 ~-5 ~5 ~15 ~5 red_nether_bricks/execute if score #castle c9_timer matches 5..65 run particle dust{color:[1.0,0.85,0.2],scale:2.0} ~ ~7 ~ 7 5 7 0.05 40 forceloop #4 Builds the main hollow stone brick curtain wall around the inner courtyard at tick 5.loop #6 Constructs the northwest corner watchtower out of dark deepslate bricks for strong visual contrast against the lighter stone walls.loop #7 Adds an overhanging battlement crown at the top of the northwest watchtower, which the next two commands carve notches into to create classic castle crenellations.loop #10 Embeds tall glowing sea lantern windows right through the middle of the watchtower before it gets cloned to the other three corners.loop #11 Clones the finished northwest watchtower (complete with battlements and glowing windows) to the northeast corner, and the following command mirrors both towers to the south side.loop #13 Raises the central multi-story keep in the middle of the castle, followed by a wrap-around band of sea lantern windows and a red nether brick roof.


Recorded on our own test server: 69 frames at about 9.8 fps. Our image check saw: A completed multi-story stone brick and deepslate castle with sea lantern windows, battlements, and a red brick roof.
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 instead of looping automatically, remove the 240.. reset command and replace it with /execute at @e[type=item,nbt={Item:{id:"minecraft:nether_star"}}] run scoreboard players set #castle c9_timer 1 followed by killing the dropped item entity.
/fill ~-12 ~-1 ~-12 ~12 ~22 ~12 air/fill ~-12 ~-1 ~-12 ~12 ~-1 ~12 grass_block/kill @e[tag=c9_ent]/scoreboard objectives remove c9_timerRemove the second loop command that resets c9_timer when it reaches 240. Once the timer passes 65, the finished castle will stay permanently.
Building all the details—battlements, notches, and glowing sea lantern windows—on the northwest watchtower first lets us duplicate the finished tower to the other three corners in just two clone commands.
▶Automated Dungeon BuilderSelf-building StructuresHard26 cmds
▶Automated Procedural Maze BuilderSelf-building StructuresHard24 cmds
▶Automated Spire ConstructorSelf-building StructuresMedium19 cmds
▶Autonomous Silk Loom Tapestry WeaverSelf-building StructuresMedium25 cmds
▶Colossal Algorithmic Maze BuilderSelf-building StructuresHard22 cmds
▶Da Vinci Flying Machine AssemblySelf-building StructuresHard24 cmds