Robotic Factory Car Assembly Line

Four multi-jointed yellow robotic arms pivot in unison to weld, bolt on doors, and spray-paint a moving metal car chassis along an illuminated factory track.

Java EditionComplex Contraptions & CinematicsMediumTested on a real 26.2 & 26.3 server
Yellow robotic arms assemble and paint a car on a glowing Minecraft factory track. Download the GIF

Watch an automated vehicle factory bring a bare metal chassis to life on a glowing assembly track. Four multi-jointed yellow robotic arms flank the conveyor line, smoothly pivoting down in unison as the vehicle rolls into each workstation.

At the first station, blue-white and orange welding sparks shower the frame while two side doors slide inward and bolt cleanly onto the body. At the second station, red paint mist swirls around the vehicle as its bare iron shell transforms into a finished red car before rolling off the line.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_t dummy
  2. /scoreboard players set #c9 c9_t -1
  3. /fill ~-14 ~-1 ~-6 ~14 ~-1 ~6 yellow_concrete
  4. /fill ~-14 ~-1 ~-5 ~14 ~-1 ~5 polished_deepslate
  5. /fill ~-13 ~-1 ~-2 ~13 ~-1 ~2 sea_lantern
  6. /fill ~-13 ~-1 ~-1 ~13 ~-1 ~1 iron_block
  7. /summon block_display ~-4 ~ ~-3.5 {Tags:["c9_st","c9_arm"],Passengers:[{id:"block_display",Tags:["c9_arm"],block_state:{Name:"gray_concrete"},transformation:[1.1f,0f,0f,-.55f,0f,.8f,0f,0f,0f,0f,1.1f,-.55f,0f,0f,0f,1f]},{id:"block_display",Tags:["c9_arm"],block_state:{Name:"black_concrete"},transformation:[.7f,0f,0f,-.35f,0f,.45f,0f,.65f,0f,0f,.7f,-.35f,0f,0f,0f,1f]},{id:"block_display",Tags:["c9_arm","c9_la"],interpolation_duration:8,block_state:{Name:"yellow_concrete"},transformation:{left_rotation:[-.174f,0f,0f,.985f],right_rotation:[0f,0f,0f,1f],translation:[-.22f,.85f,-.22f],scale:[.45f,2.3f,.45f]}},{id:"block_display",Tags:["c9_arm","c9_ua"],interpolation_duration:8,block_state:{Name:"yellow_concrete"},transformation:{left_rotation:[.737f,0f,0f,.676f],right_rotation:[0f,0f,0f,1f],translation:[-.17f,3.01f,-1.01f],scale:[.35f,2.2f,.35f]}}]}
  8. /summon block_display ~-4 ~ ~3.5 {Tags:["c9_arm"],Passengers:[{id:"block_display",Tags:["c9_arm"],block_state:{Name:"gray_concrete"},transformation:[1.1f,0f,0f,-.55f,0f,.8f,0f,0f,0f,0f,1.1f,-.55f,0f,0f,0f,1f]},{id:"block_display",Tags:["c9_arm"],block_state:{Name:"black_concrete"},transformation:[.7f,0f,0f,-.35f,0f,.45f,0f,.65f,0f,0f,.7f,-.35f,0f,0f,0f,1f]},{id:"block_display",Tags:["c9_arm","c9_la"],Rotation:[180f,0f],interpolation_duration:8,block_state:{Name:"yellow_concrete"},transformation:{left_rotation:[-.174f,0f,0f,.985f],right_rotation:[0f,0f,0f,1f],translation:[-.22f,.85f,-.22f],scale:[.45f,2.3f,.45f]}},{id:"block_display",Tags:["c9_arm","c9_ua"],Rotation:[180f,0f],interpolation_duration:8,block_state:{Name:"yellow_concrete"},transformation:{left_rotation:[.737f,0f,0f,.676f],right_rotation:[0f,0f,0f,1f],translation:[-.17f,3.01f,-1.01f],scale:[.35f,2.2f,.35f]}}]}
  9. /summon block_display ~4 ~ ~-3.5 {Tags:["c9_st","c9_arm"],Passengers:[{id:"block_display",Tags:["c9_arm"],block_state:{Name:"gray_concrete"},transformation:[1.1f,0f,0f,-.55f,0f,.8f,0f,0f,0f,0f,1.1f,-.55f,0f,0f,0f,1f]},{id:"block_display",Tags:["c9_arm"],block_state:{Name:"black_concrete"},transformation:[.7f,0f,0f,-.35f,0f,.45f,0f,.65f,0f,0f,.7f,-.35f,0f,0f,0f,1f]},{id:"block_display",Tags:["c9_arm","c9_la"],interpolation_duration:8,block_state:{Name:"yellow_concrete"},transformation:{left_rotation:[-.174f,0f,0f,.985f],right_rotation:[0f,0f,0f,1f],translation:[-.22f,.85f,-.22f],scale:[.45f,2.3f,.45f]}},{id:"block_display",Tags:["c9_arm","c9_ua"],interpolation_duration:8,block_state:{Name:"yellow_concrete"},transformation:{left_rotation:[.737f,0f,0f,.676f],right_rotation:[0f,0f,0f,1f],translation:[-.17f,3.01f,-1.01f],scale:[.35f,2.2f,.35f]}}]}
  10. /summon block_display ~4 ~ ~3.5 {Tags:["c9_arm"],Passengers:[{id:"block_display",Tags:["c9_arm"],block_state:{Name:"gray_concrete"},transformation:[1.1f,0f,0f,-.55f,0f,.8f,0f,0f,0f,0f,1.1f,-.55f,0f,0f,0f,1f]},{id:"block_display",Tags:["c9_arm"],block_state:{Name:"black_concrete"},transformation:[.7f,0f,0f,-.35f,0f,.45f,0f,.65f,0f,0f,.7f,-.35f,0f,0f,0f,1f]},{id:"block_display",Tags:["c9_arm","c9_la"],Rotation:[180f,0f],interpolation_duration:8,block_state:{Name:"yellow_concrete"},transformation:{left_rotation:[-.174f,0f,0f,.985f],right_rotation:[0f,0f,0f,1f],translation:[-.22f,.85f,-.22f],scale:[.45f,2.3f,.45f]}},{id:"block_display",Tags:["c9_arm","c9_ua"],Rotation:[180f,0f],interpolation_duration:8,block_state:{Name:"yellow_concrete"},transformation:{left_rotation:[.737f,0f,0f,.676f],right_rotation:[0f,0f,0f,1f],translation:[-.17f,3.01f,-1.01f],scale:[.35f,2.2f,.35f]}}]}

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

  1. /scoreboard players add #c9 c9_t 1
  2. /execute if score #c9 c9_t matches 120.. run scoreboard players set #c9 c9_t 0
  3. /execute if score #c9 c9_t matches 119 run kill @e[tag=c9_x]
  4. /execute if score #c9 c9_t matches 0 run summon block_display ~-11 ~.1 ~ {Tags:["c9_c","c9_x","c9_p"],teleport_duration:2,block_state:{Name:"iron_block"},transformation:[3f,0f,0f,-1.5f,0f,.55f,0f,.25f,0f,0f,1.5f,-.75f,0f,0f,0f,1f],Passengers:[{id:"block_display",Tags:["c9_x"],block_state:{Name:"black_concrete"},transformation:[.6f,0f,0f,.7f,0f,.6f,0f,0f,0f,0f,1.8f,-.9f,0f,0f,0f,1f]},{id:"block_display",Tags:["c9_x"],block_state:{Name:"black_concrete"},transformation:[.6f,0f,0f,-1.3f,0f,.6f,0f,0f,0f,0f,1.8f,-.9f,0f,0f,0f,1f]},{id:"block_display",Tags:["c9_x"],block_state:{Name:"tinted_glass"},transformation:[1.4f,0f,0f,-.7f,0f,.55f,0f,.8f,0f,0f,1.3f,-.65f,0f,0f,0f,1f]},{id:"block_display",Tags:["c9_x","c9_p","c9_d"],block_state:{Name:"iron_block"},transformation:[1.2f,0f,0f,-.6f,0f,.5f,0f,.3f,0f,0f,.15f,-2f,0f,0f,0f,1f]},{id:"block_display",Tags:["c9_x","c9_p","c9_d"],Rotation:[180f,0f],block_state:{Name:"iron_block"},transformation:[1.2f,0f,0f,-.6f,0f,.5f,0f,.3f,0f,0f,.15f,-2f,0f,0f,0f,1f]}]}
  5. /execute if score #c9 c9_t matches 1..115 as @e[tag=c9_c] at @s run tp @s ~0.19 ~ ~
  6. /execute if score #c9 c9_t matches 32 as @e[tag=c9_d] run data merge entity @s {interpolation_duration:8,start_interpolation:0,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-.6f,.3f,-.88f],scale:[1.2f,.5f,.15f]}}
  7. /execute if score #c9 c9_t matches 75 as @e[tag=c9_p] run data modify entity @s block_state.Name set value "minecraft:red_concrete"
  8. /execute if score #c9 c9_t matches 22..46 run particle electric_spark ~-4 ~1.1 ~ 0.2 0.2 0.85 0.12 8
  9. /execute if score #c9 c9_t matches 22..46 run particle flame ~-4 ~1.0 ~ 0.2 0.15 0.85 0.06 5
  10. /execute if score #c9 c9_t matches 62..90 run particle dust{color:[0.95,0.1,0.1],scale:1.8} ~4 ~1.1 ~ 0.35 0.35 0.9 0.05 14
  11. /execute at @e[tag=c9_c] if entity @e[tag=c9_st,distance=..4.0] as @e[tag=c9_la] run data merge entity @s {start_interpolation:0,transformation:{left_rotation:[0.242f,0f,0f,0.970f],right_rotation:[0f,0f,0f,1f],translation:[-.22f,.85f,-.22f],scale:[.45f,2.3f,.45f]}}
  12. /execute at @e[tag=c9_c] if entity @e[tag=c9_st,distance=..4.0] as @e[tag=c9_ua] run data merge entity @s {start_interpolation:0,transformation:{left_rotation:[0.924f,0f,0f,0.383f],right_rotation:[0f,0f,0f,1f],translation:[-.17f,2.88f,.86f],scale:[.35f,2.2f,.35f]}}
  13. /execute at @e[tag=c9_c] unless entity @e[tag=c9_st,distance=..4.0] as @e[tag=c9_la] run data merge entity @s {start_interpolation:0,transformation:{left_rotation:[-.174f,0f,0f,.985f],right_rotation:[0f,0f,0f,1f],translation:[-.22f,.85f,-.22f],scale:[.45f,2.3f,.45f]}}
  14. /execute at @e[tag=c9_c] unless entity @e[tag=c9_st,distance=..4.0] as @e[tag=c9_ua] run data merge entity @s {start_interpolation:0,transformation:{left_rotation:[.737f,0f,0f,.676f],right_rotation:[0f,0f,0f,1f],translation:[-.17f,3.01f,-1.01f],scale:[.35f,2.2f,.35f]}}

