Toss a magic capsule that bursts open in a puff of smoke, rapidly unfolding blocks in steps to assemble a cozy, glowing tent and warm campfire.
Spawners & GeneratorsNatureOrangeYellowWhiteAdventure MapBuilding ToolDecorationItem displaysArmor standsSmooth animation (interpolation)Block building (fill/setblock/clone)Sounds13-20 commands
Setting up camp before nightfall takes just one throw with the Instant Campsite Capsule. In this command creation, an automated camper tosses a glowing capsule into the clearing. Moments after landing, it pops open in a cloud of smoke and rapidly unfolds stage-by-stage—laying down a rug, raising striped tent walls, placing a bed and crafting utilities, and sparking a lively campfire out front.
The build uses a single scoreboard clock to sequence multi-step construction with sound effects and smooth particles, packing down cleanly so the demonstration can loop continuously.
/scoreboard objectives add c9_t dummy/summon marker ~ ~ ~ {Tags:["c9_m"]}/scoreboard players set @e[tag=c9_m] c9_t 0/summon armor_stand ~ ~ ~6 {Tags:["c9_actor"],NoGravity:1b,ShowArms:1b,Rotation:[180f,0f],equipment:{mainhand:{id:"minecraft:heart_of_the_sea",count:1},head:{id:"minecraft:leather_helmet",count:1},chest:{id:"minecraft:leather_chestplate",count:1},legs:{id:"minecraft:leather_leggings",count:1},feet:{id:"minecraft:leather_boots",count:1}}}/scoreboard players add @e[tag=c9_m] c9_t 1/execute if entity @e[tag=c9_m,scores={c9_t=150..}] run scoreboard players set @e[tag=c9_m] c9_t 1/execute if entity @e[tag=c9_m,scores={c9_t=5}] run summon item_display ~ ~1.4 ~5.5 {Tags:["c9_cap"],Glowing:1b,glow_color_override:65535,item:{id:"minecraft:heart_of_the_sea",count:1},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[0.6f,0.6f,0.6f]}}/execute if entity @e[tag=c9_m,scores={c9_t=6}] as @e[tag=c9_cap] run data merge entity @s {start_interpolation:0,interpolation_duration:14,transformation:{left_rotation:[0.7f,0.7f,0f,0f],right_rotation:[0f,0f,0f,1f],translation:[0f,-1.1f,-5.5f],scale:[0.7f,0.7f,0.7f]}}/execute if entity @e[tag=c9_m,scores={c9_t=6..19}] run particle dust{color:[0.2,0.9,1.0],scale:1.2} ~ ~1 ~2.5 0.2 0.3 1.5 0 4/execute if entity @e[tag=c9_m,scores={c9_t=20}] run kill @e[tag=c9_cap]/execute if entity @e[tag=c9_m,scores={c9_t=20..30}] run particle explosion ~ ~1 ~-1 1.5 1 1.5 0.05 6/execute if entity @e[tag=c9_m,scores={c9_t=20}] run playsound entity.generic.explode master @a ~ ~ ~ 0.6 1.5/execute if entity @e[tag=c9_m,scores={c9_t=22}] run fill ~-2 ~ ~-4 ~2 ~ ~ spruce_planks/execute if entity @e[tag=c9_m,scores={c9_t=25}] run fill ~-2 ~1 ~-4 ~2 ~2 ~ orange_wool hollow/execute if entity @e[tag=c9_m,scores={c9_t=28}] run fill ~-1 ~3 ~-4 ~1 ~3 ~ yellow_wool/execute if entity @e[tag=c9_m,scores={c9_t=31}] run fill ~-1 ~1 ~ ~1 ~2 ~ air/execute if entity @e[tag=c9_m,scores={c9_t=34}] run setblock ~ ~ ~3 campfire[lit=true]/execute if entity @e[tag=c9_m,scores={c9_t=140}] run fill ~-3 ~ ~-4 ~3 ~4 ~4 airsetup #1 Creates the <code>c9_t</code> scoreboard objective to act as our master animation timeline.setup #4 Summons the camper armor stand holding a Heart of the Sea, which acts as the campsite capsule.loop #3 At tick 5, summons a glowing <code>item_display</code> capsule right in front of the camper's hand.loop #4 At tick 6, uses display interpolation over 14 ticks to smoothly arc and spin the capsule toward the centre of the stage.loop #9 From ticks 22 to 34, a staggered chain of <code>/fill</code> and <code>/setblock</code> commands unfolds the spruce floor, orange and yellow tent canopy, doorway, and campfire.loop #14 At tick 140, clears the tent and campfire area back to air so the capsule throw can repeat cleanly.


Recorded on our own test server: 58 frames at about 9.7 fps. Our image check saw: A character throws a glowing end crystal capsule onto a grass platform, which pops in smoke and unfolds stage-by-stage into an orange and yellow striped tent with a campfire in front.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To let real players throw a campsite capsule, replace the timer trigger with a snowball check: detect a thrown snowball tagged with a custom item name using /execute as @e[type=snowball] if data entity @s Item.components."minecraft:custom_name", summon the c9_m marker at the snowball's position right before it lands, and run ticks 20 to 34 relative to that marker without running the tick 140 reset command.
/fill ~-3 ~ ~-4 ~3 ~4 ~4 air/kill @e[tag=c9_m]/kill @e[tag=c9_actor]/kill @e[tag=c9_cap]/scoreboard objectives remove c9_tYes, the tent and cleanup command fill a 7x5x9 box around the centre marker, so always trigger it in an open clearing.
Remove the last loop command (command 14, which runs at tick 140) and break the first repeating command block once the campfire appears at tick 34.
/data/execute/fill/kill/particle/playsound/scoreboard/setblock/summon
▶Automated Crop HarvesterSpawners & GeneratorsMedium24 cmds
▶Autonomous Smart Farm CycleSpawners & GeneratorsMedium24 cmds
▶Instant Pop-Up ShelterSpawners & GeneratorsEasy17 cmds
▶Wandering Trail WeaverSpawners & GeneratorsEasy22 cmds
▶Automated Rustic Roof BuilderSpawners & GeneratorsHard24 cmds
▶Self-Building Wooden CabinSpawners & GeneratorsEasy21 cmds