Self-Assembling Terrarium in a Bottle

Build a giant tilted glass bottle made of block displays that automatically fills itself with swirling sand layers, miniature trees, and a glowing waterfall.

Java EditionHolograms & Display EntitiesHard21 commandsTested on a real 26.2 & 26.3 server
A giant tilted glass bottle terrarium containing a miniature cherry tree and falling petals at night. Download the GIF Video & GIF © www.9minecraft.net

Animated BlocksNatureMysticCutePinkGreenYellowDecorationServer LobbyCinematicParticlesBlock displaysSmooth animation (interpolation)Scoreboard timersGlowing outlines21+ commands

This command creation summons a giant, tilted glass bottle hovering in mid-air using scaled and rotated block_display entities. Watch as a swirling stream of magic particles pours through the open cork, depositing layered sand, soil, moss, a miniature cherry blossom tree, and an animated waterfall right inside the glass.

Once the miniature ecosystem finishes assembling, fireflies and cherry petals drift around the glowing bottle before the cork pops back on and the cycle begins again.

1. Setup - type these once 7 commands

  1. /scoreboard objectives add c9_t dummy
  2. /scoreboard players set #tick c9_t 0
  3. /summon marker ~ ~5 ~ {Tags:["c9_bottle","c9_root"]}
  4. /summon block_display ~ ~5 ~ {Tags:["c9_bottle","c9_glass"],Glowing:1b,glow_color_override:11599871,block_state:{Name:"minecraft:cyan_stained_glass"},transformation:{translation:[-2.73f,-3.73f,-3.0f],left_rotation:[0f,0f,-0.2588f,0.9659f],scale:[6.0f,7.0f,6.0f],right_rotation:[0f,0f,0f,1f]}}
  5. /summon block_display ~ ~5 ~ {Tags:["c9_bottle","c9_neck"],Glowing:1b,glow_color_override:11599871,block_state:{Name:"minecraft:cyan_stained_glass"},transformation:{translation:[0.71f,2.93f,-1.5f],left_rotation:[0f,0f,-0.2588f,0.9659f],scale:[3.0f,2.5f,3.0f],right_rotation:[0f,0f,0f,1f]}}
  6. /summon block_display ~ ~5 ~ {Tags:["c9_bottle","c9_cork"],block_state:{Name:"minecraft:stripped_oak_wood"},transformation:{translation:[1.81f,4.91f,-1.2f],left_rotation:[0f,0f,-0.2588f,0.9659f],scale:[2.4f,1.5f,2.4f],right_rotation:[0f,0f,0f,1f]}}
  7. /summon block_display ~ ~1.8 ~ {Tags:["c9_bottle","c9_stand"],block_state:{Name:"minecraft:dark_oak_wood"},transformation:{translation:[-2.5f,-1.8f,-2.0f],left_rotation:[0f,0f,0f,1f],scale:[5.0f,1.2f,4.0f],right_rotation:[0f,0f,0f,1f]}}

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

  1. /scoreboard players add #tick c9_t 1
  2. /execute if score #tick c9_t matches 240.. run scoreboard players set #tick c9_t 1
  3. /execute if score #tick c9_t matches 1 run kill @e[tag=c9_inner]
  4. /execute if score #tick c9_t matches 1 run data merge entity @e[tag=c9_cork,limit=1] {interpolation_duration:15,start_interpolation:0,transformation:{translation:[1.81f,4.91f,-1.2f],left_rotation:[0f,0f,-0.2588f,0.9659f],scale:[2.4f,1.5f,2.4f],right_rotation:[0f,0f,0f,1f]}}
  5. /execute if score #tick c9_t matches 15 run data merge entity @e[tag=c9_cork,limit=1] {interpolation_duration:20,start_interpolation:0,transformation:{translation:[3.8f,7.8f,-1.2f],left_rotation:[0f,0f,-0.5f,0.866f],scale:[2.4f,1.5f,2.4f],right_rotation:[0f,0f,0f,1f]}}
  6. /execute if score #tick c9_t matches 20..35 run particle dust{color:[0.95,0.85,0.5],scale:1.6} ~2.2 ~9.2 ~ 0.3 0.8 0.3 0 8 force
  7. /execute if score #tick c9_t matches 25 run summon block_display ~ ~5 ~ {Tags:["c9_bottle","c9_inner"],interpolation_duration:20,start_interpolation:0,block_state:{Name:"minecraft:sand"},transformation:{translation:[-2.3f,-2.2f,-2.6f],left_rotation:[0f,0f,0f,1f],scale:[5.2f,0.8f,5.2f],right_rotation:[0f,0f,0f,1f]}}
  8. /execute if score #tick c9_t matches 40..55 run particle dust{color:[0.3,0.75,0.25],scale:1.6} ~2.2 ~9.2 ~ 0.3 0.8 0.3 0 8 force
  9. /execute if score #tick c9_t matches 45 run summon block_display ~ ~5 ~ {Tags:["c9_bottle","c9_inner"],interpolation_duration:20,start_interpolation:0,block_state:{Name:"minecraft:moss_block"},transformation:{translation:[-2.4f,-1.4f,-2.6f],left_rotation:[0f,0f,0f,1f],scale:[5.0f,0.7f,5.2f],right_rotation:[0f,0f,0f,1f]}}
  10. /execute if score #tick c9_t matches 65 run summon block_display ~ ~5 ~ {Tags:["c9_bottle","c9_inner"],block_state:{Name:"minecraft:stone"},transformation:{translation:[-2.2f,-0.7f,-2.3f],left_rotation:[0f,0f,0f,1f],scale:[1.8f,3.2f,1.8f],right_rotation:[0f,0f,0f,1f]}}
  11. /execute if score #tick c9_t matches 75 run summon block_display ~ ~5 ~ {Tags:["c9_bottle","c9_inner"],block_state:{Name:"minecraft:cherry_log"},transformation:{translation:[0.5f,-0.7f,0.2f],left_rotation:[0f,0f,0f,1f],scale:[0.6f,2.4f,0.6f],right_rotation:[0f,0f,0f,1f]}}
  12. /execute if score #tick c9_t matches 85 run summon block_display ~ ~5 ~ {Tags:["c9_bottle","c9_inner"],Glowing:1b,glow_color_override:16755415,block_state:{Name:"minecraft:cherry_leaves"},transformation:{translation:[-0.4f,1.3f,-0.7f],left_rotation:[0f,0f,0f,1f],scale:[2.4f,1.6f,2.4f],right_rotation:[0f,0f,0f,1f]}}
  13. /execute if score #tick c9_t matches 95..235 run particle splash ~-0.5 ~6.5 ~-1.0 0.15 0.9 0.15 0.05 6 force
  14. /execute if score #tick c9_t matches 95..235 run particle cherry_leaves ~0.8 ~6.5 ~0.8 0.9 0.4 0.9 0.02 2 force

