Procedural Asteroid Field

Summon a procedural asteroid field in Minecraft Java Edition with tumbling cratered space rocks, glowing crystal veins, and cosmic stardust trails.

Java EditionSky & WeatherMedium18 commandsTested on a real 26.2 & 26.3 server
Floating asteroid clusters made of magma, amethyst, and obsidian drift across a starry Minecraft night sky. Download the GIF Video & GIF © www.9minecraft.net

Meteors & CometsSpaceDarkBlackPurpleOrangeDecorationMap MakingCinematicBlock displaysSmooth animation (interpolation)Rotation math13-20 commands

High above the ground, a cluster of gilded blackstone and crying obsidian spins at the heart of a drifting asteroid belt. Around it, jagged space rocks continuously generate at varied heights and angles, tumbling across the night sky before fading at the far edge of the field.

Each asteroid is built from intersecting block_display shapes with offset quaternions so magma craters and amethyst veins peek through dark stone facets, leaving trails of warm dust and starlight particles as they drift.

1. Setup - type these once 5 commands

  1. /scoreboard objectives add c9_tm dummy
  2. /summon block_display ~ ~11 ~ {Tags:["c9_all","c9_core"],glowing:1b,glow_color_override:16755200,teleport_duration:2,brightness:{sky:15,block:14},block_state:{Name:"minecraft:gilded_blackstone"},transformation:{left_rotation:[0.3f,0.2f,0.4f,0.8426f],right_rotation:[0f,0f,0f,1f],scale:[3.2f,2.4f,2.8f],translation:[-1.1f,-1.39f,-1.68f]}}
  3. /summon block_display ~ ~11 ~ {Tags:["c9_all","c9_core"],glowing:1b,glow_color_override:11141375,teleport_duration:2,brightness:{sky:15,block:15},block_state:{Name:"minecraft:crying_obsidian"},transformation:{left_rotation:[-0.4f,0.3f,-0.2f,0.8426f],right_rotation:[0f,0f,0f,1f],scale:[2.4f,3.0f,2.2f],translation:[-1.77f,-0.82f,1.06f]}}
  4. /summon marker ~-5 ~8.5 ~ {Tags:["c9_all","c9_sp","c9_sp1"],Rotation:[0f,0f]}
  5. /summon marker ~-15.5 ~14.5 ~2 {Tags:["c9_all","c9_sp","c9_sp2"],Rotation:[180f,0f]}

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

  1. /scoreboard players add #t c9_tm 1
  2. /execute if score #t c9_tm matches 20.. run scoreboard players set #t c9_tm 0
  3. /execute as @e[tag=c9_sp] at @s run tp @s ^ ^ ^1.1 ~11 0
  4. /execute if score #t c9_tm matches 5 at @e[tag=c9_sp1] run summon block_display ~ ~ ~ {Tags:["c9_all","c9_ast","c9_a1","c9_lead"],teleport_duration:2,brightness:{sky:15,block:13},block_state:{Name:"minecraft:cobbled_deepslate"},transformation:{left_rotation:[0.3f,0.2f,0.4f,0.8426f],right_rotation:[0f,0f,0f,1f],scale:[1.6f,1.2f,1.4f],translation:[-0.55f,-0.69f,-0.84f]}}
  5. /execute if score #t c9_tm matches 5 at @e[tag=c9_sp1] run summon block_display ~ ~ ~ {Tags:["c9_all","c9_ast","c9_a1"],glowing:1b,glow_color_override:16744192,teleport_duration:2,brightness:{sky:15,block:15},block_state:{Name:"minecraft:magma_block"},transformation:{left_rotation:[-0.4f,0.3f,-0.2f,0.8426f],right_rotation:[0f,0f,0f,1f],scale:[1.2f,1.5f,1.1f],translation:[-0.88f,-0.41f,0.53f]}}
  6. /execute if score #t c9_tm matches 15 at @e[tag=c9_sp2] run summon block_display ~ ~ ~ {Tags:["c9_all","c9_ast","c9_a2","c9_lead"],teleport_duration:2,brightness:{sky:15,block:13},block_state:{Name:"minecraft:blackstone"},transformation:{left_rotation:[0.2f,-0.4f,0.3f,0.8426f],right_rotation:[0f,0f,0f,1f],scale:[1.1f,0.9f,1.3f],translation:[0.38f,-0.15f,-0.87f]}}
  7. /execute if score #t c9_tm matches 15 at @e[tag=c9_sp2] run summon block_display ~ ~ ~ {Tags:["c9_all","c9_ast","c9_a2"],glowing:1b,glow_color_override:5636095,teleport_duration:2,brightness:{sky:15,block:15},block_state:{Name:"minecraft:amethyst_block"},transformation:{left_rotation:[-0.3f,-0.2f,0.4f,0.8426f],right_rotation:[0f,0f,0f,1f],scale:[0.85f,1.15f,0.85f],translation:[0.31f,-0.77f,0.03f]}}
  8. /execute as @e[tag=c9_core] at @s run tp @s ~ ~ ~ ~1.6 ~
  9. /execute as @e[tag=c9_a1] at @s run tp @s ~0.11 ~0.008 ~0.01 ~2.5 ~
  10. /execute as @e[tag=c9_a2] at @s run tp @s ~0.16 ~-0.012 ~-0.015 ~-3.8 ~
  11. /execute at @e[tag=c9_lead] run particle dust{color:[1.0,0.5,0.15],scale:1.3} ~-0.4 ~ ~ 0.25 0.25 0.25 0 2 force
  12. /particle end_rod ~ ~11 ~ 7 3.5 6 0.01 4 force
  13. /execute positioned ~15 ~ ~-18 run kill @e[tag=c9_ast,dx=6,dy=26,dz=36]

How it works

Frames from the test run

Procedural Asteroid Field - frame 1Procedural Asteroid Field - frame 2Procedural Asteroid Field - frame 3

Recorded on our own test server: 59 frames at about 9.7 fps. Our image check saw: A central cluster of gilded blackstone and crying obsidian floats in the night sky surrounded by rotating, intersecting block displays of stone, magma, and amethyst accompanied by white and orange 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. Choose an open area with clear sky and stand at the centre block where you want the asteroid field overhead.
  2. Set the time to night so the glowing outlines, full-bright block textures, and starlight particles stand out clearly.
  3. Run the 5 setup commands once in chat (or from impulse command blocks positioned at that centre spot) to create the timer, central asteroid, and orbital spawners.
  4. Place 13 repeating command blocks set to Always Active (or 1 repeating block chained into 12 Always Active chain command blocks) and paste the loop commands in order.
  5. Wait about 7 seconds for newly generated rocks to populate the full width of the skybox.

Use it with real players

This showcase runs automatically in a fixed region of sky, making it ideal above space builds or End bases. If you want the asteroid belt to follow an explorer instead, wrap the setup and loop commands in execute at @p run ... and remove the fixed central core so rocks drift continuously overhead wherever the player travels.

Remove it again 2 commands

  1. /kill @e[tag=c9_all]
  2. /scoreboard objectives remove c9_tm

FAQ

Why don't the space rocks look dark at night?

Each block_display entity uses the brightness NBT tag with sky light 15 and high block light so its stone facets and glowing crystal veins stay clearly visible against a dark sky.

Will summoning new asteroids every second cause lag over time?

No. Only two two-part asteroids spawn per second, and the cleanup boundary deletes every rock once it crosses 15 blocks east of the centre, capping the scene at roughly 40 entities.

Commands used

/execute/kill/particle/scoreboard/summon/tp

Similar creations

Join 9Minecraft News & Guides