Diamond Compression Blast

Watch a cluster of coal blocks implode around a central TNT charge with high-pressure particles, crushing the carbon into a glowing floating diamond.

Java EditionParticle ArtEasy19 commandsTested on a real 26.2 & 26.3 server
A glowing diamond surrounded by cyan particles hovers above a crying obsidian blast pad. Download the GIF Video & GIF © www.9minecraft.net

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.

1. Setup - type these once 5 commands

  1. /scoreboard objectives add c9_timer dummy
  2. /scoreboard players set #tick c9_timer 0
  3. /fill ~-3 ~-1 ~-3 ~3 ~-1 ~3 minecraft:obsidian
  4. /fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 minecraft:crying_obsidian
  5. /fill ~-4 ~-1 ~-4 ~4 ~-1 ~4 minecraft:tuff_bricks replace minecraft:grass_block

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

  1. /scoreboard players add #tick c9_timer 1
  2. /execute if score #tick c9_timer matches 160.. run scoreboard players set #tick c9_timer 1
  3. /execute if score #tick c9_timer matches 1 run kill @e[tag=c9_comp]
  4. /execute if score #tick c9_timer matches 1 run fill ~-1 ~ ~-1 ~1 ~1 ~1 minecraft:coal_block
  5. /execute if score #tick c9_timer matches 1 run setblock ~ ~ ~ minecraft:tnt
  6. /execute if score #tick c9_timer matches 1..40 run particle minecraft:portal ~ ~1 ~ 2.5 1.8 2.5 1.2 35 force
  7. /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
  8. /execute if score #tick c9_timer matches 41 run fill ~-1 ~ ~-1 ~1 ~1 ~1 minecraft:air
  9. /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]}}
  10. /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]}}
  11. /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
  12. /execute if score #tick c9_timer matches 65 run kill @e[tag=c9_core]
  13. /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]}}
  14. /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 force

How it works

Frames from the test run

Diamond Compression Blast - frame 1Diamond Compression Blast - frame 2Diamond Compression Blast - frame 3

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.

Build it in your world

  1. Stand at the spot where you want the blast pad and run the 5 setup commands in chat.
  2. Place a line of 14 command blocks away from the pad, setting the first one to Repeat, Unconditional, and Always Active.
  3. Set the other 13 command blocks in the chain to Chain, Unconditional, and Always Active, all pointing in sequence.
  4. Paste the 14 loop commands in order into the command blocks, making sure you replace relative coordinates with the exact coordinates of your pad centre if your command blocks are placed off to the side.
  5. Watch the coal structure appear, compress inward, and burst into a hovering diamond every 8 seconds.

Use it with real players

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

Remove it again 4 commands

  1. /kill @e[tag=c9_comp]
  2. /scoreboard objectives remove c9_timer
  3. /fill ~-1 ~ ~-1 ~1 ~1 ~1 minecraft:air
  4. /fill ~-4 ~-1 ~-4 ~4 ~-1 ~4 minecraft:grass_block

FAQ

Why does the coal block shrink smoothly instead of disappearing right away?

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

Does the TNT damage the terrain around the stage?

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.

Commands used

/data/execute/fill/kill/particle/scoreboard/setblock/summon

Similar creations

Join 9Minecraft News & Guides