Bioluminescent Firefly Lantern Jar

Summon a swarm of glowing particle fireflies that swirl into a floating glass jar before bursting into a serene, starry bioluminescent night dome.

Java EditionMagic & SpellsMedium21 commandsTested on a real 26.2 & 26.3 server
A glowing lantern jar seals magical firefly particles inside with a falling wooden cork. Download the GIF Video & GIF © www.9minecraft.net

Earth & Nature MagicNatureMysticHoly & LightYellowCyanGoldDecorationCinematicServer LobbyParticlesBlock displaysArmor standsSmooth animation (interpolation)Scoreboard timersExecute chainsGlowing outlinesRotation math21+ commands

The Bioluminescent Firefly Lantern Jar is a multi-stage magical animation built entirely with vanilla display entities and particle choreography. It begins with dozens of glowing golden fireflies dancing in erratic orbits around a giant suspended glass jar. After a few seconds, a vortex pulls the swarm inside through the neck of the bottle, and a massive wooden cork slams down to seal them inside.

Once trapped, the concentrated bioluminescent energy builds into a bright internal glow until the jar shatters outward, bathing the surrounding area in a peaceful dome of twinkling starlight, spore blossoms, and gentle musical chimes.

1. Setup - type these once 7 commands

  1. /scoreboard objectives add c9_time dummy
  2. /summon marker ~ ~ ~ {Tags:["c9_ent","c9_ctrl"]}
  3. /summon block_display ~ ~3 ~ {Tags:["c9_ent","c9_jar"],Glowing:1b,glow_color_override:65535,block_state:{Name:"minecraft:tinted_glass"},transformation:{translation:[-1.5f,0f,-1.5f],scale:[3f,4f,3f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  4. /summon block_display ~ ~7 ~ {Tags:["c9_ent","c9_neck"],Glowing:1b,glow_color_override:65535,block_state:{Name:"minecraft:glass"},transformation:{translation:[-1f,0f,-1f],scale:[2f,0.8f,2f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  5. /summon block_display ~ ~11.5 ~ {Tags:["c9_ent","c9_cork"],block_state:{Name:"minecraft:stripped_oak_wood"},transformation:{translation:[-0.8f,0f,-0.8f],scale:[1.6f,1.2f,1.6f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},teleport_duration:4}
  6. /summon block_display ~ ~3.2 ~ {Tags:["c9_ent","c9_core"],brightness:{sky:15,block:15},block_state:{Name:"minecraft:ochre_froglight"},transformation:{translation:[0f,1.8f,0f],scale:[0.01f,0.01f,0.01f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},interpolation_duration:20}
  7. /summon marker ~ ~8 ~ {Tags:["c9_ent","c9_dome"]}

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

  1. /execute as @e[tag=c9_ctrl] run scoreboard players add @s c9_time 1
  2. /execute as @e[tag=c9_ctrl,scores={c9_time=1..40}] at @s run summon armor_stand ~ ~4 ~ {Tags:["c9_ent","c9_fly"],Invisible:1b,NoGravity:1b,Marker:1b}
  3. /execute as @e[tag=c9_ctrl,scores={c9_time=1..40}] at @s run spreadplayers ~ ~ 3 11 false @e[tag=c9_fly,tag=!c9_init]
  4. /execute as @e[tag=c9_fly,tag=!c9_init] at @s run tp @s ~ ~3.5 ~ ~ 0
  5. /tag @e[tag=c9_fly,tag=!c9_init] add c9_init
  6. /execute if entity @e[tag=c9_ctrl,scores={c9_time=1..140}] as @e[tag=c9_fly] at @s run particle dust_color_transition{from_color:[1.0,0.9,0.1],to_color:[0.4,1.0,0.2],scale:1.4} ~ ~ ~ 0.15 0.15 0.15 0 2 force
  7. /execute if entity @e[tag=c9_ctrl,scores={c9_time=1..75}] as @e[tag=c9_fly] at @s facing ~ ~5 ~ run tp @s ^0.35 ^0.06 ^0.1 ~12 ~
  8. /execute if entity @e[tag=c9_ctrl,scores={c9_time=76..125}] as @e[tag=c9_fly] at @s facing ~ ~8.2 ~ run tp @s ^0.25 ^ ^0.32
  9. /execute if entity @e[tag=c9_ctrl,scores={c9_time=115..140}] as @e[tag=c9_fly,distance=..8] at @s facing ~ ~4.8 ~ run tp @s ^ ^ ^0.25
  10. /execute if entity @e[tag=c9_ctrl,scores={c9_time=130..142}] as @e[tag=c9_cork] at @s run tp @s ~ ~-0.35 ~
  11. /execute if entity @e[tag=c9_ctrl,scores={c9_time=140}] as @e[tag=c9_core] run data merge entity @s {start_interpolation:0,transformation:{translation:[-1.2f,0f,-1.2f],scale:[2.4f,3.4f,2.4f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  12. /execute if entity @e[tag=c9_ctrl,scores={c9_time=165}] run particle flash{color:[1.0,1.0,0.6,1.0]} ~ ~5 ~ 0 0 0 0 1 force
  13. /execute if entity @e[tag=c9_ctrl,scores={c9_time=165..240}] as @e[tag=c9_dome] at @s run particle end_rod ~ ~ ~ 9 6 9 0.02 35 force
  14. /execute if entity @e[tag=c9_ctrl,scores={c9_time=165..240}] as @e[tag=c9_dome] at @s run particle wax_on ~ ~ ~ 8 5 8 0 15 force

How it works

Frames from the test run

Bioluminescent Firefly Lantern Jar - frame 1Bioluminescent Firefly Lantern Jar - frame 2Bioluminescent Firefly Lantern Jar - frame 3

Recorded on our own test server: 69 frames at about 9.8 fps. Our image check saw: Glowing particles swirl around a cyan-outlined glass jar before a wooden cork drops down to seal it inside a burst of light.

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 set the time to night so the bioluminescent particles stand out.
  2. Run each of the 7 setup commands once in your chat window to summon the floating glass jar, cork, and timer marker.
  3. Place a line of 14 Repeating Command Blocks nearby and set all of them to Always Active.
  4. Paste one loop command into each repeating command block.
  5. Ensure the loop commands execute relative to the stage center (or place the command blocks directly beneath the center block and adjust the Y offsets).
  6. Watch the fireflies spawn, swirl into the jar neck, get sealed by the cork, and burst into a starry dome.

Use it with real players

To turn this into a player-cast magic spell, summon an armor stand tagged c9_actor at the player's location when they drop a glow berries item, and replace the stage center coordinates with execute at @e[tag=c9_actor] run ... so the jar assembles right above the caster.

Remove it again 2 commands

  1. /kill @e[tag=c9_ent]
  2. /scoreboard objectives remove c9_time

FAQ

How do I restart the firefly jar animation after it finishes?

Run /scoreboard players set @e[tag=c9_ctrl] c9_time 0 and run the remove and setup commands again to reset the cork and core positions.

Will the firefly armor stands cause lag if left running?

No, the summon command only runs during ticks 1 to 40, capping the total firefly count at 40 invisible marker entities.

Commands used

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

Similar creations

Join 9Minecraft News & Guides