Charging Energy Beam Spell

Summon a glowing arcane cannon that gathers swirling cyan energy into a radiant core before firing a bright particle beam across the arena.

Java EditionMagic & SpellsMedium19 commandsTested on a real 26.2 & 26.3 server
A sorcerer fires a charged cyan energy beam with sonic shockwaves across a grassy field at night. Download the GIF Video & GIF © www.9minecraft.net

Holy & Light MagicMysticHoly & LightCyanBlueGoldBoss FightPvPCinematicBlock displaysArmor standsRotation math13-20 commands

This command creation builds an automated magic beam spell. A sorcerer stands at one side of the stage and channels energy into a glowing sea lantern core while cyan and gold particles spiral inward from all directions.

Once the core reaches full charge, a blinding flash erupts and a high-speed particle beam fires across the arena, leaving a glowing trail of souls, sparks, andsonic shockwaves before hitting the target dummy.

1. Setup - type these once 5 commands

  1. /scoreboard objectives add c9_timer dummy
  2. /scoreboard players set #beam c9_timer 0
  3. /summon armor_stand ~-8 ~ ~ {Tags:["c9_actor","c9_beam"],NoGravity:1b,ShowArms:1b,Pose:{RightArm:[-90f,0f,0f],LeftArm:[-90f,0f,0f]},equipment:{head:{id:"minecraft:golden_helmet",count:1},chest:{id:"minecraft:diamond_chestplate",count:1},legs:{id:"minecraft:diamond_leggings",count:1},feet:{id:"minecraft:diamond_boots",count:1}},Rotation:[-90f,0f]}
  4. /summon armor_stand ~8 ~ ~ {Tags:["c9_target","c9_beam"],NoGravity:1b,equipment:{head:{id:"minecraft:carved_pumpkin",count:1},chest:{id:"minecraft:iron_chestplate",count:1},legs:{id:"minecraft:iron_leggings",count:1},feet:{id:"minecraft:iron_boots",count:1}},Rotation:[90f,0f]}
  5. /summon block_display ~-6.5 ~1.4 ~ {Tags:["c9_core","c9_beam"],Glowing:1b,glow_color_override:65535,block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.5f,0.5f,0.5f],translation:[-0.25f,-0.25f,-0.25f]}}

2. Loop - one repeating command block each (Always Active) 14 commands

  1. /scoreboard players add #beam c9_timer 1
  2. /execute if score #beam c9_timer matches 110.. run scoreboard players set #beam c9_timer 1
  3. /execute as @e[tag=c9_core] at @s run tp @s ~ ~ ~ ~12 ~8
  4. /execute if score #beam c9_timer matches 1..60 at @e[tag=c9_core] run particle dust_color_transition{from_color:[0.0,0.8,1.0],to_color:[1.0,1.0,1.0],scale:1.6} ~ ~ ~ 1.4 1.4 1.4 0 12 force
  5. /execute if score #beam c9_timer matches 20..60 at @e[tag=c9_core] run particle end_rod ~ ~ ~ 0.25 0.25 0.25 0.08 5 force
  6. /execute if score #beam c9_timer matches 40..60 at @e[tag=c9_core] run particle soul_fire_flame ~ ~ ~ 0.4 0.4 0.4 0.05 8 force
  7. /execute if score #beam c9_timer matches 61 at @e[tag=c9_core] run particle flash{color:[0.4,1.0,1.0,1.0]} ~ ~ ~ 0 0 0 0 1 force
  8. /execute if score #beam c9_timer matches 61..68 at @e[tag=c9_core] run summon area_effect_cloud ~ ~ ~ {Tags:["c9_ray","c9_beam"],Duration:16,Radius:0.1f,Rotation:[-90f,0f]}
  9. /execute as @e[tag=c9_ray] at @s run tp @s ^ ^ ^1.8
  10. /execute at @e[tag=c9_ray] run particle dust{color:[0.0,1.0,1.0],scale:2.4} ~ ~ ~ 0.15 0.15 0.15 0 12 force
  11. /execute at @e[tag=c9_ray] run particle dust{color:[1.0,1.0,1.0],scale:1.3} ~ ~ ~ 0.05 0.05 0.05 0 8 force
  12. /execute at @e[tag=c9_ray] run particle glow ~ ~ ~ 0.35 0.35 0.35 0.1 6 force
  13. /execute if score #beam c9_timer matches 63..72 at @e[tag=c9_core] run particle sonic_boom ~3.5 ~ ~ 0 0 0 0 1 force
  14. /execute if score #beam c9_timer matches 68..80 at @e[tag=c9_target] run particle explosion ~ ~1 ~ 0.4 0.4 0.4 0.1 2 force

How it works

Frames from the test run

Charging Energy Beam Spell - frame 1Charging Energy Beam Spell - frame 2Charging Energy Beam Spell - frame 3

Recorded on our own test server: 60 frames at about 9.9 fps. Our image check saw: An armored figure channels particles into a glowing sea lantern core before firing a blue particle beam with sonic shockwaves across the field at a target.

Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.

Build it in your world

  1. Stand in the center of a flat open area and run each command from the Setup list in chat.
  2. Place a Repeating Command Block set to Always Active at the center and paste the first Loop command into it.
  3. Chain 13 Chain Command Blocks (Always Active, Unconditional) onto the repeating block and paste the remaining Loop commands in order.
  4. Switch the time to night so the glowing sea lantern core and cyan particle beam stand out clearly.
  5. Watch the caster charge the energy core for three seconds before firing the beam into the target dummy.

Use it with real players

To let a real player fire this beam, remove the c9_actor armor stand and tag yourself with /tag @s add c9_core. Then remove the rotation teleport command (loop command 3) and the fixed Rotation:[-90f,0f] tag inside the area_effect_cloud summon so the ray inherits the direction you are looking with /execute at @a[tag=c9_core] anchored eyes run summon area_effect_cloud ^ ^ ^1 ....

Remove it again 2 commands

  1. /kill @e[tag=c9_beam]
  2. /scoreboard objectives remove c9_timer

FAQ

Why does the beam use area effect clouds instead of armor stands?

Area effect clouds are completely invisible, have almost no server impact, and automatically despawn once their Duration tag runs out, keeping the entity count low without needing extra kill commands.

How can I change the color of the energy beam?

Edit the RGB numbers inside the dust and dust_color_transition particle commands. Each value goes from 0.0 to 1.0 for red, green, and blue.

Commands used

/execute/particle/scoreboard/summon/tp

Similar creations

Join 9Minecraft News & Guides