Build an automated twin-barrel Gatling sentry in vanilla Minecraft that spins up an overheating core and sprays spirals of fire, red lasers, and smoke.
Projectiles & MissilesTechnologyIndustrialFireOrangeRedBlackPvPMini-gameMap MakingItem displaysSmooth animation (interpolation)Block building (fill/setblock/clone)Glowing outlinesRotation math21+ commands
The Overclocked Gatling Sentry mounts a glowing netherite and iron cannon onto a heavy iron pedestal lit by an internal reactor block. Once active, its magma core spins in reverse and spews lava sparks while the twin barrels whip around at high speed.
As the turret rotates, one barrel fires a stream of blazing flames while the second traces a bright crimson laser beam beside it, wrapping the arena in thick smoke and a sweeping ring of explosions.
/scoreboard objectives add c9_timer dummy/fill ~-1 ~ ~-1 ~1 ~ ~1 polished_blackstone_slab[type=bottom]/fill ~ ~ ~ ~ ~1 ~ iron_block/setblock ~ ~2 ~ shroomlight/summon item_display ~ ~2.25 ~ {Tags:["c9_clean","c9_ring"],item:{id:"minecraft:lodestone",count:1},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.35f,0.35f,1.35f],translation:[0f,0f,0f]}}/summon item_display ~ ~2.65 ~ {Tags:["c9_clean","c9_sentry"],Glowing:1b,glow_color_override:16733525,teleport_duration:1,Rotation:[0f,0f],item:{id:"minecraft:netherite_block",count:1},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.05f,0.75f,1.25f],translation:[0f,0f,0f]}}/summon item_display ~ ~2.65 ~ {Tags:["c9_clean","c9_barrel1"],Glowing:1b,glow_color_override:16755200,teleport_duration:1,item:{id:"minecraft:iron_block",count:1},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.32f,0.32f,2.3f],translation:[0f,0f,0f]}}/summon item_display ~ ~2.65 ~ {Tags:["c9_clean","c9_barrel2"],Glowing:1b,glow_color_override:16755200,teleport_duration:1,item:{id:"minecraft:iron_block",count:1},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.32f,0.32f,2.3f],translation:[0f,0f,0f]}}/summon item_display ~ ~3.35 ~ {Tags:["c9_clean","c9_core"],Glowing:1b,glow_color_override:16720896,teleport_duration:1,item:{id:"minecraft:magma_block",count:1},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.7f,0.7f,0.7f],translation:[0f,0f,0f]}}/execute as @e[tag=c9_sentry] at @s run tp @s ~ ~ ~ ~19 ~/execute at @e[tag=c9_sentry] run tp @e[tag=c9_barrel1] ^-0.34 ^0.05 ^1.15 ~ ~/execute at @e[tag=c9_sentry] run tp @e[tag=c9_barrel2] ^0.34 ^0.05 ^1.15 ~ ~/execute as @e[tag=c9_core] at @s run tp @s ~ ~ ~ ~-28 ~/execute at @e[tag=c9_sentry] run summon marker ~ ~ ~ {Tags:["c9_clean","c9_bullet"]}/scoreboard players add @e[tag=c9_bullet] c9_timer 1/execute at @e[tag=c9_sentry] run tp @e[tag=c9_bullet,scores={c9_timer=1}] ^-0.34 ^0.05 ^2.3 ~ 8/execute as @e[tag=c9_bullet,scores={c9_timer=2..}] at @s run tp @s ^ ^ ^1.2/execute at @e[tag=c9_core] run particle lava ~ ~0.2 ~ 0.25 0.25 0.25 0 2 force/execute at @e[tag=c9_bullet] run particle large_smoke ^0.34 ^ ^ 0.25 0.1 0.25 0.02 2 force/execute at @e[tag=c9_bullet] run particle flame ^ ^ ^ 0.07 0.07 0.07 0.02 6 force/execute at @e[tag=c9_bullet] run particle dust{color:[1.0,0.08,0.08],scale:2.2} ^0.68 ^ ^ 0.06 0.06 0.06 0 6 force/execute at @e[tag=c9_bullet,scores={c9_timer=10..}] run particle explosion ^0.34 ^ ^ 0.2 0.1 0.2 0 1 force/kill @e[tag=c9_bullet,scores={c9_timer=10..}]setup #6 Summons the main netherite turret body as a glowing item_display tagged c9_sentry, which also acts as the rotation pivot for both barrels.setup #9 Places a glowing magma_block display above the turret housing to serve as the overheating reactor core.loop #2 Locks the left iron barrel to local offset ^-0.34 ^0.05 ^1.15 relative to the spinning turret body so both barrels sweep together.loop #7 Snaps each newly spawned projectile marker (c9_timer=1) to the left muzzle with the turret's current yaw and an 8-degree downward angle.loop #12 Draws the right barrel's red tracer laser at local offset ^0.68 ^ ^ from the same projectile marker, creating two parallel streams with half the entities.loop #14 Removes projectile markers once c9_timer reaches 10 ticks so the active entity count stays around 14 at all times.


Recorded on our own test server: 50 frames at about 9.8 fps. Our image check saw: A glowing netherite and iron twin-barreled turret topped with a magma block rotates on an iron pedestal, covering the surrounding field in dense flames, crimson dust, smoke, and sweep particles.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To make the sentry damage hostile mobs in survival worlds, add one extra chain command block to the loop running /execute at @e[tag=c9_bullet] as @e[type=#minecraft:raiders,distance=..2,limit=1] run damage @s 6 minecraft:fireball (or filter with type=!player,tag=!c9_clean,distance=..1.8,limit=1). You can also switch the first repeating command block to Needs Redstone and wire a lever to the pedestal so players can toggle the sentry on and off during mob waves.
/kill @e[tag=c9_clean]/fill ~-1 ~ ~-1 ~1 ~2 ~1 air/scoreboard objectives remove c9_timerNo. Each tick spawns a single lightweight marker entity that renders both barrel streams and gets removed after 10 ticks, keeping the entire contraption at roughly 14 entities.
Edit the first loop command's ~19 yaw step to change rotation speed, or change the pitch value 8 in the seventh loop command to aim higher or lower.
▶Magnetic Rail-Track Javelin AssemblerProjectiles & MissilesExpert22 cmds
▶Steampunk Piston-Hammer Pilebunker GauntletProjectiles & MissilesMedium24 cmds
▶16-Way Automated ArtilleryProjectiles & MissilesHard25 cmds
▶Heat-Seeking Rocket LauncherProjectiles & MissilesMedium19 cmds
▶Homing Missile AirstrikeProjectiles & MissilesHard22 cmds
▶Automated Homing Missile SentryProjectiles & MissilesHard21 cmds