Build an automated crimson laser turret in Minecraft that locks onto incoming armored zombies and blasts their heads clean off using vanilla commands.
Undead & HorrorTechnologyHorrorRedGoldMini-gameAdventure MapPvPBlock displaysItem displaysArmor standsSmooth animation (interpolation)Summoned mobsBlock building (fill/setblock/clone)Rotation math21+ commands
This command creation places an automated defense turret in the middle of a stone arena. As armored zombies shamble toward the center pillar, the turret locks onto the closest target and fires a crimson beam that knocks the zombie's head right off its shoulders.
Because you cannot normally hide just the head of a standard zombie, this build uses invisible zombies wearing full armor and a zombie head item. When the turret fires, it removes the helmet slot and summons a spinning display entity head that flies backward in an explosion of redstone blood particles while the headless body keeps walking.
/scoreboard objectives add c9_timer dummy/scoreboard players set #tick c9_timer 0/fill ~-9 ~-1 ~-9 ~9 ~-1 ~9 polished_blackstone_bricks/fill ~-2 ~ ~-2 ~2 ~ ~2 polished_deepslate_slab[type=bottom]/setblock ~ ~ ~ chiseled_polished_blackstone/setblock ~ ~1 ~ nether_brick_fence/summon armor_stand ~ ~1.8 ~ {NoGravity:1b,Invisible:1b,Marker:1b,Tags:["c9_entity","c9_center"]}/summon item_display ~ ~1.8 ~ {Tags:["c9_entity","c9_turret"],item:{id:"minecraft:dispenser",count:1},transformation:{translation:[0.0f,0.0f,0.0f],left_rotation:[0.0f,0.0f,0.0f,1.0f],scale:[0.9f,0.9f,0.9f],right_rotation:[0.0f,0.0f,0.0f,1.0f]},teleport_duration:2,glowing:1b}/summon block_display ~-0.35 ~2.1 ~-0.35 {Tags:["c9_entity","c9_core"],block_state:{Name:"minecraft:redstone_block"},transformation:{translation:[0.0f,0.0f,0.0f],left_rotation:[0.0f,0.0f,0.0f,1.0f],scale:[0.7f,0.3f,0.7f],right_rotation:[0.0f,0.0f,0.0f,1.0f]},glowing:1b}/summon zombie ~-5 ~ ~4 {Tags:["c9_entity","c9_z","c9_has_head"],Silent:1b,IsBaby:0b,active_effects:[{id:"minecraft:invisibility",amplifier:0,duration:999999,show_particles:0b}],equipment:{head:{id:"minecraft:zombie_head",count:1},chest:{id:"minecraft:iron_chestplate",count:1},legs:{id:"minecraft:chainmail_leggings",count:1},feet:{id:"minecraft:iron_boots",count:1},mainhand:{id:"minecraft:iron_sword",count:1}}}/scoreboard players add #tick c9_timer 1/execute if score #tick c9_timer matches 40.. run scoreboard players set #tick c9_timer 0/execute if score #tick c9_timer matches 1 unless entity @e[tag=c9_z,distance=..15,limit=7] run summon zombie ~-6 ~ ~5 {Tags:["c9_entity","c9_z","c9_has_head"],Silent:1b,IsBaby:0b,active_effects:[{id:"minecraft:invisibility",amplifier:0,duration:999999,show_particles:0b}],equipment:{head:{id:"minecraft:zombie_head",count:1},chest:{id:"minecraft:iron_chestplate",count:1},legs:{id:"minecraft:chainmail_leggings",count:1},feet:{id:"minecraft:iron_boots",count:1},mainhand:{id:"minecraft:iron_sword",count:1}}}/execute if score #tick c9_timer matches 21 unless entity @e[tag=c9_z,distance=..15,limit=7] run summon zombie ~6 ~ ~4 {Tags:["c9_entity","c9_z","c9_has_head"],Silent:1b,IsBaby:0b,active_effects:[{id:"minecraft:invisibility",amplifier:0,duration:999999,show_particles:0b}],equipment:{head:{id:"minecraft:zombie_head",count:1},chest:{id:"minecraft:golden_chestplate",count:1},legs:{id:"minecraft:iron_leggings",count:1},feet:{id:"minecraft:golden_boots",count:1},mainhand:{id:"minecraft:golden_axe",count:1}}}/execute as @e[tag=c9_z] at @s facing entity @e[tag=c9_center,limit=1] feet run tp @s ^ ^ ^0.06 ~ 0/execute as @e[tag=c9_turret] at @s facing entity @e[tag=c9_has_head,sort=nearest,limit=1] eyes run tp @s ~ ~ ~ ~ ~/execute at @e[tag=c9_turret] run particle flame ~ ~0.4 ~ 0.15 0.15 0.15 0.01 1 force/execute if score #tick c9_timer matches 10..15 at @e[tag=c9_turret] facing entity @e[tag=c9_has_head,sort=nearest,limit=1] eyes run particle dust{color:[1.0,0.1,0.1],scale:1.5} ^ ^ ^1 0.05 0.05 0.05 0 4 force/execute if score #tick c9_timer matches 10..15 at @e[tag=c9_turret] facing entity @e[tag=c9_has_head,sort=nearest,limit=1] eyes run particle dust{color:[1.0,0.1,0.1],scale:1.5} ^ ^ ^2.5 0.05 0.05 0.05 0 4 force/execute if score #tick c9_timer matches 10..15 at @e[tag=c9_turret] facing entity @e[tag=c9_has_head,sort=nearest,limit=1] eyes run particle dust{color:[1.0,0.1,0.1],scale:1.5} ^ ^ ^4 0.05 0.05 0.05 0 4 force/execute if score #tick c9_timer matches 15 as @e[tag=c9_has_head,sort=nearest,limit=1] at @s run summon item_display ~ ~1.6 ~ {Tags:["c9_entity","c9_head"],item:{id:"minecraft:zombie_head",count:1},Glowing:1b,interpolation_duration:15,start_interpolation:0,transformation:{translation:[0.0f,0.8f,-1.5f],left_rotation:[0.7f,0.4f,0.3f,0.5f],scale:[1.0f,1.0f,1.0f],right_rotation:[0.0f,0.0f,0.0f,1.0f]}}/execute if score #tick c9_timer matches 15 as @e[tag=c9_has_head,sort=nearest,limit=1] at @s run particle block{block_state:{Name:"minecraft:redstone_block"}} ~ ~1.6 ~ 0.25 0.25 0.25 0.15 45 force/execute if score #tick c9_timer matches 15 as @e[tag=c9_has_head,sort=nearest,limit=1] run item replace entity @s armor.head with air/execute as @e[tag=c9_entity,tag=!c9_turret,tag=!c9_core,tag=!c9_center] at @s run scoreboard players add @s c9_timer 1/execute if score #tick c9_timer matches 16 as @e[tag=c9_has_head,sort=nearest,limit=1] run tag @s remove c9_has_head/kill @e[tag=c9_entity,scores={c9_timer=120..}]loop #4 Summons an invisible zombie wearing full armor and a <code>zombie_head</code> in its helmet slot. The <code>unless entity</code> check prevents spawning if there are already 7 zombies in the arena.loop #7 Rotates the dispenser <code>item_display</code> turret smoothly to aim at the eyes of the nearest zombie that still has its head attached.loop #9 Projects crimson dust particles along the turret's line of sight using local coordinates (<code>^ ^ ^1</code>, <code>^ ^ ^2.5</code>, <code>^ ^ ^4</code>) to form a laser beam right before decapitation.loop #12 Spawns a glowing <code>item_display</code> zombie head at neck height with an immediate transformation offset, causing it to tumble backward through the air over 15 ticks.loop #14 Replaces the zombie's helmet slot with <code>air</code> while spawning redstone block particles, completing the headless illusion while the zombie body continues marching.


