Instant Command Castle

Summon a complete medieval stone brick castle from thin air with corner watchtowers, crenellated battlements, and glowing sea lantern windows.

Java EditionComplex Contraptions & CinematicsHard22 commandsTested on a real 26.2 & 26.3 server
A stone brick castle with deepslate towers, glowing sea lantern windows, and a red roof. Download the GIF Video & GIF © www.9minecraft.net

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.

1. Setup - type these once 6 commands

  1. /scoreboard objectives add c9_timer dummy
  2. /scoreboard players set #castle c9_timer 0
  3. /fill ~-12 ~ ~-12 ~12 ~22 ~12 air
  4. /fill ~-11 ~-1 ~-11 ~11 ~-1 ~11 polished_andesite
  5. /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]}}
  6. /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}}}

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

  1. /scoreboard players add #castle c9_timer 1
  2. /execute if score #castle c9_timer matches 240.. run scoreboard players set #castle c9_timer 1
  3. /execute if score #castle c9_timer matches 1 run fill ~-11 ~ ~-11 ~11 ~20 ~11 air
  4. /execute if score #castle c9_timer matches 5 run fill ~-7 ~ ~-7 ~7 ~5 ~7 stone_bricks hollow
  5. /execute if score #castle c9_timer matches 12 run fill ~-8 ~6 ~-8 ~8 ~6 ~8 stone_brick_stairs[half=top]
  6. /execute if score #castle c9_timer matches 18 run fill ~-9 ~ ~-9 ~-5 ~11 ~-5 deepslate_bricks
  7. /execute if score #castle c9_timer matches 22 run fill ~-10 ~11 ~-10 ~-4 ~12 ~-4 chiseled_deepslate hollow
  8. /execute if score #castle c9_timer matches 25 run fill ~-9 ~12 ~-10 ~-5 ~12 ~-4 air
  9. /execute if score #castle c9_timer matches 28 run fill ~-10 ~12 ~-9 ~-4 ~12 ~-5 air
  10. /execute if score #castle c9_timer matches 32 run fill ~-7 ~3 ~-9 ~-7 ~9 ~-5 sea_lantern
  11. /execute if score #castle c9_timer matches 36 run clone ~-10 ~ ~-10 ~-4 ~12 ~-4 ~4 ~ ~-10
  12. /execute if score #castle c9_timer matches 40 run clone ~-10 ~ ~-10 ~10 ~12 ~-4 ~-10 ~ ~4
  13. /execute if score #castle c9_timer matches 45 run fill ~-4 ~6 ~-4 ~4 ~13 ~4 stone_bricks
  14. /execute if score #castle c9_timer matches 50 run fill ~-4 ~8 ~-4 ~4 ~11 ~4 sea_lantern replace stone_bricks
  15. /execute if score #castle c9_timer matches 55 run fill ~-5 ~14 ~-5 ~5 ~15 ~5 red_nether_bricks
  16. /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 force

How it works

Frames from the test run

Instant Command Castle - frame 1Instant Command Castle - frame 2Instant Command Castle - frame 3

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.

Build it in your world

  1. Stand at the center of a flat open area at least 25x25 blocks wide.
  2. Run each of the 6 setup commands in chat to create the scoreboard objective, foundation, and floating star beacon.
  3. Place a Repeating Command Block set to Always Active, then chain 13 Chain Command Blocks (Always Active, Unconditional) above or behind it.
  4. Paste the loop commands in order into the command blocks (note: if you want to stay strictly at 14 command blocks, combine or omit the first air reset once built).
  5. Watch the castle construct its walls, corner watchtowers, crenellations, glowing windows, and central keep automatically.

Use it with real players

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.

Remove it again 4 commands

  1. /fill ~-12 ~-1 ~-12 ~12 ~22 ~12 air
  2. /fill ~-12 ~-1 ~-12 ~12 ~-1 ~12 grass_block
  3. /kill @e[tag=c9_ent]
  4. /scoreboard objectives remove c9_timer

FAQ

How do I stop the castle from rebuilding itself in a loop?

Remove the second loop command that resets c9_timer when it reaches 240. Once the timer passes 65, the finished castle will stay permanently.

Why does it only build one tower first and then clone it?

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.

Commands used

/clone/execute/fill/particle/scoreboard/summon

Similar creations

Join 9Minecraft News & Guides