Build a giant clockwork glass jar in vanilla Minecraft that rattles open, launches its cork with a firework pop, and unleashes a glowing firefly tornado.
Firework ShowsIndustrialNatureCelebrationGoldYellowOrangeDecorationServer LobbyCinematicBlock displaysItem displaysArmor standsFireworksBlock building (fill/setblock/clone)SoundsRotation math21+ commands
This command creation builds a giant clockwork lantern jar out of oversized display blocks and sets off a repeating spectacle. The brass and glass jar rattles on its base as golden sparks build up inside, before the wooden cork blasts into the air with a bright firework burst.
Once uncorked, a swirling tornado of glowing yellow fireflies pours out of the mouth of the jar, painting bright golden and lime light trails across the night sky before resetting for the next launch.
/scoreboard objectives add c9_time dummy/fill ~-2 ~ ~-2 ~2 ~ ~2 polished_blackstone_slab/fill ~-1 ~ ~-1 ~1 ~ ~1 gilded_blackstone/summon marker ~ ~ ~ {Tags:["c9_all","c9_ctrl"]}/scoreboard players set @e[tag=c9_ctrl] c9_time 0/summon block_display ~ ~1 ~ {Tags:["c9_all","c9_jar"],transformation:{translation:[-1.5f,0f,-1.5f],scale:[3f,4f,3f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},block_state:{Name:"minecraft:yellow_stained_glass"}}/summon block_display ~ ~5 ~ {Tags:["c9_all","c9_rim"],transformation:{translation:[-1.1f,0f,-1.1f],scale:[2.2f,0.6f,2.2f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},block_state:{Name:"minecraft:cut_copper"}}/summon block_display ~ ~5.6 ~ {Tags:["c9_all","c9_cork"],transformation:{translation:[-0.9f,0f,-0.9f],scale:[1.8f,1.2f,1.8f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},block_state:{Name:"minecraft:stripped_oak_wood"}}/summon item_display ~ ~3 ~1.55 {Tags:["c9_all","c9_gear"],transformation:{translation:[0f,0f,0f],scale:[2.2f,2.2f,1f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},item:{id:"minecraft:clock",count:1}}/scoreboard players add @e[tag=c9_ctrl] c9_time 1/execute if score @e[tag=c9_ctrl,limit=1] c9_time matches 140.. run scoreboard players set @e[tag=c9_ctrl] c9_time 1/execute as @e[tag=c9_gear] at @s run tp @s ~ ~ ~ ~12 ~/execute if score @e[tag=c9_ctrl,limit=1] c9_time matches 1..39 run particle dust{color:[1.0,0.85,0.1],scale:1.5} ~ ~3 ~ 0.7 1.2 0.7 0 6 force/execute if score @e[tag=c9_ctrl,limit=1] c9_time matches 20..39 at @e[tag=c9_jar] run playsound block.copper.hit master @a ~ ~ ~ 0.6 1.8/execute if score @e[tag=c9_ctrl,limit=1] c9_time matches 20..39 run particle wax_on ~ ~3.5 ~ 1.2 1.8 1.2 0 4 force/execute if score @e[tag=c9_ctrl,limit=1] c9_time matches 40 run summon firework_rocket ~ ~6.2 ~ {LifeTime:0,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{flight_duration:1,explosions:[{shape:"large_ball",colors:[16766720,16744192],fade_colors:[16777215],has_twinkle:1b}]}}}}/execute if score @e[tag=c9_ctrl,limit=1] c9_time matches 40..48 as @e[tag=c9_cork] at @s run tp @s ~ ~0.9 ~ ~25 ~15/execute if score @e[tag=c9_ctrl,limit=1] c9_time matches 41..105 run summon armor_stand ~ ~5.5 ~ {Tags:["c9_all","c9_fly"],Invisible:1b,NoGravity:1b,Small:1b,Marker:1b,Glowing:1b,ArmorItems:[{},{},{},{id:"minecraft:glowstone",count:1}]}/execute if score @e[tag=c9_ctrl,limit=1] c9_time matches 41..105 as @e[tag=c9_fly,scores={c9_time=1}] at @s run spreadplayers ~ ~ 0 1 false @s/execute if score @e[tag=c9_ctrl,limit=1] c9_time matches 41..105 as @e[tag=c9_fly,scores={c9_time=1}] at @s run tp @s ~ ~5.5 ~ ~ ~/execute as @e[tag=c9_fly] at @s run tp @s ^0.38 ^0.18 ^0.12 ~16 ~/execute as @e[tag=c9_fly] at @s run particle dust_color_transition{from_color:[1.0,0.95,0.1],to_color:[0.4,1.0,0.1],scale:1.4} ~ ~0.6 ~ 0.1 0.1 0.1 0 3 force/scoreboard players add @e[tag=c9_fly] c9_time 1/kill @e[tag=c9_fly,scores={c9_time=45..}]/execute if score @e[tag=c9_ctrl,limit=1] c9_time matches 1 run tp @e[tag=c9_cork] ~ ~5.6 ~ 0 0setup #6 Summons a <code>block_display</code> scaled up to 3x4x3 blocks of yellow stained glass to form the body of the giant lantern jar.loop #7 At tick 40, a firework rocket with <code>LifeTime:0</code> spawns right at the cork and explodes immediately with a golden twinkle burst.loop #9 While the jar is open between ticks 41 and 105, invisible marker armor stands wearing glowstone blocks spawn at the jar neck to act as glowing fireflies.loop #12 Moves every firefly forward, sideways, and upward using local coordinates (<code>^0.38 ^0.18 ^0.12</code>) while rotating 16 degrees per tick, creating an expanding upward tornado path.loop #15 Deletes fireflies once their individual <code>c9_time</code> score reaches 45 ticks so the entity count stays low and smooth.


Recorded on our own test server: 59 frames at about 9.8 fps. Our image check saw: A custom clockwork jar structure with a tilted glass roof launches a wooden cork block with a golden firework burst, releasing a swirling yellow particle tornado.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To let players uncork the jar on demand instead of looping automatically, remove the first two loop commands that auto-increment c9_time on c9_ctrl, and trigger /scoreboard players set @e[tag=c9_ctrl] c9_time 1 with a button or pressure plate next to the jar while running a conditional increment only when the score is between 1 and 139.
/kill @e[tag=c9_all]/fill ~-2 ~ ~-2 ~2 ~ ~2 air/scoreboard objectives remove c9_timeEach firefly uses relative caret coordinates (^0.38 ^0.18 ^0.12) combined with a 16-degree horizontal rotation every tick. Because local coordinates push the entity forward relative to where it faces, rotating it every tick naturally bends its path into an expanding spiral.
No. Every firefly has its own scoreboard timer and is automatically removed after 45 ticks (just over two seconds), keeping the maximum number of active firefly entities under 50 at all times.
/execute/fill/kill/particle/playsound/scoreboard/spreadplayers/summon/tp
▶Steampunk Orrery Comet Impact Shockwave ShowFirework ShowsHard24 cmds
▶Victorian Zoetrope Animated Firework CylinderFirework ShowsExpert24 cmds
▶Fibonacci Sunflower Seed Spark MatrixFirework ShowsHard20 cmds
▶Glowing Dandelion Seed Breeze DispersalFirework ShowsHard25 cmds
▶Luminous Weeping Willow Pyro TreeFirework ShowsHard23 cmds
▶Mechanical Hummingbird Nectar Blossom Light FeedFirework ShowsExpert24 cmds