Clockwork Firefly Lantern Jar Uncorking

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.

Java EditionFireworks & Light ShowsMedium25 commandsTested on a real 26.2 & 26.3 server
A custom clockwork jar blasts its cork off and releases a swirling trail of golden particles. Download the GIF Video & GIF © www.9minecraft.net

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.

1. Setup - type these once 9 commands

  1. /scoreboard objectives add c9_time dummy
  2. /fill ~-2 ~ ~-2 ~2 ~ ~2 polished_blackstone_slab
  3. /fill ~-1 ~ ~-1 ~1 ~ ~1 gilded_blackstone
  4. /summon marker ~ ~ ~ {Tags:["c9_all","c9_ctrl"]}
  5. /scoreboard players set @e[tag=c9_ctrl] c9_time 0
  6. /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"}}
  7. /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"}}
  8. /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"}}
  9. /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}}

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

  1. /scoreboard players add @e[tag=c9_ctrl] c9_time 1
  2. /execute if score @e[tag=c9_ctrl,limit=1] c9_time matches 140.. run scoreboard players set @e[tag=c9_ctrl] c9_time 1
  3. /execute as @e[tag=c9_gear] at @s run tp @s ~ ~ ~ ~12 ~
  4. /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
  5. /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
  6. /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
  7. /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}]}}}}
  8. /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
  9. /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}]}
  10. /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
  11. /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 ~ ~ ~
  12. /execute as @e[tag=c9_fly] at @s run tp @s ^0.38 ^0.18 ^0.12 ~16 ~
  13. /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
  14. /scoreboard players add @e[tag=c9_fly] c9_time 1
  15. /kill @e[tag=c9_fly,scores={c9_time=45..}]
  16. /execute if score @e[tag=c9_ctrl,limit=1] c9_time matches 1 run tp @e[tag=c9_cork] ~ ~5.6 ~ 0 0

How it works

Frames from the test run

Clockwork Firefly Lantern Jar Uncorking - frame 1Clockwork Firefly Lantern Jar Uncorking - frame 2Clockwork Firefly Lantern Jar Uncorking - frame 3

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.

Build it in your world

  1. Clear a flat area and stand at the center block where you want the giant lantern jar to sit.
  2. Run each of the 9 setup commands in chat one by one to build the blackstone base, the glass jar displays, the copper rim, the cork, and the spinning clockwork dial.
  3. Place a repeating command block set to Always Active nearby, then chain 15 chain command blocks (Always Active, Unconditional) onto it.
  4. Paste the 16 loop commands in order into the repeating and chain command blocks, making sure you wrap coordinates or place them right below the jar center.
  5. Switch the time to night with /time set midnight to see the golden glow and color-transition particle trails clearly.

Use it with real players

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.

Remove it again 3 commands

  1. /kill @e[tag=c9_all]
  2. /fill ~-2 ~ ~-2 ~2 ~ ~2 air
  3. /scoreboard objectives remove c9_time

FAQ

Why do the fireflies fly in circles without needing complex math commands?

Each 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.

Will the firefly armor stands cause lag if left running?

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.

Commands used

/execute/fill/kill/particle/playsound/scoreboard/spreadplayers/summon/tp

Similar creations

Join 9Minecraft News & Guides