2D Arcade Dino Runner

Build a giant self-playing 2D Dino Runner arcade cabinet using scaled display entities, scrolling cacti, drifting clouds, and a live score counter.

Java EditionHolograms & Display EntitiesHard25 commandsTested on a real 26.2 & 26.3 server
A giant 2D arcade screen in Minecraft shows a green dinosaur jumping over scrolling cacti obstacles. Download the GIF Video & GIF © www.9minecraft.net

Signs & BillboardsTechnologyNatureGreenYellowWhiteDecorationMini-gameServer LobbyBlock displaysText displaysSmooth animation (interpolation)Riding & passengers21+ commands

This command creation builds a massive 2D arcade screen right in your world using scaled block displays and glowing text displays. A pixelated lime dinosaur runs in place against a bright desert sky while green cacti scroll across the sand and puffy white clouds drift by overhead.

The arcade game plays itself automatically: whenever a cactus gets close to the dinosaur, the dino leaps into the air with a puff of cloud particles, clears the obstacle, and adds a point to the live scoreboard at the top of the bezel.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_t dummy
  2. /summon block_display ~ ~1 ~ {Tags:["c9_all","c9_scr"],block_state:{Name:"minecraft:black_concrete"},transformation:{translation:[-8.5f,0.0f,-0.5f],scale:[17.0f,11.0f,0.5f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  3. /summon block_display ~ ~1 ~ {Tags:["c9_all","c9_sky"],block_state:{Name:"minecraft:light_blue_concrete"},transformation:{translation:[-7.5f,2.0f,-0.2f],scale:[15.0f,8.0f,0.3f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  4. /summon block_display ~ ~1 ~ {Tags:["c9_all","c9_gnd"],block_state:{Name:"minecraft:sandstone"},transformation:{translation:[-7.5f,1.0f,-0.15f],scale:[15.0f,1.0f,0.4f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  5. /summon block_display ~ ~1 ~ {Tags:["c9_all","c9_sun"],Glowing:1b,glow_color_override:16776960,block_state:{Name:"minecraft:yellow_concrete"},transformation:{translation:[4.5f,7.5f,-0.1f],scale:[1.5f,1.5f,0.4f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  6. /summon block_display ~-4 ~3 ~0.15 {Tags:["c9_all","c9_dino"],Glowing:1b,glow_color_override:5635925,teleport_duration:1,block_state:{Name:"minecraft:lime_concrete"},transformation:{translation:[-0.5f,0.0f,0.0f],scale:[1.0f,1.4f,0.4f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},Passengers:[{id:"minecraft:block_display",Tags:["c9_all"],Glowing:1b,glow_color_override:5635925,block_state:{Name:"minecraft:lime_concrete"},transformation:{translation:[0.1f,1.0f,0.02f],scale:[0.9f,0.8f,0.4f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}},{id:"minecraft:block_display",Tags:["c9_all"],block_state:{Name:"minecraft:black_concrete"},transformation:{translation:[0.6f,1.4f,0.06f],scale:[0.25f,0.25f,0.42f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}},{id:"minecraft:block_display",Tags:["c9_all"],Glowing:1b,glow_color_override:5635925,block_state:{Name:"minecraft:lime_concrete"},transformation:{translation:[-0.9f,0.3f,0.02f],scale:[0.5f,0.5f,0.4f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}]}
  7. /summon text_display ~ ~11.1 ~0.2 {Tags:["c9_all","c9_txt"],billboard:"fixed",alignment:"center",background:0,transformation:{translation:[0.0f,0.0f,0.0f],scale:[2.2f,2.2f,2.2f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},text:{"text":"DINO RUNNER - 0","color":"gold","bold":true}}
  8. /scoreboard players set #tick c9_t 0
  9. /scoreboard players set #jump c9_t 0
  10. /scoreboard players set #score c9_t 0

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

  1. /scoreboard players add #tick c9_t 1
  2. /execute if score #tick c9_t matches 38.. run scoreboard players set #tick c9_t 0
  3. /execute if score #tick c9_t matches 1 run summon block_display ~6.8 ~3 ~0.15 {Tags:["c9_all","c9_cac"],Glowing:1b,glow_color_override:43520,teleport_duration:1,block_state:{Name:"minecraft:green_concrete"},transformation:{translation:[-0.3f,0.0f,0.0f],scale:[0.6f,1.6f,0.35f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},Passengers:[{id:"minecraft:block_display",Tags:["c9_all"],Glowing:1b,glow_color_override:43520,block_state:{Name:"minecraft:green_concrete"},transformation:{translation:[-0.7f,0.6f,0.0f],scale:[1.4f,0.35f,0.35f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}]}
  4. /execute if score #tick c9_t matches 19 run summon block_display ~6.8 ~8.5 ~0.05 {Tags:["c9_all","c9_cld"],teleport_duration:1,block_state:{Name:"minecraft:white_concrete"},transformation:{translation:[-0.9f,0.0f,0.0f],scale:[1.8f,0.6f,0.25f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  5. /execute as @e[tag=c9_cac] at @s run tp @s ~-0.25 ~ ~
  6. /execute as @e[tag=c9_cld] at @s run tp @s ~-0.12 ~ ~
  7. /execute positioned ~-7.2 ~3 ~ as @e[tag=c9_cac,distance=..1.5] run kill @s
  8. /execute positioned ~-7.2 ~8.5 ~ as @e[tag=c9_cld,distance=..1.5] run kill @s
  9. /execute at @e[tag=c9_dino] if score #jump c9_t matches 0 if entity @e[tag=c9_cac,distance=..2.6] run scoreboard players set #jump c9_t 16
  10. /execute if score #jump c9_t matches 16 at @e[tag=c9_dino] run particle cloud ~ ~ ~0.2 0.2 0.1 0.1 0.05 8
  11. /execute if score #jump c9_t matches 16 run scoreboard players add #score c9_t 1
  12. /execute if score #jump c9_t matches 16 as @e[tag=c9_txt] run data modify entity @s text set value [{"text":"DINO RUNNER - SCORE: ","color":"gold","bold":true},{"score":{"name":"#score","objective":"c9_t"},"color":"green"}]
  13. /execute if score #jump c9_t matches 9..16 as @e[tag=c9_dino] at @s run tp @s ~ ~0.32 ~
  14. /execute if score #jump c9_t matches 1..8 as @e[tag=c9_dino] at @s run tp @s ~ ~-0.32 ~
  15. /execute if score #jump c9_t matches 1.. run scoreboard players remove #jump c9_t 1

How it works

Frames from the test run

2D Arcade Dino Runner - frame 12D Arcade Dino Runner - frame 22D Arcade Dino Runner - frame 3

Recorded on our own test server: 60 frames at about 9.9 fps. Our image check saw: A large 2D arcade screen in Minecraft displays a glowing green dinosaur jumping over moving cacti beneath white clouds and a yellow sun while a score counter increases.

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 in the center of a flat open area facing south (or view the screen from the south looking north) and make sure command blocks are enabled.
  2. Run each of the 10 setup commands once in chat or inside impulse command blocks powered by a button to build the arcade screen, dinosaur, and scoreboards.
  3. Place a row of 14 repeating command blocks (or 1 repeating command block chaining into 13 chain command blocks), all set to Always Active.
  4. Paste the 14 loop commands into those command blocks in order so they execute every tick from the same center coordinates.
  5. Watch the cacti and clouds scroll across the screen while the dinosaur automatically jumps over obstacles and tracks its high score.

Use it with real players

To play the game manually instead of using auto-jump, remove loop command 9 (the distance detector) and replace it with /execute if entity @a[predicate=...] or a right-click carrot-on-a-stick detector that sets #jump c9_t to 16 whenever #jump c9_t matches 0.

Remove it again 2 commands

  1. /kill @e[tag=c9_all]
  2. /scoreboard objectives remove c9_t

FAQ

Why does the dinosaur move smoothly instead of snapping each tick?

The dinosaur, cacti, and clouds all use the teleport_duration:1 NBT tag on their block_display entities, which tells the Minecraft client to smoothly interpolate their movement between ticks.

Does this creation cause lag over time?

No. Cacti and clouds are automatically removed as soon as they reach the left bezel of the screen, keeping the total entity count under 20 at all times.

Commands used

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

Similar creations

Join 9Minecraft News & Guides