Static Electricity Styrofoam Cloud Cling

Bright white quartz cubes drift down from a high storm cloud, suddenly snapping sideways in mid-air to cling along invisible jagged lightning arcs.

Java EditionSky & WeatherMedium25 commandsTested on a real 26.2 & 26.3 server
White cubes drifting down with blue static sparks Download the GIF Video & GIF © www.9minecraft.net

Storms & LightningLightningTechnologyWhiteBlueCyanLearningCinematicDecorationBlock displaysSmooth animation (interpolation)Rotation math21+ commands

High above the platform, a shower of white quartz cubes drifts down like styrofoam beads from a churning storm cloud. As they fall near suspended channels of static charge, they break their descent and snap sideways at high speed, plastering themselves along glowing electric arcs floating in the air.

Once the static pathways are thickly coated with hovering white cubes, the charge releases in a burst of sparks and the cycle begins again.

1. Setup - type these once 9 commands

  1. /scoreboard objectives add c9_t dummy
  2. /summon marker ~ ~ ~ {Tags:["c9_all","c9_ctrl"]}
  3. /summon block_display ~ ~8.5 ~ {Tags:["c9_all","c9_node"],Glowing:1b,glow_color_override:43775,brightness:{sky:15,block:15},block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.55f,0.55f,0.55f],translation:[-0.27f,-0.27f,-0.27f]}}
  4. /summon block_display ~2.2 ~10.2 ~-1.2 {Tags:["c9_all","c9_node"],Glowing:1b,glow_color_override:43775,brightness:{sky:15,block:15},block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.35f,0.35f,0.35f],translation:[-0.17f,-0.17f,-0.17f]}}
  5. /summon block_display ~4.4 ~11.8 ~-2.4 {Tags:["c9_all","c9_node"],Glowing:1b,glow_color_override:43775,brightness:{sky:15,block:15},block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.35f,0.35f,0.35f],translation:[-0.17f,-0.17f,-0.17f]}}
  6. /summon block_display ~-2.2 ~9.8 ~1.6 {Tags:["c9_all","c9_node"],Glowing:1b,glow_color_override:43775,brightness:{sky:15,block:15},block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.35f,0.35f,0.35f],translation:[-0.17f,-0.17f,-0.17f]}}
  7. /summon block_display ~-4.4 ~11.2 ~3.2 {Tags:["c9_all","c9_node"],Glowing:1b,glow_color_override:43775,brightness:{sky:15,block:15},block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.35f,0.35f,0.35f],translation:[-0.17f,-0.17f,-0.17f]}}
  8. /summon block_display ~1.8 ~6.8 ~2.2 {Tags:["c9_all","c9_node"],Glowing:1b,glow_color_override:43775,brightness:{sky:15,block:15},block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.35f,0.35f,0.35f],translation:[-0.17f,-0.17f,-0.17f]}}
  9. /summon block_display ~-2.0 ~6.5 ~-2.4 {Tags:["c9_all","c9_node"],Glowing:1b,glow_color_override:43775,brightness:{sky:15,block:15},block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.35f,0.35f,0.35f],translation:[-0.17f,-0.17f,-0.17f]}}

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

  1. /scoreboard players add @e[tag=c9_ctrl] c9_t 1
  2. /particle cloud ~ ~16 ~ 5 0.6 5 0.01 12 force
  3. /execute at @e[tag=c9_node] run particle electric_spark ~ ~ ~ 0.9 0.9 0.9 0.08 3 force
  4. /execute at @e[tag=c9_node] run particle dust{color:[0.2,0.85,1.0],scale:1.4} ~ ~ ~ 0.7 0.7 0.7 0 2 force
  5. /execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 1..115 at @e[tag=c9_node,limit=1,sort=arbitrary] run summon block_display ~ ~16 ~ {Tags:["c9_all","c9_foam","c9_new"],Glowing:1b,glow_color_override:16777215,teleport_duration:2,interpolation_duration:2,brightness:{sky:15,block:15},block_state:{Name:"minecraft:smooth_quartz"},transformation:{left_rotation:[0.2f,0.3f,-0.1f,0.9f],right_rotation:[0f,0f,0f,1f],scale:[0.48f,0.48f,0.48f],translation:[-0.24f,-0.24f,-0.24f]}}
  6. /execute as @e[tag=c9_new] at @s run spreadplayers ~ ~ 0 5 false @s
  7. /execute as @e[tag=c9_new] at @s run tp @s ~ ~15.5 ~
  8. /tag @e[tag=c9_new] remove c9_new
  9. /scoreboard players add @e[tag=c9_foam] c9_t 1
  10. /execute as @e[tag=c9_foam,tag=!c9_cling,scores={c9_t=2..}] at @s run tp @s ~ ~-0.38 ~
  11. /execute as @e[tag=c9_foam,tag=!c9_cling,scores={c9_t=4..45}] at @s if entity @e[tag=c9_node,distance=..5.5] facing entity @e[tag=c9_node,sort=nearest,limit=1] feet run tp @s ^ ^ ^1.35
  12. /execute as @e[tag=c9_foam,tag=!c9_cling] at @s if entity @e[tag=c9_node,distance=..1.9] run tag @s add c9_cling
  13. /execute as @e[tag=c9_foam,scores={c9_t=55..}] at @s unless entity @e[tag=c9_node,distance=..3] run kill @s
  14. /execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 160.. run scoreboard players set @e[tag=c9_ctrl] c9_t -1
  15. /execute if score @e[tag=c9_ctrl,limit=1] c9_t matches -1 at @e[tag=c9_foam] run particle end_rod ~ ~ ~ 0.25 0.25 0.25 0.15 2 force
  16. /execute if score @e[tag=c9_ctrl,limit=1] c9_t matches -1 run kill @e[tag=c9_foam]

How it works

Frames from the test run

Static Electricity Styrofoam Cloud Cling - frame 1Static Electricity Styrofoam Cloud Cling - frame 2Static Electricity Styrofoam Cloud Cling - frame 3

Recorded on our own test server: 67 frames at about 9.6 fps. Our image check saw: White quartz cubes drift down from a cloud with blue static sparks around them.

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 at the center of a flat open area and run each command from the setup list once in chat.
  2. Place a column or line of 16 repeating command blocks nearby, all set to Always Active.
  3. Paste one command from the loop list into each repeating command block.
  4. Wrap each loop command in execute positioned X Y Z run ... using the coordinates of your stage center so the cloud and cubes align with the nodes.
  5. Switch the time to night to make the glowing cyan static nodes and white styrofoam quartz blocks stand out against the sky.

Use it with real players

To turn this into a player-cast static storm ability, summon the c9_node entities relative to a player holding a custom lightning rod using /execute at @a[nbt={SelectedItem:{id:"minecraft:lightning_rod"}}] instead of fixed stage coordinates.

Remove it again 2 commands

  1. /kill @e[tag=c9_all]
  2. /scoreboard objectives remove c9_t

FAQ

Why do the quartz cubes snap smoothly instead of jumping in steps?

Each block_display entity is summoned with teleport_duration set to 2 ticks, which tells the Minecraft client to smoothly interpolate every teleport movement.

Will the falling quartz cubes pile up and lag the server?

No. Only one cube spawns per tick during the active phase, stray cubes that miss the static nodes are deleted after 55 ticks, and the entire cluster clears every 8 seconds.

Commands used

/execute/kill/particle/scoreboard/spreadplayers/summon/tag/tp

Similar creations

Join 9Minecraft News & Guides