Watch an open timber cottage frame automatically crown itself layer by layer with spaced wooden rafters and overhanging stone brick stairs.
Spawners & GeneratorsMedievalNatureGoldWhiteOrangeBuilding ToolMap MakingParticlesBlock displaysArmor standsBlock building (fill/setblock/clone)Glowing outlinesRotation math21+ commands
Two glowing builder guides sweep front to back across an open spruce and cobblestone cottage frame, laying overhanging stone brick stairs and spaced stripped spruce rafters one layer at a time. Warm golden dust particles trace each block as the roof climbs upward to meet a central wooden ridge pole and stone slab cap.
Using two synchronized brush entities and modulo scoreboard math, the entire pitched roof builds itself smoothly without templates or data packs, leaving the lower cottage frame open so you can watch the interior timber trusses take shape.
/scoreboard objectives add c9_roof dummy/scoreboard players set #fourteen c9_roof 14/scoreboard players set #two c9_roof 2/fill ~-4 ~0 ~-5 ~4 ~3 ~5 spruce_log hollow/fill ~-3 ~1 ~-5 ~3 ~2 ~5 air/fill ~-4 ~1 ~-4 ~4 ~2 ~4 air/fill ~-3 ~3 ~-4 ~3 ~3 ~4 air/fill ~-3 ~0 ~-4 ~3 ~0 ~4 cobblestone/summon armor_stand ~-5 ~4 ~-6 {Tags:["c9_brush","c9_w","c9_actor"],NoGravity:1b,ShowArms:1b,Glowing:1b,Rotation:[-90f,0f],CustomName:{"text":"Roof Builder","color":"gold"},CustomNameVisible:1b,equipment:{head:{id:"minecraft:golden_helmet",count:1},mainhand:{id:"minecraft:iron_axe",count:1}}}/summon block_display ~5 ~4 ~-6 {Tags:["c9_brush","c9_e"],Rotation:[90f,0f],Glowing:1b,block_state:{Name:"minecraft:lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.4f,0.2f,-0.4f],scale:[0.8f,0.8f,0.8f]}}/scoreboard players add @e[tag=c9_actor,limit=1] c9_roof 1/scoreboard players operation #mod14 c9_roof = @e[tag=c9_actor,limit=1] c9_roof/scoreboard players operation #mod14 c9_roof %= #fourteen c9_roof/scoreboard players operation #mod2 c9_roof = #mod14 c9_roof/scoreboard players operation #mod2 c9_roof %= #two c9_roof/execute if score @e[tag=c9_actor,limit=1] c9_roof matches 1..69 if score #mod14 c9_roof matches 1..13 at @e[tag=c9_w,limit=1] run setblock ~ ~ ~ stone_brick_stairs[facing=east]/execute if score @e[tag=c9_actor,limit=1] c9_roof matches 1..69 if score #mod14 c9_roof matches 1..13 at @e[tag=c9_e,limit=1] run setblock ~ ~ ~ stone_brick_stairs[facing=west]/execute if score @e[tag=c9_actor,limit=1] c9_roof matches 15..55 if score #mod14 c9_roof matches 1..13 if score #mod2 c9_roof matches 0 at @e[tag=c9_brush] run setblock ^ ^ ^1 stripped_spruce_wood/execute if score @e[tag=c9_actor,limit=1] c9_roof matches 44..54 at @e[tag=c9_w,limit=1] run setblock ~2 ~ ~ stripped_spruce_log[axis=z]/execute if score @e[tag=c9_actor,limit=1] c9_roof matches 57..69 at @e[tag=c9_w,limit=1] run setblock ~1 ~ ~ stone_brick_slab[type=top]/execute if score @e[tag=c9_actor,limit=1] c9_roof matches 1..69 if score #mod14 c9_roof matches 1..13 at @e[tag=c9_brush] run particle dust{color:[1.0,0.75,0.2],scale:1.5} ~ ~0.6 ~ 0.25 0.25 0.25 0 6 force/execute if score @e[tag=c9_actor,limit=1] c9_roof matches 1..69 if score #mod14 c9_roof matches 1..13 as @e[tag=c9_brush] at @s run tp @s ~ ~ ~1/execute if score @e[tag=c9_actor,limit=1] c9_roof matches 14..56 if score #mod14 c9_roof matches 0 as @e[tag=c9_brush] at @s run tp @s ~ ~ ~-13/execute if score @e[tag=c9_actor,limit=1] c9_roof matches 14..56 if score #mod14 c9_roof matches 0 as @e[tag=c9_brush] at @s run tp @s ^ ^1 ^1setup #4 Builds the outer shell of the 9x11 cottage frame out of <code>spruce_log</code>; the next three setup commands carve out the wall openings and flat ceiling while keeping the four corner pillars and top perimeter beams.setup #9 Summons the glowing <code>c9_actor</code> armor stand at the northwest eave corner facing east (<code>-90f</code>), while the next command places the matching east lantern display facing west (<code>90f</code>).loop #3 Computes <code>#mod14</code> from the main timer so each layer gets 13 active building ticks (<code>1..13</code>) and 1 wrap tick (<code>0</code>), while <code>#mod2</code> detects every second slice for spaced rafters.loop #8 Places spaced <code>stripped_spruce_wood</code> rafters one block inward from both brushes using local coordinates <code>^ ^ ^1</code> whenever <code>#mod2</code> is <code>0</code> during the middle three layers.loop #14 Steps both brushes one block up and one block inward toward the roof peak at the end of every layer right after teleporting them back to the front overhang.


Recorded on our own test server: 50 frames at about 9.9 fps. Our image check saw: Two glowing floating entities (an armor stand and a lantern) automatically construct a roof made of stone brick stairs and stripped spruce logs over a wooden frame with a cobblestone floor, complete with golden dust particles.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To trigger this on your own survival or creative builds, build a 9x11 timber frame with top beams 3 blocks above the floor, stand at the northwest eave corner (~-5 ~4 ~-6 from your cottage center), and run the two /summon commands relative to that frame after clearing @e[tag=c9_brush]. You can also bind the timer to a real player by replacing @e[tag=c9_actor,limit=1] with @p while keeping c9_w as a separate marker.
/fill ~-6 ~0 ~-7 ~6 ~9 ~7 air/kill @e[tag=c9_brush]/scoreboard objectives remove c9_roofYes. Replace <code>stone_brick_stairs</code> and <code>stone_brick_slab</code> in the loop commands with any stair and slab pair, and swap <code>stripped_spruce_wood</code> and <code>stripped_spruce_log</code> for your preferred timber.
The builder stops at tick 70 once all five roof layers are complete so your finished cottage stays intact instead of being torn down and rebuilt.
▶Wandering Trail WeaverSpawners & GeneratorsEasy22 cmds
▶Self-Building Wooden CabinSpawners & GeneratorsEasy21 cmds
▶Self-Weaving Cobblestone CrossroadsSpawners & GeneratorsMedium26 cmds
▶Hurdy-Gurdy Rosin-Wheel Boss SummonerSpawners & GeneratorsHard24 cmds
▶Marionette Wooden-Crossbar String Puppeteer SpawnerSpawners & GeneratorsHard24 cmds
▶Automated Crop HarvesterSpawners & GeneratorsMedium24 cmds