Summon a swarm of glowing particle fireflies that swirl into a floating glass jar before bursting into a serene, starry bioluminescent night dome.
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.
/scoreboard objectives add c9_time dummy/summon marker ~ ~ ~ {Tags:["c9_ent","c9_ctrl"]}/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]}}/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]}}/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}/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}/summon marker ~ ~8 ~ {Tags:["c9_ent","c9_dome"]}/execute as @e[tag=c9_ctrl] run scoreboard players add @s c9_time 1/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}/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]/execute as @e[tag=c9_fly,tag=!c9_init] at @s run tp @s ~ ~3.5 ~ ~ 0/tag @e[tag=c9_fly,tag=!c9_init] add c9_init/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/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 ~/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/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/execute if entity @e[tag=c9_ctrl,scores={c9_time=130..142}] as @e[tag=c9_cork] at @s run tp @s ~ ~-0.35 ~/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]}}/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/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/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 forcesetup #3 Creates the body of the floating jar using a glowing cyan tinted_glass block_display scaled to 3x4x3 blocks.loop #2 Summons up to 40 invisible marker armor stands during the first two seconds to act as individual fireflies.loop #7 Moves each firefly tangentially relative to the center point using local coordinates (^0.35 ^0.06 ^0.1), making them swirl around the stage.loop #8 Faces each firefly toward the top opening of the jar (~ ~8.2 ~) and spirals them inward like a vortex.loop #11 Once the cork drops at tick 140, smoothly interpolates the internal ochre froglight core to fill the inside of the jar with bright light.loop #13 At tick 165, triggers the starry dome eruption with end_rod and wax_on particles filling the sky above the jar.


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.
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.
/kill @e[tag=c9_ent]/scoreboard objectives remove c9_timeRun /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.
No, the summon command only runs during ticks 1 to 40, capping the total firefly count at 40 invisible marker entities.
/data/execute/particle/scoreboard/spreadplayers/summon/tag/tp
▶Radiant Nature Bloom TotemEarth & Nature MagicEasy24 cmds
▶Spellbound Quicksand Oasis TrapEarth & Nature MagicHard24 cmds
▶Weeping Willow of Soul LanternsEarth & Nature MagicMedium22 cmds
▶Geodesic Arcane Greenhouse GrowthEarth & Nature MagicHard22 cmds
▶Stardust Dandelion Wish DispersionEarth & Nature MagicHard22 cmds
▶360-Degree Emerald Barrage SpellEarth & Nature MagicMedium22 cmds