Self-Driving Block Display Roadster

Build a self-driving red convertible roadster out of scaled block displays that drifts in a continuous loop around a glowing centerpiece pylon.

Java EditionHolograms & Display EntitiesHard24 commandsTested on a real 26.2 & 26.3 server
A red block display roadster drifts in a circle around a sea lantern pillar with smoke trails. Download the GIF Video & GIF © www.9minecraft.net

VehiclesTechnologyRedGoldCyanDecorationServer LobbyBlock displaysArmor standsSmooth animation (interpolation)Glowing outlinesRotation math21+ commands

Watch a sleek red convertible roadster cruise in a continuous loop around a glowing sea lantern pylon. Built entirely from scaled block displays, the vehicle features a sloped glass windshield, golden racing stripes, a driver wearing a golden racing helmet, and four wheels.

As the car drives around the stage, its chassis bounces smoothly on working suspension while drifting smoke and fiery exhaust sparks trail from the tailpipes.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_tick dummy
  2. /scoreboard objectives add c9_susp dummy
  3. /scoreboard players set #c9_ten c9_tick 10
  4. /summon block_display ~ ~ ~ {Tags:["c9_car","c9_hub"],Glowing:1b,block_state:{Name:"minecraft:sea_lantern"},transformation:{translation:[-0.6f,0f,-0.6f],scale:[1.2f,2.6f,1.2f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  5. /summon marker ~ ~ ~7 {Tags:["c9_car","c9_root"],Rotation:[90f,0f]}
  6. /execute at @e[tag=c9_root] run summon block_display ~ ~ ~ {Tags:["c9_car","c9_body","c9_chassis"],teleport_duration:1,interpolation_duration:3,block_state:{Name:"minecraft:red_concrete"},transformation:{translation:[-0.9f,0.35f,-1.8f],scale:[1.8f,0.55f,3.6f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  7. /execute at @e[tag=c9_root] run summon block_display ~ ~ ~ {Tags:["c9_car","c9_body","c9_glass"],teleport_duration:1,interpolation_duration:2,block_state:{Name:"minecraft:light_blue_stained_glass"},transformation:{translation:[-0.8f,0.85f,0.3f],scale:[1.6f,0.6f,0.2f],left_rotation:[-0.2588f,0f,0f,0.9659f],right_rotation:[0f,0f,0f,1f]}}
  8. /execute at @e[tag=c9_root] run summon block_display ~ ~ ~ {Tags:["c9_car","c9_body","c9_trim"],teleport_duration:1,interpolation_duration:2,block_state:{Name:"minecraft:yellow_concrete"},transformation:{translation:[-0.25f,0.37f,-1.85f],scale:[0.5f,0.56f,3.7f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  9. /execute at @e[tag=c9_root] run summon armor_stand ~ ~ ~ {Tags:["c9_car","c9_driver"],Invisible:1b,NoGravity:1b,Small:1b, equipment:{head:{id:"minecraft:golden_helmet",count:1},chest:{id:"minecraft:leather_chestplate",count:1,components:{"minecraft:dyed_color":11546150}}}}
  10. /execute at @e[tag=c9_root] run summon block_display ~ ~ ~ {Tags:["c9_car","c9_body","c9_axles"],teleport_duration:1,block_state:{Name:"minecraft:black_concrete"},transformation:{translation:[-1.05f,0.1f,-1.2f],scale:[2.1f,0.5f,2.4f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}

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

  1. /scoreboard players add @e[tag=c9_root] c9_tick 1
  2. /execute as @e[tag=c9_root] store result score @s c9_susp run scoreboard players get @s c9_tick
  3. /scoreboard players operation @e[tag=c9_root] c9_susp %= #c9_ten c9_tick
  4. /execute as @e[tag=c9_root] at @s run tp @s ^ ^ ^0.42 ~3.4 ~
  5. /execute at @e[tag=c9_root] run tp @e[tag=c9_body] ~ ~ ~ ~ ~
  6. /execute at @e[tag=c9_root] run tp @e[tag=c9_driver] ^ ^0.3 ^-0.2 ~ ~
  7. /execute as @e[tag=c9_root,scores={c9_susp=0}] run data modify entity @e[tag=c9_chassis,limit=1] start_interpolation set value 0
  8. /execute as @e[tag=c9_root,scores={c9_susp=0}] run data modify entity @e[tag=c9_chassis,limit=1] transformation.translation set value [-0.9f,0.44f,-1.8f]
  9. /execute as @e[tag=c9_root,scores={c9_susp=5}] run data modify entity @e[tag=c9_chassis,limit=1] start_interpolation set value 0
  10. /execute as @e[tag=c9_root,scores={c9_susp=5}] run data modify entity @e[tag=c9_chassis,limit=1] transformation.translation set value [-0.9f,0.34f,-1.8f]
  11. /execute at @e[tag=c9_root] positioned ^0.95 ^0.2 ^-1.1 run particle minecraft:crit ~ ~ ~ 0.1 0.1 0.1 0.05 1
  12. /execute at @e[tag=c9_root] positioned ^-0.95 ^0.2 ^-1.1 run particle minecraft:crit ~ ~ ~ 0.1 0.1 0.1 0.05 1
  13. /execute at @e[tag=c9_root] positioned ^0.45 ^0.4 ^-1.9 run particle minecraft:campfire_cosy_smoke ~ ~ ~ 0.04 0.04 0.04 0.01 1
  14. /execute at @e[tag=c9_root] positioned ^-0.45 ^0.4 ^-1.9 run particle minecraft:dust{color:[1.0,0.4,0.0],scale:1.4} ~ ~ ~ 0.1 0.05 0.1 0 2

How it works

Frames from the test run

Self-Driving Block Display Roadster - frame 1Self-Driving Block Display Roadster - frame 2Self-Driving Block Display Roadster - frame 3

Recorded on our own test server: 59 frames at about 9.8 fps. Our image check saw: A red convertible roadster with a gold stripe, glass windshield, and golden-helmeted driver circles a sea lantern pillar while leaving behind smoke and fire particles.

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 an open flat area (at least 20x20 blocks clear) and run each of the 10 setup commands in chat once.
  2. Place 14 repeating command blocks in a line or column nearby, all set to Always Active.
  3. Paste one loop command into each repeating command block in order.
  4. Watch the red convertible roadster immediately begin cruising around the glowing sea lantern pylon.
  5. When finished, run the remove commands in chat to clean up all display entities and scoreboards.

Use it with real players

To steer the roadster yourself instead of letting it drive in an automatic loop, replace loop command 4 with /execute as @e[tag=c9_root] at @s rotated as @p[ limit=1] run tp @s ^ ^ ^0.45 ~ 0 so the car drives in whichever direction you look.

Remove it again 3 commands

  1. /kill @e[tag=c9_car]
  2. /scoreboard objectives remove c9_tick
  3. /scoreboard objectives remove c9_susp

FAQ

Why does the car move smoothly instead of jittering every tick?

All of the block_display parts have teleport_duration set to 1, which tells the Minecraft client to smoothly interpolate their movement between ticks.

How do I make the car drive in a wider or tighter circle?

In loop command 4, lower the rotation angle (~3.4) to make a wider circle, or increase it to make the car turn in a tighter loop.

Commands used

/data/execute/particle/scoreboard/summon/tp

Similar creations

Join 9Minecraft News & Guides