Build an automated pocket terrarium that carves a deep lava cavern with rotating laser beams, magma veins, a glass ring, and a floating azalea island.
Self-building StructuresNatureFireTechnologyCyanOrangeGreenDecorationBuilding ToolMap MakingBlock displaysSmooth animation (interpolation)Block building (fill/setblock/clone)Glowing outlinesRotation math21+ commands
The Pocket Terrarium Generator transforms a flat patch of grass into a glowing cross-section biome slice right in front of you. Starting from a levitating emerald seed crystal, three rotating sea_lantern laser beams sweep around the center to raise a circular cyan glass containment collar, carve out a deep deepslate cavern lined with magma veins, and flood the basin with bubbling lava.
Once the underground lava lake settles, a floating moss island rises above the glowing seed core and sprouts a flowering azalea tree, while the laser beams and cyan particle halo continue orbiting overhead.
/scoreboard objectives add c9_tick dummy/kill @e[tag=c9_ent]/fill ~-9 ~-6 ~-9 ~9 ~-2 ~9 deepslate/fill ~-9 ~-1 ~-9 ~9 ~-1 ~9 grass_block/fill ~-9 ~ ~-9 ~9 ~20 ~9 air/summon marker ~ ~ ~ {Tags:["c9_ent","c9_core"]}/summon block_display ~ ~4 ~ {Tags:["c9_ent","c9_beam"],Rotation:[0f,34f],billboard:"fixed",teleport_duration:1,Glowing:1b,glow_color_override:65535,brightness:{sky:15,block:15},block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.08f,-0.08f,0f],scale:[0.16f,0.16f,7.5f]}}/summon block_display ~ ~4 ~ {Tags:["c9_ent","c9_beam"],Rotation:[120f,34f],billboard:"fixed",teleport_duration:1,Glowing:1b,glow_color_override:65535,brightness:{sky:15,block:15},block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.08f,-0.08f,0f],scale:[0.16f,0.16f,7.5f]}}/summon block_display ~ ~4 ~ {Tags:["c9_ent","c9_beam"],Rotation:[240f,34f],billboard:"fixed",teleport_duration:1,Glowing:1b,glow_color_override:65535,brightness:{sky:15,block:15},block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.08f,-0.08f,0f],scale:[0.16f,0.16f,7.5f]}}/summon block_display ~ ~-0.2 ~ {Tags:["c9_ent","c9_seed"],Glowing:1b,glow_color_override:65408,brightness:{sky:15,block:15},block_state:{Name:"minecraft:emerald_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.4f,-0.4f,-0.4f],scale:[0.8f,0.8f,0.8f]}}/scoreboard players add @e[tag=c9_core] c9_tick 1/execute as @e[tag=c9_beam] at @s run tp @s ~ ~ ~ ~7 ~/execute if score @e[tag=c9_core,limit=1] c9_tick matches 1..18 as @e[tag=c9_beam] at @s rotated ~ 0 positioned ^ ^ ^7.5 run setblock ~ ~-4 ~ cyan_stained_glass/execute if score @e[tag=c9_core,limit=1] c9_tick matches 19..36 as @e[tag=c9_beam] at @s rotated ~ 0 positioned ^ ^ ^7.5 run setblock ~ ~-3 ~ light_blue_stained_glass/execute if score @e[tag=c9_core,limit=1] c9_tick matches 12..30 as @e[tag=c9_beam] at @s rotated ~ 0 positioned ^ ^ ^4.0 run fill ~-2 ~-8 ~-2 ~2 ~-5 ~2 air/execute if score @e[tag=c9_core,limit=1] c9_tick matches 18 run fill ~-3 ~-4 ~-3 ~3 ~-1 ~3 air/execute if score @e[tag=c9_core,limit=1] c9_tick matches 22..40 as @e[tag=c9_beam] at @s rotated ~ 0 positioned ^ ^ ^6.2 run fill ~ ~-6 ~ ~ ~-5 ~ magma_block/execute if score @e[tag=c9_core,limit=1] c9_tick matches 42 run fill ~-6 ~-4 ~-6 ~6 ~-3 ~6 lava replace air/execute if score @e[tag=c9_core,limit=1] c9_tick matches 48 run fill ~-2 ~1 ~-2 ~2 ~1 ~2 moss_block/execute if score @e[tag=c9_core,limit=1] c9_tick matches 54 run fill ~ ~2 ~ ~ ~5 ~ oak_log/execute if score @e[tag=c9_core,limit=1] c9_tick matches 60 run fill ~-2 ~5 ~-2 ~2 ~7 ~2 flowering_azalea_leaves[persistent=true] keep/execute as @e[tag=c9_beam] at @s positioned ^ ^ ^6.8 run particle flame ~ ~ ~ 0.18 0.18 0.18 0.03 4 force/execute as @e[tag=c9_beam] at @s rotated ~ 0 positioned ^ ^ ^7.5 run particle dust{color:[0.0,1.0,1.0],scale:1.8} ~ ~3 ~ 0.1 0.1 0.1 0 3 force/execute if score @e[tag=c9_core,limit=1] c9_tick matches 42.. run particle lava ~ ~-2.5 ~ 3.5 0.4 3.5 0.05 8 forcesetup #7 Summons the first of three stretched <code>sea_lantern</code> block displays tilted downward at 34 degrees, giving each rotating sculptor beam a solid glowing cyan shape.setup #10 Places the central glowing emerald seed block display just below the future island so it hovers visibly above the lava basin.loop #2 Rotates all three sculptor beams by 7 degrees every tick, creating smooth 360-degree sweeps for carving, ring building, and particle effects.loop #3 Uses the sweeping beams during ticks 1 to 18 to trace a circular <code>cyan_stained_glass</code> containment collar around the rim, followed by a second light-blue glass tier.loop #5 Carves out a circular underground basin four blocks deep while the beams spin, then lines the inner deepslate wall with glowing <code>magma_block</code> veins.loop #8 Floods only the carved air pocket inside the circular cavern with lava at tick 42, leaving the surrounding deepslate and magma veins intact.loop #13 Draws a continuous orbiting cyan dust halo high above the containment ring while flame sparks and lava embers keep the terrarium animated.


Recorded on our own test server: 59 frames at about 9.8 fps. Our image check saw: Three rotating cyan laser beams sweep over a glass-enclosed lava and magma pit surrounding a central mossy island with a flowering azalea tree and a floating blue particle ring.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To let a player trigger a terrarium wherever they stand, replace the fixed ~ ~ ~ coordinates in the setup commands with execute at @p run ..., give the player a named item such as a minecraft:emerald[custom_name={"text":"Terrarium Seed","color":"green"}], and add a loop check that runs the setup at a dropped seed item tagged c9_ent before killing the item.
/kill @e[tag=c9_ent]/scoreboard objectives remove c9_tick/fill ~-9 ~-5 ~-9 ~9 ~-2 ~9 dirt/fill ~-9 ~-1 ~-9 ~9 ~-1 ~9 grass_block/fill ~-9 ~ ~-9 ~9 ~12 ~9 airKeeping the circular glass collar two blocks high leaves the middle open so you have a clear view of the glowing lava lake, magma veins, floating island, and rotating beams without stained glass blocking the cavern.
Yes. Run the setup commands again from the stage center to clear the old entities, reset the terrain, and restart the timer from tick 0.
▶Mechanical Spider Silk Web SpinnerSelf-building StructuresHard24 cmds
▶Automated Terrain & Mountain SculptorSelf-building StructuresExpert24 cmds
▶Dyson Sphere Megastructure EncasementSelf-building StructuresExpert24 cmds
▶Procedural Landscape BuilderSelf-building StructuresExpert24 cmds
▶Procedural Terrain AssemblerSelf-building StructuresHard24 cmds
▶Procedural Terrain PrinterSelf-building StructuresExpert24 cmds