Summon a glowing ball lightning anomaly that orbits a copper arena and discharges vivid electric arcs toward nearby conductive pillars in Vanilla Minecraft.
Rings & OrbitsLightningTechnologyDarkCyanBlueWhiteBoss FightDecorationMap MakingBlock displaysBlock building (fill/setblock/clone)Rotation math21+ commands
Roaming Ball Lightning creates a volatile sphere of plasma that hovers and weaves through an arena of four oxidized copper pillars. As the glowing sea lantern core drifts closer to a pillar, it fires a rapid stream of cyan and blue electrical bolts that impact the lightning rods with bursts of golden sparks.
The effect combines block_display entities, custom dust color transitions, and dynamic raycasting markers that trace the shortest path between the moving sphere and the nearest conductor every few ticks.
/scoreboard objectives add c9_tick dummy/scoreboard objectives add c9_life dummy/fill ~-9 ~-1 ~-9 ~9 ~-1 ~9 deepslate_tiles/fill ~-5 ~-1 ~-5 ~5 ~-1 ~5 cut_copper/forceload add ~ ~/summon marker ~6 ~ ~6 {Tags:["c9_pillar","c9_init"]}/summon marker ~-6 ~ ~6 {Tags:["c9_pillar","c9_init"]}/summon marker ~6 ~ ~-6 {Tags:["c9_pillar","c9_init"]}/summon marker ~-6 ~ ~-6 {Tags:["c9_pillar","c9_init"]}/summon block_display ~ ~2.5 ~ {Tags:["c9_ball"],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.7f,0.7f,0.7f],translation:[-0.35f,-0.35f,-0.35f]}}/execute as @e[tag=c9_init] at @s run fill ~ ~ ~ ~ ~2 ~ weathered_cut_copper/execute as @e[tag=c9_init] at @s run setblock ~ ~3 ~ sea_lantern/execute as @e[tag=c9_init] at @s run setblock ~ ~4 ~ lightning_rod/execute as @e[tag=c9_init] at @s run tp @s ~ ~4.5 ~/tag @e[tag=c9_init] remove c9_init/execute as @e[tag=c9_ball] at @s facing ~ ~2.5 ~ run tp @s ^0.18 ^ ^0.14 ~6 ~/execute as @e[tag=c9_ball] at @s if entity @s[distance=6.5..] facing ~ ~2.5 ~ run tp @s ^ ^ ^0.35 ~10 ~/execute as @e[tag=c9_ball] at @s run particle dust_color_transition{from_color:[0.1,0.9,1.0],to_color:[0.1,0.2,1.0],scale:1.6} ~ ~ ~ 0.45 0.45 0.45 0 12 force/execute as @e[tag=c9_ball] at @s run particle electric_spark ~ ~ ~ 0.6 0.6 0.6 0.15 8 force/scoreboard players add #ball c9_tick 1/execute if score #ball c9_tick matches 3.. at @e[tag=c9_ball] run summon area_effect_cloud ~ ~ ~ {Tags:["c9_arc"],Duration:12}/execute if score #ball c9_tick matches 3.. run scoreboard players set #ball c9_tick 0/execute as @e[tag=c9_arc] at @s facing entity @n[tag=c9_pillar] eyes run tp @s ^ ^ ^0.75/execute as @e[tag=c9_arc] at @s run particle dust{color:[0.4,0.95,1.0],scale:1.1} ~ ~ ~ 0.12 0.12 0.12 0 4 forcesetup #10 Summons the core of the ball lightning using a glowing <code>block_display</code> entity scaled down to 0.7x and offset by -0.35 on each axis so its visual center matches its coordinate origin.loop #1 The first five loop commands check for the <code>c9_init</code> tag on the four corner markers, automatically build the copper pillars and lightning rods at their positions, move the markers to the top of the rods, and remove the init tag so it only happens on the first tick.loop #6 Faces the stage center and moves the ball sideways (<code>^0.18</code>) and slightly inward (<code>^0.14</code>), creating a smooth orbital path around the arena.loop #11 Every 3 ticks, summons a short-lived <code>area_effect_cloud</code> tagged <code>c9_arc</code> at the ball's center. Using <code>Duration:12</code> makes the entity clean itself up automatically after 12 ticks without needing an extra kill command.loop #13 Moves each arc node 0.75 blocks forward toward the nearest pillar tip (<code>@n[tag=c9_pillar]</code>), drawing glowing cyan lightning lines between the moving sphere and the closest lightning rod.


Recorded on our own test server: 59 frames at about 9.8 fps. Our image check saw: A small glowing cyan orb ascends high into the night sky above an arena with four copper pillars, firing a blue and cyan particle beam with an expanding particle ring down onto one pillar's lightning rod.
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 ball lightning attack nearby players instead of pillars, replace @n[tag=c9_pillar] in loop command 13 with @p[distance=..10] and execute a damage command when the c9_arc entity gets within 1.5 blocks of a player.
/kill @e[tag=c9_ball]/kill @e[tag=c9_pillar]/kill @e[tag=c9_arc]/scoreboard objectives remove c9_tick/scoreboard objectives remove c9_life/fill ~-9 ~-1 ~-9 ~9 ~-1 ~9 grass_block/fill ~-9 ~ ~-9 ~9 ~6 ~9 airArea Effect Clouds have a built-in Duration NBT tag that despawns them automatically after a set number of ticks, saving command block space while preventing entity buildup.
Yes! Summon additional markers with the tags c9_pillar and c9_init anywhere within the arena, and the loop commands will automatically build a pillar and begin arcing electricity to it when the ball drifts nearby.
/execute/fill/forceload/particle/scoreboard/setblock/summon/tag/tp
▶Kinetic Repulsion ForcefieldRings & OrbitsEasy20 cmds
▶Armor Stand Circle GeneratorRings & OrbitsEasy17 cmds
▶3D Atomic Particle Model in Vanilla MinecraftRings & OrbitsMedium24 cmds
▶Bullet Hell Particle StormRings & OrbitsHard20 cmds
▶Coiling Ouroboros Cosmic Dragon LoopRings & OrbitsHard21 cmds
▶Holographic Mob RadarRings & OrbitsEasy23 cmds