Celestial Blacksmith Anvil Forging A Star

Build a cosmic forge in Minecraft where a giant spectral hammer of diamond and sea lanterns repeatedly slams down on a glowing star ingot.

Java EditionFireworks & Light ShowsHard24 commandsTested on a real 26.2 & 26.3 server
A giant diamond hammer forges a fiery Nether star atop a crying obsidian anvil at night. Download the GIF Video & GIF © www.9minecraft.net

Light Beams & LasersSpaceFireMysticCyanPurpleOrangeDecorationCinematicServer LobbyBlock displaysItem displaysArmor standsFireworksBlock building (fill/setblock/clone)SoundsRotation math21+ commands

This command creation sets up a cosmic forge right in the middle of your world. Above a crying obsidian anvil, a white-hot Nether star spins inside a permanent ring of fire while a colossal hammer built from diamond blocks, sea lanterns, and amethyst hovers overhead.

Every two seconds, the giant hammer rises up and slams down onto the star ingot. Each strike triggers an anvil clang, a burst of sparks, a golden shockwave, and twin firework explosions launching outward from the anvil.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_t dummy
  2. /fill ~-4 ~ ~-4 ~4 ~ ~4 polished_blackstone_bricks replace
  3. /fill ~-1 ~1 ~-2 ~1 ~1 ~2 crying_obsidian replace
  4. /fill ~ ~2 ~-1 ~ ~2 ~1 crying_obsidian replace
  5. /fill ~-1 ~3 ~-3 ~1 ~3 ~3 crying_obsidian replace
  6. /setblock ~ ~3 ~ magma_block
  7. /summon marker ~ ~ ~ {Tags:["c9_e","c9_ctrl"]}
  8. /summon item_display ~ ~4.5 ~ {Tags:["c9_e","c9_star"],Glowing:1b,glow_color_override:16766720,brightness:{sky:15,block:15},item:{id:"minecraft:nether_star",count:1},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[2.2f,2.2f,2.2f]}}
  9. /summon armor_stand ~ ~4.2 ~ {Tags:["c9_e","c9_ring"],Invisible:1b,Marker:1b,NoGravity:1b}
  10. /summon armor_stand ~ ~5.5 ~ {Tags:["c9_e","c9_hpart"],Invisible:1b,Marker:1b,NoGravity:1b}

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

  1. /scoreboard players add @e[tag=c9_ctrl] c9_t 1
  2. /execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 40.. run scoreboard players set @e[tag=c9_ctrl] c9_t 1
  3. /execute unless entity @e[tag=c9_hhead] run summon block_display ~ ~5.5 ~ {Tags:["c9_e","c9_hpart","c9_hhead"],Glowing:1b,glow_color_override:5636095,brightness:{sky:15,block:15},block_state:{Name:"minecraft:diamond_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-2.2f,0f,-1.1f],scale:[4.4f,2.2f,2.2f]}}
  4. /execute unless entity @e[tag=c9_hcore] run summon block_display ~ ~5.5 ~ {Tags:["c9_e","c9_hpart","c9_hcore"],Glowing:1b,glow_color_override:16777215,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:[-2.4f,0.3f,-0.8f],scale:[4.8f,1.6f,1.6f]}}
  5. /execute unless entity @e[tag=c9_hshaft] run summon block_display ~ ~5.5 ~ {Tags:["c9_e","c9_hpart","c9_hshaft"],Glowing:1b,glow_color_override:16733695,brightness:{sky:15,block:15},block_state:{Name:"minecraft:amethyst_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.4f,2.2f,-0.4f],scale:[0.8f,5.0f,0.8f]}}
  6. /execute as @e[tag=c9_star] at @s run tp @s ~ ~ ~ ~8 ~
  7. /execute as @e[tag=c9_ring] at @s run tp @s ~ ~ ~ ~18 ~
  8. /execute at @e[tag=c9_ring] run particle flame ^ ^ ^2.2 0.1 0.1 0.1 0.01 4 force
  9. /execute at @e[tag=c9_ring] run particle soul_fire_flame ^ ^ ^-2.2 0.1 0.1 0.1 0.01 4 force
  10. /execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 1..25 as @e[tag=c9_hpart] at @s run tp @s ~ ~0.16 ~
  11. /execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 26..30 as @e[tag=c9_hpart] at @s run tp @s ~ ~-0.8 ~
  12. /execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 30 run playsound entity.anvil.land master @a ~ ~4.5 ~ 2.0 0.6
  13. /execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 30 run particle lava ~ ~4.5 ~ 0.6 0.3 0.6 0.2 35 force
  14. /execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 30 run summon firework_rocket ~ ~4.8 ~ {Motion:[0.0,0.3,0.0],LifeTime:12,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{flight_duration:1,explosions:[{shape:"burst",has_twinkle:1b,has_trail:1b,colors:[I;16766720,5636095],fade_colors:[I;16777215]}]}}}}

How it works

Frames from the test run

Celestial Blacksmith Anvil Forging A Star - frame 1Celestial Blacksmith Anvil Forging A Star - frame 2Celestial Blacksmith Anvil Forging A Star - frame 3

Recorded on our own test server: 49 frames at about 9.7 fps. Our image check saw: A large glowing diamond and amethyst hammer moves up and down above a spinning Nether star surrounded by fire on a crying obsidian anvil.

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. Clear a flat 15x15 area in your world and stand at the center block.
  2. Run each of the 10 setup commands in chat to build the crying obsidian anvil and summon the star and timer entities.
  3. Place a line of 14 repeating command blocks (set to Always Active) near the forge.
  4. Paste one loop command into each repeating command block, making sure their coordinates are aligned with the center of the anvil.
  5. Watch the giant spectral hammer appear above the anvil and strike the spinning star every two seconds.

Use it with real players

To let players forge their own items at the anvil, replace the timer check on tick 30 with an execute command that checks for dropped netherite ingots on the magma block: /execute if entity @e[type=item,nbt={Item:{id:"minecraft:netherite_ingot"}},distance=..2]. When the hammer strikes on tick 30, kill the ingot item and summon your custom enchanted gear in its place.

Remove it again 3 commands

  1. /kill @e[tag=c9_e]
  2. /scoreboard objectives remove c9_t
  3. /fill ~-4 ~ ~-4 ~4 ~4 ~4 air replace

FAQ

Why does the giant hammer use three separate block_display entities?

Splitting the hammer into a diamond head, a sea lantern core, and an amethyst handle lets each piece have its own scale, offset, and glow color while moving together via the shared c9_hpart tag.

How can I change how fast the hammer strikes?

Adjust the cycle length in the second loop command from 40 ticks (2 seconds) to a higher number, and make sure the upward motion distance equals the downward slam distance so the hammer never drifts.

Commands used

/execute/fill/particle/playsound/scoreboard/setblock/summon/tp

Similar creations

Join 9Minecraft News & Guides