Build a rotating armor-stand turret that automatically locks onto targets down a firing range and launches glowing explosive wither skulls.
Projectiles & MissilesDarkNetherTechnologyBlackCyanRedPvPAdventure MapBoss FightParticlesBlock displaysArmor standsScoreboard timersExecute chainsSummoned mobsBlock building (fill/setblock/clone)SoundsGlowing outlines21+ commands
The Automated Wither-Skull Sentry places a glowing obsidian and netherite turret at the center of your world. Driven by scoreboard timers, the turret smoothly rotates between glowing target pillars downrange and fires charged wither skulls with smoke and crimson trails.
Using custom acceleration_power and directional motion, each skull flies straight into the target banner and triggers a colorful burst of soul fire and explosions without destroying the surrounding terrain.
/scoreboard objectives add c9_timer dummy/fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 polished_blackstone_bricks/setblock ~ ~ ~ lodestone/fill ~-6 ~ ~12 ~6 ~2 ~12 iron_bars/setblock ~-5 ~1 ~11 target/setblock ~ ~1 ~11 target/setblock ~5 ~1 ~11 target/summon armor_stand ~ ~0.6 ~ {Tags:["c9_turret"],NoGravity:1b,Invisible:1b,Glowing:1b,ArmorItems:[{},{},{},{id:"minecraft:wither_skeleton_skull",count:1}]}/summon block_display ~-0.35 ~0.6 ~-0.35 {Tags:["c9_base"],Glowing:1b,block_state:{Name:"minecraft:crying_obsidian"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.7f,0.6f,0.7f],translation:[0f,0f,0f]}}/scoreboard players add @e[tag=c9_turret] c9_timer 1/scoreboard players set @e[tag=c9_turret,scores={c9_timer=120..}] c9_timer 0/execute as @e[tag=c9_turret,scores={c9_timer=1..39}] at @s run tp @s ~ ~ ~ facing ~-5 ~1 ~11/execute as @e[tag=c9_turret,scores={c9_timer=40..79}] at @s run tp @s ~ ~ ~ facing ~ ~1 ~11/execute as @e[tag=c9_turret,scores={c9_timer=80..119}] at @s run tp @s ~ ~ ~ facing ~5 ~1 ~11/execute at @e[tag=c9_turret] run particle dust{color:[0.9,0.1,1.0],scale:1.2} ~ ~0.8 ~ 0.25 0.25 0.25 0 2/execute at @e[tag=c9_turret,scores={c9_timer=20}] run summon wither_skull ~ ~1.3 ~1.2 {Tags:["c9_skull"],Glowing:1b,Motion:[-0.38,0.0,0.85],acceleration_power:0.0}/execute at @e[tag=c9_turret,scores={c9_timer=60}] run summon wither_skull ~ ~1.3 ~1.2 {Tags:["c9_skull"],Glowing:1b,Motion:[0.0,0.0,0.95],acceleration_power:0.0}/execute at @e[tag=c9_turret,scores={c9_timer=100}] run summon wither_skull ~ ~1.3 ~1.2 {Tags:["c9_skull"],Glowing:1b,Motion:[0.38,0.0,0.85],acceleration_power:0.0}/execute at @e[tag=c9_turret,scores={c9_timer=20}] run playsound entity.wither.shoot master @a ~ ~ ~ 0.8 1.2/execute at @e[tag=c9_skull] run particle soul_fire_flame ~ ~ ~ 0.1 0.1 0.1 0.02 4/execute as @e[tag=c9_skull] at @s if block ~ ~ ~1 target run particle explosion_emitter ~ ~ ~ 0 0 0 0 1/execute as @e[tag=c9_skull] at @s if block ~ ~ ~1 target run playsound entity.generic.explode master @a ~ ~ ~ 0.6 1.4/execute as @e[tag=c9_skull] at @s if block ~ ~ ~1 target run kill @ssetup #8 Summons the main <code>c9_turret</code> armor stand wearing a Wither Skeleton Skull above the lodestone base.loop #3 Rotates the turret head to face the left target block during the first third of the 120-tick firing cycle.loop #7 Summons a glowing <code>wither_skull</code> with <code>acceleration_power:0.0</code> and preset <code>Motion</code> vectors so it travels at a steady speed straight toward the left target.loop #12 Detects when a skull reaches a target block and triggers a large explosion particle effect before the skull is removed.


Recorded on our own test server: 52 frames at about 8.6 fps. Our image check saw: A glowing turret made of dark blocks and crying obsidian on a dark platform rotates and shoots trails of soul fire flame particles toward the camera at night.
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 target real players or hostile mobs instead of fixed target blocks, replace the three tp @s ~ ~ ~ facing loop commands with /execute as @e[tag=c9_turret] at @s run tp @s ~ ~ ~ facing entity @p[distance=..18] eyes.
/kill @e[tag=c9_turret]/kill @e[tag=c9_base]/kill @e[tag=c9_skull]/scoreboard objectives remove c9_timer/fill ~-6 ~ ~11 ~6 ~2 ~12 air/fill ~-2 ~-1 ~-2 ~2 ~ ~2 grass_block/fill ~-2 ~ ~-2 ~2 ~ ~2 airNo. The loop detects when a skull is one block away from the target, spawns a visual explosion particle and sound, and removes the skull before it makes physical impact.
Lower the reset score in the second loop command from 120 to 60, and adjust the firing tick checks (20, 60, 100) to smaller numbers.
/execute/fill/kill/particle/playsound/scoreboard/setblock/summon/tp
▶Rapid-Fire Skull TurretProjectiles & MissilesMedium21 cmds
▶Automated Sentinel BatteryProjectiles & MissilesMedium24 cmds
▶Automated Skull-Slinger SentinelProjectiles & MissilesMedium24 cmds
▶Automated Turret Defense GauntletProjectiles & MissilesHard24 cmds
▶Orbital Flame-Targeted Arrow RainProjectiles & MissilesEasy24 cmds
▶Ferris-Wheel Gondola Revolver CannonProjectiles & MissilesExpert24 cmds