Build a self-driving red convertible roadster out of scaled block displays that drifts in a continuous loop around a glowing centerpiece pylon.
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.
/scoreboard objectives add c9_tick dummy/scoreboard objectives add c9_susp dummy/scoreboard players set #c9_ten c9_tick 10/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]}}/summon marker ~ ~ ~7 {Tags:["c9_car","c9_root"],Rotation:[90f,0f]}/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]}}/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]}}/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]}}/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}}}}/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]}}/scoreboard players add @e[tag=c9_root] c9_tick 1/execute as @e[tag=c9_root] store result score @s c9_susp run scoreboard players get @s c9_tick/scoreboard players operation @e[tag=c9_root] c9_susp %= #c9_ten c9_tick/execute as @e[tag=c9_root] at @s run tp @s ^ ^ ^0.42 ~3.4 ~/execute at @e[tag=c9_root] run tp @e[tag=c9_body] ~ ~ ~ ~ ~/execute at @e[tag=c9_root] run tp @e[tag=c9_driver] ^ ^0.3 ^-0.2 ~ ~/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/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]/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/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]/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/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/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/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 2setup #5 Summons the invisible <code>c9_root</code> marker entity 7 blocks away from the center pylon, rotated 90 degrees so its circular drive path centers around the pylon.setup #6 Summons the main red concrete chassis block display with <code>teleport_duration:1</code> for smooth motion and <code>interpolation_duration:3</code> for suspension bouncing.setup #7 Summons the light blue stained glass windshield and tilts it backward using a quaternion in <code>left_rotation</code>.loop #4 Advances the root marker forward by <code>0.42</code> blocks using local coordinates (<code>^ ^ ^0.42</code>) while turning <code>3.4</code> degrees per tick to form a smooth circle around the center stage.loop #8 Every 10 ticks, shifts the red chassis translation slightly upward and triggers interpolation so the body bounces on its suspension.


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.
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.
/kill @e[tag=c9_car]/scoreboard objectives remove c9_tick/scoreboard objectives remove c9_suspAll of the block_display parts have teleport_duration set to 1, which tells the Minecraft client to smoothly interpolate their movement between ticks.
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.
▶Steampunk Dirigible Anchor Winch MooringVehiclesMedium22 cmds
▶Holographic Wind Tunnel Aerodynamics TestVehiclesExpert25 cmds
▶Articulated Hydraulic Demolition ExcavatorVehiclesHard24 cmds
▶Phantom Express Bullet TrainVehiclesHard24 cmds
▶Spinning Biplane PropellerVehiclesMedium24 cmds
▶Armored Vigilante Block-Display CruiserVehiclesHard24 cmds