Build an autonomous rotating flamethrower turret that locks onto approaching monsters and unleashes a billowing cone of fire particles to roast them on sight.
TrapsFireIndustrialTechnologyOrangeRedBlackMap MakingAdventure MapMini-gameBlock displaysSmooth animation (interpolation)Summoned mobsBlock building (fill/setblock/clone)Status effectsRotation math21+ commands
This command creation builds a mechanical flamethrower turret from block_display entities mounted on a deepslate pedestal. A lit blast furnace core, copper barrel, blackstone muzzle, and glowing magma fuel tank rotate smoothly together using teleport_duration interpolation.
When idle, the sentry sweeps in a slow circle scanning the perimeter. As soon as a monster approaches within 13 blocks, the turret snaps toward its target and fires a stream of area_effect_cloud flame nodes that billow with fire and orange dust particles while scorching everything in the cone.
/fill ~-1 ~ ~-1 ~1 ~ ~1 minecraft:polished_deepslate/setblock ~ ~1 ~ minecraft:polished_deepslate_wall/summon minecraft:villager ~ ~2.4 ~ {NoAI:1b,Silent:1b,Invulnerable:1b,NoGravity:1b,Tags:["c9_bait"]}/effect give @e[tag=c9_bait] minecraft:invisibility infinite 0 true/summon minecraft:block_display ~ ~2.4 ~ {Tags:["c9_head"],block_state:{Name:"minecraft:blast_furnace",Properties:{facing:"south",lit:"true"}},teleport_duration:2,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.45f,-0.45f,-0.45f],scale:[0.9f,0.9f,0.9f]}}/summon minecraft:block_display ~ ~2.4 ~ {Tags:["c9_part","c9_barrel"],block_state:{Name:"minecraft:copper_block"},teleport_duration:2,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.16f,-0.22f,0.2f],scale:[0.32f,0.32f,1.25f]}}/summon minecraft:block_display ~ ~2.4 ~ {Tags:["c9_part"],block_state:{Name:"minecraft:magma_block"},teleport_duration:2,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.28f,-0.2f,-0.85f],scale:[0.56f,0.56f,0.45f]}}/summon minecraft:block_display ~ ~2.4 ~ {Tags:["c9_part"],block_state:{Name:"minecraft:polished_blackstone"},teleport_duration:2,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.2f,-0.26f,1.25f],scale:[0.4f,0.4f,0.28f]}}/summon minecraft:marker ~ ~ ~ {Tags:["c9_spawner"]}/scoreboard objectives add c9_t dummy/scoreboard players add #spawn c9_t 1/execute as @e[tag=c9_spawner] at @s run tp @s ~ ~ ~ ~73 0/execute if score #spawn c9_t matches 35.. at @e[tag=c9_spawner] positioned ^ ^ ^13 run summon minecraft:zombie ~ ~ ~ {Tags:["c9_mob"],Health:12f}/execute if score #spawn c9_t matches 35.. run scoreboard players set #spawn c9_t 0/execute as @e[tag=c9_head] at @s if entity @e[tag=c9_mob,distance=..13] facing entity @e[tag=c9_mob,distance=..13,sort=nearest,limit=1] eyes run tp @s ~ ~ ~ ~ ~/execute as @e[tag=c9_head] at @s unless entity @e[tag=c9_mob,distance=..13] run tp @s ~ ~ ~ ~2.5 0/execute as @e[tag=c9_part] at @e[tag=c9_head,limit=1] run tp @s ~ ~ ~ ~ ~/execute at @e[tag=c9_head] if entity @e[tag=c9_mob,distance=..13] run summon minecraft:area_effect_cloud ~ ~ ~ {Tags:["c9_flame"],Duration:13,Radius:0.0f}/execute as @e[tag=c9_flame,nbt={Age:0}] at @e[tag=c9_head,limit=1] run tp @s ^ ^ ^0.7 ~ ~/execute as @e[tag=c9_flame] at @s run tp @s ^ ^ ^0.9/execute at @e[tag=c9_flame] run particle minecraft:flame ~ ~ ~ 0.35 0.35 0.35 0.05 7 force/execute at @e[tag=c9_flame] run particle minecraft:dust{color:[1.0,0.45,0.05],scale:1.6} ~ ~ ~ 0.4 0.4 0.4 0.02 3 force/execute as @e[tag=c9_mob] at @s if entity @e[tag=c9_flame,distance=..2.2] run damage @s 2 minecraft:in_fire/execute as @e[tag=c9_mob] at @s if entity @e[tag=c9_flame,distance=..2.2] run data merge entity @s {Fire:60s}setup #5 Summons the main turret head as a centered, lit blast furnace <code>block_display</code> with <code>teleport_duration:2</code> so every rotation step interpolates smoothly.loop #5 Locks <code>c9_head</code> onto the eyes of the nearest monster within 13 blocks by using <code>facing entity</code> before teleporting in place.loop #7 Copies the exact position and rotation of <code>c9_head</code> to the copper barrel, blackstone muzzle, and magma fuel tank so all parts move as one assembly.loop #8 Spawns short-lived <code>area_effect_cloud</code> flame nodes with <code>Duration:13</code> and zero radius so each node travels forward for 13 ticks and automatically expires.loop #13 Applies <code>minecraft:in_fire</code> damage to any target monster caught within 2.2 blocks of an active flame node while the next command keeps it visibly burning.


Recorded on our own test server: 57 frames at about 9.4 fps. Our image check saw: A turret with a blast furnace core and magma block tank sits on a deepslate pedestal at night, rotating to shoot streams of flame particles that ignite approaching zombies.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To use the sentry as a real base defense without the demo spawner, skip the villager bait and loop commands 1–4, then replace tag=c9_mob in the remaining loop commands with type=zombie or type=#minecraft:undead. Natural monsters wandering near your base will be targeted and roasted automatically while players stay safe.
/kill @e[tag=c9_head]/kill @e[tag=c9_part]/kill @e[tag=c9_bait]/kill @e[tag=c9_spawner]/kill @e[tag=c9_mob]/kill @e[tag=c9_flame]/fill ~-1 ~ ~-1 ~1 ~1 ~1 minecraft:air/scoreboard objectives remove c9_tCheck that your world difficulty is not set to Peaceful, and verify that all 14 repeating command blocks are set to Always Active and inside loaded chunks.
No. The flame jet uses <code>flame</code> and <code>dust</code> particles combined with direct <code>/damage</code> and entity <code>Fire</code> ticks, so blocks around your base stay untouched.
/damage/data/effect/execute/fill/particle/scoreboard/setblock/summon/tp