How it works

Frames from the test run

Self-Assembling Terrarium in a Bottle - frame 1Self-Assembling Terrarium in a Bottle - frame 2Self-Assembling Terrarium in a Bottle - frame 3

Recorded on our own test server: 65 frames at about 9.2 fps. Our image check saw: A large tilted glass bottle made of block displays hovers at night, containing layered terrain, a miniature cherry blossom tree shedding pink particles, and a floating cork above.

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. Enable command blocks in your world and stand at the spot where you want the terrarium bottle to appear.
  2. Run each command from the Setup list once in your chat window to create the scoreboard timer and the outer tilted bottle.
  3. Place a repeating command block set to Always Active at the exact same centre coordinates (or wrap the commands with execute positioned at your stage centre).
  4. Chain 13 impulse/chain command blocks set to Always Active onto the repeating command block and paste one Loop command into each block in order.
  5. Watch the cork pop open and the miniature landscape build itself every 12 seconds.

Use it with real players

To let a player trigger the self-assembling terrarium on demand instead of looping automatically, replace the automatic #tick reset in Loop command 2 with a check for a player holding a glass bottle: /execute if entity @a[distance=..12,nbt={SelectedItem:{id:"minecraft:glass_bottle"}}] if score #tick c9_t matches 240.. run scoreboard players set #tick c9_t 1.

Remove it again 2 commands

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

FAQ

Why is the bottle tilted while the sand and tree inside are flat?

The glass body and neck use a 30-degree Z-axis quaternion rotation in their transformation matrix, while the inner sand, moss, cliff, and tree use an unrotated identity quaternion so gravity inside the bottle looks natural.

Will this lag my server over time?

No. Every inner display entity is tagged with c9_inner and cleaned up at the start of each 12-second cycle, keeping the total entity count at 10 or fewer at all times.

Commands used

/data/execute/kill/particle/scoreboard/summon

Similar creations

Join 9Minecraft News & Guides