Watch custom armor stand athletes dribble, pass, and perform a fiery slam dunk with realistic arc physics on a miniature court using only vanilla commands.
Statues & FiguresFireCelebrationRedBlueOrangeDecorationMini-gameServer LobbyItem displaysArmor standsSmooth animation (interpolation)Block building (fill/setblock/clone)Glowing outlines21+ commands
This command creation builds a miniature basketball court where two custom-dressed armor stand teammates take on a defender in an automated showdown. Using a 120-tick scoreboard cycle, the point guard dribbles down the hardwood, lobs a high-arcing pass over the defender, and sets up the forward for an explosive alley-oop slam dunk.
The basketball is rendered using a scaled item_display entity with smooth teleport interpolation and continuous flame trails. Every dribble, pass, and rim-shaking dunk is synchronized with custom sound effects and particle bursts.
/scoreboard objectives add c9_t dummy/fill ~-8 ~-1 ~-5 ~8 ~-1 ~5 stripped_oak_wood/fill ~-6 ~-1 ~-3 ~6 ~-1 ~3 stripped_birch_wood/fill ~ ~-1 ~-3 ~ ~-1 ~3 quartz_block/fill ~6 ~ ~ ~6 ~3 ~ iron_bars/fill ~6 ~3 ~-1 ~6 ~4 ~1 quartz_block/setblock ~5 ~3 ~ cobweb/summon armor_stand ~-5 ~ ~-2 {Tags:["c9_e","c9_p1"],NoGravity:1b,ShowArms:1b,Rotation:[-90f,0f],equipment:{chest:{id:"minecraft:leather_chestplate",components:{"minecraft:dyed_color":16711680}},legs:{id:"minecraft:leather_leggings",components:{"minecraft:dyed_color":16711680}},feet:{id:"minecraft:leather_boots",components:{"minecraft:dyed_color":16777215}},head:{id:"minecraft:player_head"}}}/summon armor_stand ~-2 ~ ~2 {Tags:["c9_e","c9_p2"],NoGravity:1b,ShowArms:1b,Rotation:[-90f,0f],equipment:{chest:{id:"minecraft:leather_chestplate",components:{"minecraft:dyed_color":16711680}},legs:{id:"minecraft:leather_leggings",components:{"minecraft:dyed_color":16711680}},feet:{id:"minecraft:leather_boots",components:{"minecraft:dyed_color":16777215}},head:{id:"minecraft:player_head"}}}/summon item_display ~-4 ~1 ~-2 {Tags:["c9_e","c9_ball"],Glowing:1b,glow_color_override:16744192,teleport_duration:2,item:{id:"minecraft:orange_concrete"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[0.45f,0.45f,0.45f]}}/execute unless entity @e[tag=c9_def] run summon armor_stand ~2 ~ ~ {Tags:["c9_e","c9_def"],NoGravity:1b,ShowArms:1b,Rotation:[90f,0f],equipment:{chest:{id:"minecraft:leather_chestplate",components:{"minecraft:dyed_color":255}},legs:{id:"minecraft:leather_leggings",components:{"minecraft:dyed_color":255}},feet:{id:"minecraft:leather_boots",components:{"minecraft:dyed_color":16777215}},head:{id:"minecraft:player_head"}}}/scoreboard players add #t c9_t 1/execute if score #t c9_t matches 120.. run scoreboard players set #t c9_t 0/execute if score #t c9_t matches 1 run tp @e[tag=c9_p1] ~-5 ~ ~-2 -90 0/execute if score #t c9_t matches 1 run tp @e[tag=c9_p2] ~-2 ~ ~2 -90 0/execute if score #t c9_t matches 1..30 as @e[tag=c9_p1] at @s run tp @s ~0.12 ~ ~/execute if score #t c9_t matches 1..30 at @e[tag=c9_p1] run tp @e[tag=c9_ball] ~0.6 ~0.8 ~/execute if score #t c9_t matches 8 at @e[tag=c9_p1] run tp @e[tag=c9_ball] ~0.6 ~0.2 ~/execute if score #t c9_t matches 22 at @e[tag=c9_p1] run tp @e[tag=c9_ball] ~0.6 ~0.2 ~/execute if score #t c9_t matches 31..55 as @e[tag=c9_ball] at @s run tp @s ~0.07 ~0.06 ~0.16/execute if score #t c9_t matches 56..85 as @e[tag=c9_p2] at @s run tp @s ~0.22 ~0.1 ~-0.07 -90 -20/execute if score #t c9_t matches 56..85 at @e[tag=c9_p2] run tp @e[tag=c9_ball] ~0.5 ~1.8 ~/execute if score #t c9_t matches 86 at @e[tag=c9_ball] run particle explosion ~ ~ ~ 0.2 0.2 0.2 0.1 10/execute at @e[tag=c9_ball] run particle flame ~ ~ ~ 0.05 0.05 0.05 0.01 2setup #10 Summons the basketball as an <code>item_display</code> showing an orange concrete block scaled down to 0.45x size, with <code>teleport_duration:2</code> for smooth interpolation between movement ticks.loop #1 Automatically spawns the blue-team defender at the start of the loop if one is not already on the court, keeping the setup within the 10-command limit.loop #7 Keeps the ball hovering in front of Player 1 while they advance down the court during ticks 1 to 30, while the following two commands dip the ball down on ticks 8 and 22 to create a realistic dribble bounce.loop #10 During ticks 31 to 55, the ball leaves Player 1's hands and travels diagonally upward across the court in a high pass toward Player 2.loop #11 Ticks 56 to 85 launch Player 2 diagonally into the air toward the cobweb hoop while holding the ball overhead, culminating in an explosion particle burst at the rim on tick 86.


Recorded on our own test server: 59 frames at about 9.8 fps. Our image check saw: On a miniature wooden basketball court with a cobweb hoop, two red-armored stands execute an alley-oop dunk over a blue-armored defender using an orange item as a basketball.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To let real players control the ball instead of the automated armor stands, replace the timed teleport commands with an execute command that teleports @e[tag=c9_ball] relative to the nearest player holding a tripwire hook (acting as a basketball controller), and launch the ball forward using motion vectors when the player drops the item.
/kill @e[tag=c9_e]/scoreboard objectives remove c9_t/fill ~-8 ~ ~-5 ~8 ~5 ~5 air/fill ~-8 ~-1 ~-5 ~8 ~-1 ~5 grass_blockThe basketball is an item_display entity configured with teleport_duration set to 2 ticks, which tells the Minecraft client to smoothly interpolate its position whenever a command teleports it.
Yes! Edit the dyed_color integer values inside the leather armor equipment components in the summon commands for c9_p1, c9_p2, and c9_def to any decimal RGB color code.
▶Choreographed Armor Stand Animation ShowStatues & FiguresMedium23 cmds
▶Chroma-Shift Armor StandStatues & FiguresEasy22 cmds
▶Chromatic Shifting Armor DisplayStatues & FiguresEasy21 cmds
▶Colossal Titan DissolveStatues & FiguresExpert24 cmds
▶Flossing Armor Stand Dance AnimationStatues & FiguresMedium22 cmds
▶Idle Armor Stand TheaterStatues & FiguresMedium25 cmds