Recorded on our own test server: 59 frames at about 9.8 fps. Our image check saw: A central dispenser turret on a stone brick arena fires red particles at an approaching gold-armored zombie, knocking its glowing head off its body.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To trigger the headless decapitation when you hit a zombie yourself instead of using the turret, summon the invisible armored zombies with the c9_has_head tag and detect when their HurtTime NBT equals 10s: /execute as @e[tag=c9_has_head,nbt={HurtTime:10s}] at @s run item replace entity @s armor.head with air, followed by the particle and flying head display commands.
/kill @e[tag=c9_entity]/scoreboard objectives remove c9_timer/fill ~-9 ~-1 ~-9 ~9 ~2 ~9 air/fill ~-9 ~-1 ~-9 ~9 ~-1 ~9 grass_blockBecause the zombie spawns with a zombie head equipped in its armor helmet slot, Minecraft protects it from sunlight damage until the turret shoots the helmet off.
Yes. In the summon commands, edit the equipment NBT compound to use diamond_chestplate, netherite_chestplate, or any dyed leather armor.
/execute/fill/item/kill/particle/scoreboard/setblock/summon/tag/tp
▶Ghostly Galleon Figurehead SirenUndead & HorrorExpert23 cmds
▶Airborne Zombie SwarmUndead & HorrorEasy24 cmds
▶Cinematic Mob DemiseUndead & HorrorMedium23 cmds
▶Contagious Mob WildfireUndead & HorrorEasy23 cmds
▶Hollow Haunter Ghost EntityUndead & HorrorMedium24 cmds
▶Overpowered Summoner BossUndead & HorrorHard24 cmds