Build a cosmic forge in Minecraft where a giant spectral hammer of diamond and sea lanterns repeatedly slams down on a glowing star ingot.
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.
/scoreboard objectives add c9_t dummy/fill ~-4 ~ ~-4 ~4 ~ ~4 polished_blackstone_bricks replace/fill ~-1 ~1 ~-2 ~1 ~1 ~2 crying_obsidian replace/fill ~ ~2 ~-1 ~ ~2 ~1 crying_obsidian replace/fill ~-1 ~3 ~-3 ~1 ~3 ~3 crying_obsidian replace/setblock ~ ~3 ~ magma_block/summon marker ~ ~ ~ {Tags:["c9_e","c9_ctrl"]}/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]}}/summon armor_stand ~ ~4.2 ~ {Tags:["c9_e","c9_ring"],Invisible:1b,Marker:1b,NoGravity:1b}/summon armor_stand ~ ~5.5 ~ {Tags:["c9_e","c9_hpart"],Invisible:1b,Marker:1b,NoGravity:1b}/scoreboard players add @e[tag=c9_ctrl] c9_t 1/execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 40.. run scoreboard players set @e[tag=c9_ctrl] c9_t 1/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]}}/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]}}/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]}}/execute as @e[tag=c9_star] at @s run tp @s ~ ~ ~ ~8 ~/execute as @e[tag=c9_ring] at @s run tp @s ~ ~ ~ ~18 ~/execute at @e[tag=c9_ring] run particle flame ^ ^ ^2.2 0.1 0.1 0.1 0.01 4 force/execute at @e[tag=c9_ring] run particle soul_fire_flame ^ ^ ^-2.2 0.1 0.1 0.1 0.01 4 force/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 ~/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 ~/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/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/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]}]}}}}setup #5 Builds the top tier of the shaped crying obsidian anvil with a glowing magma core in the center.setup #8 Summons an oversized, glowing Nether star item_display above the anvil to serve as the star ingot.loop #3 Summons the giant diamond block hammer head using a scaled block_display entity if it is not already present.loop #4 Adds the glowing sea lantern core through the center of the spectral hammer head.loop #10 Slowly raises all parts of the spectral hammer during the first 25 ticks of the 40-tick cycle.loop #11 Slams the hammer down onto the star ingot in just 5 ticks, lining up with the sound, lava sparks, and firework burst on tick 30.


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.
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.
/kill @e[tag=c9_e]/scoreboard objectives remove c9_t/fill ~-4 ~ ~-4 ~4 ~4 ~4 air replaceSplitting 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.
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.
/execute/fill/particle/playsound/scoreboard/setblock/summon/tp
▶Levitating Tarot Deck Arcana Light ProjectionLight Beams & LasersHard23 cmds
▶Mechanical Astrological Zodiac WheelLight Beams & LasersHard21 cmds
▶Alchemical Philosopher's Stone Transmutation CoreLight Beams & LasersHard23 cmds
▶Celestial Abacus Counting Beads Of StarlightLight Beams & LasersMedium24 cmds
▶Celestial Sundial Time-Lapse Shadow SweeperLight Beams & LasersHard24 cmds
▶Constellation Weaver Starlight ShowLight Beams & LasersHard24 cmds