Autonomous Gunship Patrol

Build an automated multi-part display gunship with spinning rotors that patrols the arena and fires explosive rocket barrages at ground targets.

Java EditionHolograms & Display EntitiesHard23 commandsTested on a real 26.2 & 26.3 server
A custom block helicopter circles the night sky, firing explosive rounds at glowing armor stand targets below. Download the GIF Video & GIF © www.9minecraft.net

VehiclesTechnologyFireBlackCyanOrangeBoss FightMini-gameMap MakingParticlesBlock displaysArmor standsSmooth animation (interpolation)Scoreboard timersExecute chainsRiding & passengersGlowing outlinesRotation math21+ commands

The Autonomous Gunship Patrol turns display entities into a hovering military rotorcraft. Built from scaled netherite, cyan glass, and iron block displays, the helicopter circles above the arena with high-speed spinning rotor blades while locking onto armored target dummies below.

As it flies along its circular patrol route, the gunship sweeps a red laser targeting beam across the battlefield and unleashes rapid-fire rocket salvos that detonate on impact with fiery particle shockwaves.

1. Setup - type these once 9 commands

  1. /scoreboard objectives add c9_tick dummy
  2. /summon armor_stand ~ ~ ~ {Tags:["c9_all","c9_hub"],NoGravity:1b,Invisible:1b,Marker:1b}
  3. /summon armor_stand ~ ~8 ~-9 {Tags:["c9_all","c9_gunship"],NoGravity:1b,Invisible:1b,Marker:1b,Passengers:[{id:"minecraft:block_display",Tags:["c9_all","c9_hull"],Glowing:1b,glow_color_override:43690,teleport_duration:2,block_state:{Name:"minecraft:netherite_block"},transformation:{translation:[-0.9f,-0.6f,-1.8f],scale:[1.8f,1.2f,3.6f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}},{id:"minecraft:block_display",Tags:["c9_all","c9_cockpit"],Glowing:1b,glow_color_override:5636095,teleport_duration:2,block_state:{Name:"minecraft:cyan_stained_glass"},transformation:{translation:[-0.75f,-0.3f,0.8f],scale:[1.5f,0.9f,1.4f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}},{id:"minecraft:block_display",Tags:["c9_all","c9_tail"],teleport_duration:2,block_state:{Name:"minecraft:polished_blackstone"},transformation:{translation:[-0.35f,-0.2f,-4.8f],scale:[0.7f,0.7f,3.2f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}]}
  4. /summon block_display ~ ~8 ~-9 {Tags:["c9_all","c9_part","c9_wings"],Glowing:1b,glow_color_override:16755200,teleport_duration:2,block_state:{Name:"minecraft:anvil"},transformation:{translation:[-2.6f,-0.4f,-0.5f],scale:[5.2f,0.4f,1.2f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  5. /summon block_display ~ ~8 ~-9 {Tags:["c9_all","c9_part","c9_rotor1"],Glowing:1b,glow_color_override:16777215,teleport_duration:1,block_state:{Name:"minecraft:iron_block"},transformation:{translation:[-3.5f,0.75f,-0.2f],scale:[7.0f,0.12f,0.4f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  6. /summon block_display ~ ~8 ~-9 {Tags:["c9_all","c9_part","c9_rotor2"],Glowing:1b,glow_color_override:16777215,teleport_duration:1,block_state:{Name:"minecraft:iron_block"},transformation:{translation:[-0.2f,0.75f,-3.5f],scale:[0.4f,0.12f,7.0f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  7. /summon armor_stand ~5 ~ ~3 {Tags:["c9_all","c9_target"],Glowing:1b,NoGravity:1b,equipment:{head:{id:"minecraft:carved_pumpkin",count:1},chest:{id:"minecraft:iron_chestplate",count:1},legs:{id:"minecraft:iron_leggings",count:1},feet:{id:"minecraft:iron_boots",count:1}}}
  8. /summon armor_stand ~-5 ~ ~2 {Tags:["c9_all","c9_target"],Glowing:1b,NoGravity:1b,equipment:{head:{id:"minecraft:carved_pumpkin",count:1},chest:{id:"minecraft:chainmail_chestplate",count:1},legs:{id:"minecraft:chainmail_leggings",count:1},feet:{id:"minecraft:chainmail_boots",count:1}}}
  9. /summon armor_stand ~ ~ ~-5 {Tags:["c9_all","c9_target"],Glowing:1b,NoGravity:1b,equipment:{head:{id:"minecraft:carved_pumpkin",count:1},chest:{id:"minecraft:golden_chestplate",count:1},legs:{id:"minecraft:golden_leggings",count:1},feet:{id:"minecraft:golden_boots",count:1}}}

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

  1. /scoreboard players add @e[tag=c9_hub] c9_tick 1
  2. /execute if score @e[tag=c9_hub,limit=1] c9_tick matches 60.. run scoreboard players set @e[tag=c9_hub] c9_tick 0
  3. /execute as @e[tag=c9_hub] at @s run tp @s ~ ~ ~ ~3 ~
  4. /execute as @e[tag=c9_hub] at @s positioned ^ ^8 ^9 facing entity @e[tag=c9_target,limit=1,sort=nearest] feet run tp @e[tag=c9_gunship] ~ ~ ~ ~ ~
  5. /execute at @e[tag=c9_gunship] run tp @e[tag=c9_wings] ~ ~ ~ ~ ~
  6. /execute at @e[tag=c9_gunship] as @e[tag=c9_rotor1] run tp @s ~ ~ ~ ~47 ~
  7. /execute at @e[tag=c9_gunship] as @e[tag=c9_rotor2] run tp @s ~ ~ ~ ~47 ~
  8. /execute at @e[tag=c9_gunship] rotated ~ 0 run particle cloud ~ ~0.8 ~ 2.2 0.1 2.2 0.05 4 force
  9. /execute at @e[tag=c9_gunship] run particle dust{color:[1.0,0.1,0.1],scale:1.2} ^ ^-0.3 ^3 0 0 0 0 1 force
  10. /execute at @e[tag=c9_gunship] run particle dust{color:[1.0,0.1,0.1],scale:1.2} ^ ^-0.3 ^6 0 0 0 0 1 force
  11. /execute if score @e[tag=c9_hub,limit=1] c9_tick matches 1..21 at @e[tag=c9_gunship] run summon area_effect_cloud ^1.6 ^-0.4 ^1.2 {Tags:["c9_all","c9_missile"],Duration:22,Radius:0f}
  12. /execute as @e[tag=c9_missile] at @s facing entity @e[tag=c9_target,limit=1,sort=nearest] eyes run tp @s ^ ^ ^0.95 ~ ~
  13. /execute at @e[tag=c9_missile] run particle flame ~ ~ ~ 0.1 0.1 0.1 0.02 3 force
  14. /execute as @e[tag=c9_missile] at @s if entity @e[tag=c9_target,distance=..1.8] run particle explosion_emitter ~ ~ ~ 0 0 0 0 1 force

How it works

Frames from the test run

Autonomous Gunship Patrol - frame 1Autonomous Gunship Patrol - frame 2Autonomous Gunship Patrol - frame 3

Recorded on our own test server: 59 frames at about 9.7 fps. Our image check saw: A custom helicopter made of dark blocks and rotor blades circles above an arena, bombarding glowing armored stands with explosions and fire.

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. Create a flat area with at least 20 blocks of open space around the center.
  2. Run each of the 9 setup commands once in chat while standing at the center of your arena.
  3. Place a line of 14 Repeating Command Blocks set to Always Active at the exact same center position (or wrap them in an execute positioned command pointing to the center).
  4. Paste one loop command into each repeating command block in order.
  5. Watch the gunship begin its orbit, spin its blades, and fire homing salvos at the target dummies.

Use it with real players

To make the gunship attack monsters or enemy players instead of the dummy armor stands, replace tag=c9_target in loop commands 4, 12, and 14 with type=#minecraft:raiders or type=zombie. You can also add a real damage command on impact by running /execute at @e[tag=c9_missile] run damage @e[type=zombie,distance=..2,limit=1] 6 minecraft:explosion.

Remove it again 2 commands

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

FAQ

Why do the display parts move smoothly without jittering?

Each block_display entity uses the teleport_duration NBT tag set to 1 or 2 ticks, which tells the Minecraft client to smoothly interpolate movement and rotation between ticks.

Will the missiles lag my world if I leave it running?

No. The missiles are area_effect_cloud entities with a Duration of 22 ticks, so they automatically despawn after just over one second even if they miss a target.

Commands used

/execute/particle/scoreboard/summon/tp

Similar creations

Join 9Minecraft News & Guides