Build a heavy sci-fi artillery turret that charges up glowing cyan plasma energy and fires an explosive beam into a target wall using command blocks.
Lasers & BeamsTechnologySpaceCyanWhiteBluePvPAdventure MapDecorationBlock displaysSmooth animation (interpolation)Summoned mobsBlock building (fill/setblock/clone)Sounds21+ commands
The Futuristic Plasma Cannon is an automated heavy artillery turret built from block display entities and dark prismarine. Situated on one side of the platform, it draws in glowing cyan energy particles while a reactor hums, building up to a high-powered shot.
Once fully charged, the barrel recoils and launches a dense plasma projectile across the stage. The bolt leaves a trail of soul fire and electric sparks before striking a reinforced target wall, triggering a bright multi-layered explosion and shattering the core block until the system resets for the next cycle.
/scoreboard objectives add c9_timer dummy/fill ~-2 ~ ~-11 ~2 ~ ~-7 minecraft:polished_deepslate_slab/fill ~-1 ~ ~-10 ~1 ~1 ~-8 minecraft:iron_block/setblock ~ ~1 ~-9 minecraft:sea_lantern/fill ~-3 ~ ~10 ~3 ~4 ~11 minecraft:deepslate_bricks/fill ~-1 ~1 ~10 ~1 ~3 ~10 minecraft:iron_bars/setblock ~ ~2 ~10 minecraft:redstone_block/summon minecraft:marker ~ ~2 ~-6 {Tags:["c9_ctrl","c9_obj"]}/summon minecraft:block_display ~-0.75 ~1.5 ~-10.5 {Tags:["c9_obj","c9_turret"],brightness:{sky:15,block:15},transformation:{translation:[0f,0f,0f],left_rotation:[0f,0f,0f,1f],scale:[1.5f,1.2f,3f],right_rotation:[0f,0f,0f,1f]},block_state:{Name:"minecraft:dark_prismarine"}}/summon minecraft:block_display ~-0.3 ~1.8 ~-8.5 {Tags:["c9_obj","c9_barrel"],brightness:{sky:15,block:15},interpolation_duration:3,transformation:{translation:[0f,0f,0f],left_rotation:[0f,0f,0f,1f],scale:[0.6f,0.6f,3.5f],right_rotation:[0f,0f,0f,1f]},block_state:{Name:"minecraft:sea_lantern"}}/execute as @e[tag=c9_ctrl] run scoreboard players add @s c9_timer 1/execute as @e[tag=c9_ctrl,scores={c9_timer=100..}] run scoreboard players set @s c9_timer 0/execute as @e[tag=c9_ctrl,scores={c9_timer=1}] at @s run setblock ~ ~ ~16 minecraft:redstone_block/execute as @e[tag=c9_ctrl,scores={c9_timer=10..40}] at @s run particle minecraft:dust{color:[0.0,0.8,1.0],scale:1.5} ~ ~0.1 ~ 0.8 0.8 0.8 0 8 force/execute as @e[tag=c9_ctrl,scores={c9_timer=25}] at @s run playsound minecraft:block.beacon.ambient master @a ~ ~ ~ 2 1.5/execute as @e[tag=c9_ctrl,scores={c9_timer=40..59}] at @s run particle minecraft:dust{color:[0.4,1.0,1.0],scale:2.2} ~ ~0.1 ~ 0.3 0.3 0.3 0 15 force/execute as @e[tag=c9_ctrl,scores={c9_timer=40..59}] at @s run particle minecraft:soul_fire_flame ~ ~0.1 ~ 0.2 0.2 0.2 0.05 5 force/execute if entity @e[tag=c9_ctrl,scores={c9_timer=60}] as @e[tag=c9_barrel] run data merge entity @s {start_interpolation:0,transformation:{translation:[0f,0f,-0.8f],left_rotation:[0f,0f,0f,1f],scale:[0.6f,0.6f,3.5f],right_rotation:[0f,0f,0f,1f]}}/execute if entity @e[tag=c9_ctrl,scores={c9_timer=65}] as @e[tag=c9_barrel] run data merge entity @s {start_interpolation:0,transformation:{translation:[0f,0f,0f],left_rotation:[0f,0f,0f,1f],scale:[0.6f,0.6f,3.5f],right_rotation:[0f,0f,0f,1f]}}/execute as @e[tag=c9_ctrl,scores={c9_timer=60}] at @s run summon minecraft:area_effect_cloud ~ ~0.1 ~ {Tags:["c9_obj","c9_bolt"],Duration:20,Radius:0f}/execute as @e[tag=c9_ctrl,scores={c9_timer=60}] at @s run playsound minecraft:entity.warden.sonic_boom master @a ~ ~ ~ 2 1.2/execute as @e[tag=c9_bolt] at @s run tp @s ~ ~ ~1.0/execute as @e[tag=c9_bolt] at @s run particle minecraft:sonic_boom ~ ~ ~ 0 0 0 0 1 force/execute as @e[tag=c9_ctrl,scores={c9_timer=75}] at @s positioned ~ ~0.1 ~15 run particle minecraft:explosion_emitter ~ ~ ~ 0 0 0 0 1 forcesetup #9 Summons a stretched <code>block_display</code> entity using a sea lantern block to act as the glowing plasma barrel, configured with an <code>interpolation_duration</code> of 3 ticks for smooth recoil movement.loop #8 At tick 60, when the cannon fires, this command modifies the barrel's <code>transformation</code> translation along the Z axis by -0.8 blocks, making the barrel visibly kick backward.loop #10 Summons a short-lived <code>area_effect_cloud</code> tagged <code>c9_bolt</code> at the muzzle. Because its <code>Duration</code> is set to 20 ticks, it automatically despawns after 1 second so entity counts never build up.loop #12 Teleports the plasma bolt forward by 1 block every tick along the Z axis while Command 13 renders a <code>sonic_boom</code> shockwave ring at its current position.


Recorded on our own test server: 49 frames at about 9.8 fps. Our image check saw: A small white and prismarine turret charges with blue particles before firing a glowing cyan plasma bolt forward.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To fire the cannon manually instead of on an automatic loop, remove the first two timer commands and add a button or lever connected to an impulse command block that sets /scoreboard players set @e[tag=c9_ctrl] c9_timer 1, only advancing the score when the score is between 1 and 99.
/kill @e[tag=c9_obj]/fill ~-3 ~ ~-11 ~3 ~5 ~11 minecraft:air/scoreboard objectives remove c9_timerThe projectile is an area_effect_cloud with a Duration tag of 20 ticks. Minecraft automatically removes it after 1 second, which prevents lag and keeps the entity count low.
Yes. In loop commands 4 and 6, edit the RGB values inside dust{color:[0.0,0.8,1.0]} to any decimal numbers between 0.0 and 1.0, such as [1.0,0.2,0.0] for an orange laser.
/data/execute/fill/particle/playsound/scoreboard/setblock/summon/tp
▶Automated Sentinel TurretLasers & BeamsMedium24 cmds
▶DNA Helix Biotic Disintegrator RifleLasers & BeamsHard19 cmds
▶Orbital Death LaserLasers & BeamsMedium22 cmds
▶Orbital Starter-Base ObliteratorLasers & BeamsMedium21 cmds
▶Orbital Strike Laser BeamLasers & BeamsMedium21 cmds
▶Planetary Defense Plasma CannonLasers & BeamsHard24 cmds