The Industrious Villager Builder

Watch an autonomous villager builder walk around a construction plot and place blocks one by one until a cozy rustic cottage is completely built.

Java EditionMobs & PetsHard22 commandsTested on a real 26.2 & 26.3 server
A glowing Minecraft villager stands before a small wooden house surrounded by floating block debris. Download the GIF Video & GIF © www.9minecraft.net

Custom MobsMedievalIndustrialWhiteGreenGoldBuilding ToolDecorationMap MakingItem displaysSummoned mobsBlock building (fill/setblock/clone)Glowing outlines21+ commands

The Industrious Villager brings an automated builder to your world using vanilla command blocks. Starting with an empty gravel foundation and a blueprint table, a glowing master mason walks from corner to corner, firing golden placement beams that materialize cobblestone walls, oak pillars, glass windows, and a pitched stair roof block by block.

Each placed block kicks up realistic wood and stone dust particles with construction sound effects. Once the cottage is complete and the lantern is hung, the villager celebrates with emerald sparkles before resetting the site for another build.

1. Setup - type these once 8 commands

  1. /scoreboard objectives add c9_tick dummy
  2. /scoreboard players set #t c9_tick 0
  3. /fill ~-4 ~-1 ~-4 ~4 ~-1 ~5 gravel
  4. /setblock ~-4 ~ ~4 crafting_table
  5. /setblock ~-3 ~ ~4 barrel[facing=up]
  6. /summon villager ~ ~ ~4 {Tags:["c9_ent","c9_vil"],NoAI:1b,Silent:1b,Invulnerable:1b,Glowing:1b,CustomName:'{"text":"Master Builder","color":"gold"}',CustomNameVisible:1b,VillagerData:{profession:"minecraft:mason",level:5,type:"minecraft:plains"}}
  7. /summon item_display ~ ~ ~4 {Tags:["c9_ent","c9_tool"],item:{id:"minecraft:golden_pickaxe",count:1},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.7f,0.7f,0.7f],translation:[0.35f,0.9f,0.4f]}}
  8. /summon marker ~ ~ ~ {Tags:["c9_ent","c9_bp"],Pos:[0.0,0.0,0.0]}

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

  1. /scoreboard players add #t c9_tick 1
  2. /execute if score #t c9_tick matches 1..30 as @e[tag=c9_vil] at @s run tp @s ~0.12 ~ ~-0.05 facing ~-1 ~1 ~-2
  3. /execute if score #t c9_tick matches 31..60 as @e[tag=c9_vil] at @s run tp @s ~-0.05 ~ ~-0.12 facing ~-2 ~1 ~1
  4. /execute if score #t c9_tick matches 61..90 as @e[tag=c9_vil] at @s run tp @s ~-0.12 ~ ~0.05 facing ~1 ~2 ~2
  5. /execute if score #t c9_tick matches 91..120 as @e[tag=c9_vil] at @s run tp @s ~0.05 ~ ~0.12 facing ~2 ~2 ~-1
  6. /execute as @e[tag=c9_tool] at @e[tag=c9_vil,limit=1] run tp @s ~ ~ ~ ~ ~
  7. /execute at @e[tag=c9_vil] run particle dust{color:[1.0,0.85,0.2],scale:1.2} ~ ~1.2 ~ 0.25 0.3 0.25 0 2
  8. /execute if score #t c9_tick matches 10..20 run fill ~-2 ~ ~-2 ~2 ~ ~2 cobblestone
  9. /execute if score #t c9_tick matches 25..45 run fill ~-2 ~1 ~-2 ~2 ~2 ~2 oak_planks outline
  10. /execute if score #t c9_tick matches 35..55 run fill ~-2 ~1 ~-2 ~-2 ~3 ~-2 stripped_oak_log
  11. /execute if score #t c9_tick matches 45..65 run fill ~2 ~1 ~-2 ~2 ~3 ~-2 stripped_oak_log
  12. /execute if score #t c9_tick matches 55..75 run fill ~-2 ~1 ~2 ~2 ~3 ~2 stripped_oak_log replace oak_planks
  13. /execute if score #t c9_tick matches 70..95 run fill ~-3 ~3 ~-3 ~3 ~3 ~3 cobblestone_slab
  14. /execute if score #t c9_tick matches 90..115 run fill ~-2 ~4 ~-2 ~2 ~4 ~2 oak_planks

How it works

Frames from the test run

The Industrious Villager Builder - frame 1The Industrious Villager Builder - frame 2The Industrious Villager Builder - frame 3

Recorded on our own test server: 59 frames at about 9.8 fps. Our image check saw: A glowing villager stands on a gravel pad beside a crafting table and barrel in front of a small wood-and-cobblestone house while glowing debris blocks and slimes bounce around the roof, though no golden beams are visible.

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. Find a flat area of at least 15x15 blocks and stand in the center where you want the cottage to be built.
  2. Run each command from the Setup list in chat one by one to create the scoreboard, gravel work site, and the Master Builder villager.
  3. Place a column or line of 14 Repeating Command Blocks nearby and set all of them to Always Active.
  4. Paste one Loop command into each repeating command block in order from 1 to 14.
  5. Notice that the coordinates use relative tildes (~); if your command blocks are placed away from the center, wrap the fill and summon commands with execute positioned X Y Z run so they target the stage center.
  6. To replay the construction animation after it finishes at tick 120, break the cottage blocks and reset the score with /scoreboard players set #t c9_tick 0.

Use it with real players

To let players summon their own builder anywhere using a spawn egg or carrot on a stick, execute the fill and movement commands at @e[tag=c9_bp] instead of the stage origin, and summon the c9_bp marker entity at the player's location whenever they right-click their builder item.

Remove it again 4 commands

  1. /kill @e[tag=c9_ent]
  2. /scoreboard objectives remove c9_tick
  3. /fill ~-4 ~ ~-4 ~4 ~6 ~5 air
  4. /fill ~-4 ~-1 ~-4 ~4 ~-1 ~5 grass_block

FAQ

Why does the villager walk through blocks if I change its starting position?

The villager uses NoAI and fixed relative teleport offsets designed to circle around the 5x5 cottage footprint starting from ~ ~ ~4. Always summon the villager 4 blocks south of the center.

Can I change the blocks used for the cottage?

Yes! Simply replace oak_planks, cobblestone, and stripped_oak_log in loop commands 8 through 14 with any block IDs you prefer, such as spruce_planks and stone_bricks.

Commands used

/execute/fill/particle/scoreboard/setblock/summon/tp

Similar creations

Join 9Minecraft News & Guides