Prismatic Soap Bubble Encapsulation

A floating magic wand blows glowing glass bubbles that drift across the stage, trap wandering elemental flames, and pop into colorful confetti.

Java EditionMagic & SpellsMedium20 commandsTested on a real 26.2 & 26.3 server
Glowing translucent glass bubbles trap wandering flames and pop into colorful dust particles at night. Download the GIF Video & GIF © www.9minecraft.net

Elemental FusionWaterFireMysticCyanPurpleBluePvPMini-gameDecorationBlock displaysItem displaysArmor standsRotation math13-20 commands

This command creation summons an autonomous floating wand that blows shimmering, translucent soap bubbles across the arena. Wandering elemental flames drift around the stage, getting pulled into nearby bubbles and trapped inside their glowing glass cores.

Once a bubble has carried its captured flame into the air or reaches the end of its lifespan, it pops in a burst of colorful dust confetti and magical chime sounds. The entire system runs on fewer than twenty commands using display entities and particle physics.

1. Setup - type these once 6 commands

  1. /scoreboard objectives add c9_t dummy
  2. /summon armor_stand ~ ~1.5 ~ {Tags:["c9_actor","c9_e"],NoGravity:1b,Invisible:1b}
  3. /summon item_display ~ ~2.2 ~ {Tags:["c9_wand","c9_e"],Glowing:1b,glow_color_override:65535,item:{id:"minecraft:breeze_rod",count:1},transformation:{left_rotation:[0f,0f,0.38f,0.92f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[1.6f,1.6f,1.6f]}}
  4. /summon block_display ~ ~0.5 ~ {Tags:["c9_ped","c9_e"],block_state:{Name:"minecraft:amethyst_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.5f,0f,-0.5f],scale:[1f,1f,1f]}}
  5. /summon area_effect_cloud ~3 ~1.5 ~2 {Tags:["c9_flm","c9_e"],Duration:20000,Radius:0f}
  6. /summon area_effect_cloud ~-3 ~2 ~-2 {Tags:["c9_flm","c9_e"],Duration:20000,Radius:0f}

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

  1. /execute as @e[tag=c9_e] run scoreboard players add @s c9_t 1
  2. /execute as @e[tag=c9_actor] at @s run tp @s ~ ~ ~ ~4 ~
  3. /execute as @e[tag=c9_wand] at @e[tag=c9_actor,limit=1] run tp @s ^ ^0.5 ^0.6 ~ ~
  4. /execute at @e[tag=c9_wand] run particle end_rod ~ ~ ~ 0.1 0.1 0.1 0.01 1 force
  5. /execute as @e[tag=c9_actor,scores={c9_t=15..}] at @e[tag=c9_wand] run summon block_display ^ ^ ^0.4 {Tags:["c9_bub","c9_e"],Glowing:1b,glow_color_override:16755455,block_state:{Name:"minecraft:cyan_stained_glass"},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]}}
  6. /execute as @e[tag=c9_actor,scores={c9_t=15..}] at @s if score @s c9_t matches 15.. run summon area_effect_cloud ^2.5 ^ ^3.5 {Tags:["c9_flm","c9_e"],Duration:110,Radius:0f}
  7. /scoreboard players set @e[tag=c9_actor,scores={c9_t=15..}] c9_t 0
  8. /execute as @e[tag=c9_bub] at @s run tp @s ^ ^0.03 ^0.12 ~1.5 ~
  9. /execute as @e[tag=c9_flm] at @s unless entity @e[tag=c9_bub,distance=..2.5] run tp @s ~ ~0.01 ~ ~6 ~
  10. /execute as @e[tag=c9_flm] at @s if entity @e[tag=c9_bub,distance=..2.5] facing entity @e[tag=c9_bub,distance=..2.5,sort=nearest,limit=1] feet run tp @s ^ ^ ^0.18
  11. /execute at @e[tag=c9_flm] run particle flame ~ ~ ~ 0.12 0.12 0.12 0.01 4 force
  12. /execute as @e[tag=c9_bub,scores={c9_t=20..}] at @s if entity @e[tag=c9_flm,distance=..0.6] run scoreboard players set @s c9_t 85
  13. /execute at @e[tag=c9_bub,scores={c9_t=95..}] run particle dust_color_transition{from_color:[0.2,1.0,1.0],to_color:[1.0,0.3,0.9],scale:1.6} ~ ~ ~ 0.45 0.45 0.45 0.1 35 force
  14. /kill @e[tag=c9_e,tag=!c9_actor,tag=!c9_wand,tag=!c9_ped,scores={c9_t=96..}]

How it works

Frames from the test run

Prismatic Soap Bubble Encapsulation - frame 1Prismatic Soap Bubble Encapsulation - frame 2Prismatic Soap Bubble Encapsulation - frame 3

Recorded on our own test server: 51 frames at about 8.4 fps. Our image check saw: A glowing wand emits translucent glass cubes that trap nearby flames and burst into colorful blue and purple particles.

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. Create a flat clearing and stand at the center block where you want the floating wand pedestal.
  2. Run each command from the Setup list one by one in your chat bar to create the scoreboard, pedestal, and floating wand.
  3. Place 14 Repeating Command Blocks in a row or column nearby (staying within loaded chunks) and set all of them to Always Active.
  4. Paste one command from the Loop list into each of the 14 repeating command blocks.
  5. Watch the wand spin, blow glowing bubbles, pull in the wandering flames, and pop them into colorful confetti.

Use it with real players

To let a real player cast the bubbles instead of the automated stand, give yourself the tag c9_actor with /tag @s add c9_actor and remove the first旋转 teleport command from the loop (Loop Command 2). The floating wand and bubble stream will then follow your position and aim direction.

Remove it again 2 commands

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

FAQ

Why use stained glass block displays for the bubbles?

Stained glass block displays are naturally semi-transparent and support glowing outlines in any RGB color, making them look like iridescent soap bubbles without needing a resource pack.

Will the bubbles or flames lag my world over time?

No. Every bubble and flame has its c9_t score increased every tick and is automatically deleted once its timer reaches 96 ticks (under 5 seconds).

Commands used

/execute/kill/particle/scoreboard/summon/tp

Similar creations

Join 9Minecraft News & Guides