How it works

Frames from the test run

Robotic Factory Car Assembly Line - frame 1Robotic Factory Car Assembly Line - frame 2Robotic Factory Car Assembly Line - frame 3

Recorded on our own test server: 50 frames at about 9.9 fps. Our image check saw: A white car chassis rolls along a glowing track flanked by four yellow robotic arms that attach its side doors with flame sparks at the first station and spray-paint it red at the second.

Build it in your world

  1. Clear a flat 29x13 area of open ground and stand at the exact center block on the ground level.
  2. Run each of the 10 setup commands once in chat (or in a row of impulse command blocks positioned at the center) to build the illuminated track and four yellow robotic arms.
  3. Place 14 repeating, always-active command blocks nearby (or set them to execute positioned at your stage center coordinates) and paste one loop command into each block.
  4. Make sure chunk loading is active around the command blocks and watch the bare metal chassis glide down the track every 6 seconds.
  5. To stop and remove the assembly line, disable the repeating command blocks and run the remove commands from the center block.

Remove it again 4 commands

  1. /kill @e[tag=c9_arm]
  2. /kill @e[tag=c9_x]
  3. /scoreboard objectives remove c9_t
  4. /fill ~-14 ~-1 ~-6 ~14 ~-1 ~6 grass_block

FAQ

Can I change the finished car paint color?

Yes! In loop command 7, replace <code>minecraft:red_concrete</code> with any concrete block such as <code>minecraft:light_blue_concrete</code> or <code>minecraft:lime_concrete</code>, and update the RGB values inside <code>dust{color:[0.95,0.1,0.1],scale:1.8}</code> in loop command 10 to match.

Why do the setup and loop commands use relative coordinates like ~-4 ~ ~-3.5?

Using tilde coordinates keeps the entire assembly line centered on the stage origin without hardcoding world coordinates, so you can place it at any flat location by running the commands relative to your chosen center block.

Commands used

/data/execute/fill/kill/particle/scoreboard/summon/tp

More complex contraptions & cinematics