Watch a cluster of coal blocks implode around a central TNT charge with high-pressure particles, crushing the carbon into a glowing floating diamond.
Fountains & SpraysIndustrialTechnologyMysticCyanPurpleBlackCinematicDecorationLearningBlock displaysItem displaysSmooth animation (interpolation)Summoned mobsBlock building (fill/setblock/clone)13-20 commands
Real diamonds form under extreme heat and pressure, and this command setup brings that process into Minecraft. A ring of coal blocks surrounds a primed TNT core on an obsidian blast pad. As the charge winds up, swirling energy and smoke pull inward until the entire structure implodes into a dense core, leaving a glowing diamond hovering in the smoky crater.
The effect uses interpolated display entities and custom dust particles to simulate the blocks physically squeezing together before the final flash of light.
/scoreboard objectives add c9_timer dummy/scoreboard players set #tick c9_timer 0/fill ~-3 ~-1 ~-3 ~3 ~-1 ~3 minecraft:obsidian/fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 minecraft:crying_obsidian/fill ~-4 ~-1 ~-4 ~4 ~-1 ~4 minecraft:tuff_bricks replace minecraft:grass_block/scoreboard players add #tick c9_timer 1/execute if score #tick c9_timer matches 160.. run scoreboard players set #tick c9_timer 1/execute if score #tick c9_timer matches 1 run kill @e[tag=c9_comp]/execute if score #tick c9_timer matches 1 run fill ~-1 ~ ~-1 ~1 ~1 ~1 minecraft:coal_block/execute if score #tick c9_timer matches 1 run setblock ~ ~ ~ minecraft:tnt/execute if score #tick c9_timer matches 1..40 run particle minecraft:portal ~ ~1 ~ 2.5 1.8 2.5 1.2 35 force/execute if score #tick c9_timer matches 20..50 run particle minecraft:dust{color:[0.15,0.15,0.18],scale:2.0} ~ ~1 ~ 1.2 1.0 1.2 0 15 force/execute if score #tick c9_timer matches 41 run fill ~-1 ~ ~-1 ~1 ~1 ~1 minecraft:air/execute if score #tick c9_timer matches 41 run summon minecraft:block_display ~ ~1 ~ {Tags:["c9_comp","c9_core"],Glowing:1b,glow_color_override:65535,block_state:{Name:"minecraft:coal_block"},interpolation_duration:20,start_interpolation:0,transformation:{translation:[-1.2f,-1.0f,-1.2f],scale:[2.4f,2.0f,2.4f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/execute if score #tick c9_timer matches 42 run data merge entity @e[tag=c9_core,limit=1] {interpolation_duration:22,start_interpolation:0,transformation:{translation:[-0.15f,-0.15f,-0.15f],scale:[0.3f,0.3f,0.3f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/execute if score #tick c9_timer matches 42..64 run particle minecraft:electric_spark ~ ~1 ~ 1.4 1.4 1.4 0.5 30 force/execute if score #tick c9_timer matches 65 run kill @e[tag=c9_core]/execute if score #tick c9_timer matches 65 run summon minecraft:item_display ~ ~1.2 ~ {Tags:["c9_comp","c9_gem"],Glowing:1b,glow_color_override:65535,billboard:"center",item:{id:"minecraft:diamond",count:1},transformation:{translation:[0f,0f,0f],scale:[1.6f,1.6f,1.6f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/execute if score #tick c9_timer matches 65..155 run particle minecraft:dust{color:[0.2,0.95,1.0],scale:1.5} ~ ~1.2 ~ 0.6 0.6 0.6 0 8 forcesetup #1 Creates the <code>c9_timer</code> scoreboard objective to track the stages of the implosion cycle.loop #4 At the start of each 8-second cycle (tick 1), builds a 3x2x3 mound of coal blocks with a TNT block tucked inside at the centre.loop #6 During the first two seconds, spawns <code>portal</code> particles that naturally converge toward their origin point, creating a vacuum suction look.loop #9 Clears the real blocks at tick 41 and replaces them with a glowing <code>block_display</code> scaled up to match the coal pile.loop #10 One tick later, merges a smaller <code>0.3</code> scale transformation with a 22-tick <code>interpolation_duration</code> so the coal block smoothly crushes down into a tiny point.loop #13 At tick 65, removes the compressed coal core and summons a cyan-glowing <code>item_display</code> showing the freshly formed diamond.


Recorded on our own test server: 60 frames at about 9.9 fps. Our image check saw: A glowing diamond surrounded by cyan particles hovers over a crying obsidian pad before being compressed with coal blocks and purple particles.
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 craft diamonds on demand instead of running on a timer, remove the loop reset in command 2 and trigger the timer only when a player drops a flint and steel onto a coal block mound: /execute as @e[type=item,nbt={Item:{id:"minecraft:flint_and_steel"}}] at @s if block ~ ~-1 ~ minecraft:coal_block run scoreboard players set #tick c9_timer 1, then replace the final item_display with a real collectible item using /summon item ~ ~1 ~ {Item:{id:"minecraft:diamond",count:1}}.
/kill @e[tag=c9_comp]/scoreboard objectives remove c9_timer/fill ~-1 ~ ~-1 ~1 ~1 ~1 minecraft:air/fill ~-4 ~-1 ~-4 ~4 ~-1 ~4 minecraft:grass_blockAt tick 41 the real blocks are swapped for a block_display entity, and at tick 42 its transformation scale is shrunk from 2.4 down to 0.3 over 22 ticks using display interpolation.
No. The TNT block is only placed as a visual core and is cleared right before the implosion begins, so no real explosion damages your blocks.
▶Dynamic RGB Color Mixer ChamberFountains & SpraysMedium24 cmds
▶Automated Sterilization AirlockFountains & SpraysMedium24 cmds
▶Countdown Doomsday BlastFountains & SpraysHard21 cmds
▶Floating Hourglass of Golden StardustFountains & SpraysMedium24 cmds
▶Fracturing Prince Rupert's Drop ExplosionFountains & SpraysHard24 cmds
▶Area Effect Laser ShowFountains & SpraysEasy23 cmds