Crystalline Capsule Prize Machine

Build an automated crystalline capsule machine in vanilla Minecraft where orbiting amethyst capsules drop and crack open on an anvil to reveal glowing prizes.

Java EditionHolograms & Display EntitiesMedium24 commandsTested on a real 26.2 & 26.3 server
A copper arcade machine in Minecraft displays glowing orbiting amethyst crystals and a floating Nether Star prize. Download the GIF Video & GIF © www.9minecraft.net

Machines & MechanismsCelebrationMysticTechnologyPurpleGreenOrangeServer LobbyMini-gameDecorationItem displaysText displaysSmooth animation (interpolation)Block building (fill/setblock/clone)Glowing outlinesRotation math21+ commands

The Crystalline Capsule Prize Machine turns a corner of your world into a glowing arcade display using only vanilla command blocks and display entities. Inside an open copper and sea-lantern frame, three amethyst capsules orbit around the top dome before a central geode drops down onto the anvil pedestal.

When the capsule hits the anvil, it bursts in a cloud of particles and reveals a rotating prize that cycles between a golden Nether Star, a bright Diamond Block, and an Emerald Block before resetting for the next draw.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_timer dummy
  2. /scoreboard objectives add c9_tier dummy
  3. /fill ~-2 ~ ~-2 ~2 ~ ~2 polished_deepslate_slab[type=bottom]
  4. /fill ~-1 ~ ~-1 ~1 ~5 ~1 waxed_copper_grate
  5. /fill ~-1 ~ ~-1 ~1 ~ ~1 waxed_chiseled_copper
  6. /fill ~-1 ~5 ~-1 ~1 ~5 ~1 waxed_cut_copper_slab[type=bottom]
  7. /fill ~ ~1 ~-1 ~ ~4 ~1 air
  8. /fill ~-1 ~1 ~ ~1 ~4 ~ air
  9. /setblock ~ ~ ~ sea_lantern
  10. /setblock ~ ~1 ~ anvil

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

  1. /execute unless entity @e[tag=c9_core] run summon text_display ~ ~4.6 ~ {Tags:["c9_m","c9_core"],billboard:"center",background:0,text:{text:"★ CAPSULE PRIZE ★",color:"gold",bold:true},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[1.6f,1.6f,1.6f]}}
  2. /execute unless entity @e[tag=c9_orb] run summon item_display ~ ~3.8 ~ {Tags:["c9_m","c9_orb"],Glowing:1b,glow_color_override:11141375,item:{id:"minecraft:amethyst_cluster"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0.85f,0f,0f],scale:[0.6f,0.6f,0.6f]}}
  3. /execute unless entity @e[tag=c9_orb2] run summon item_display ~ ~3.8 ~ {Tags:["c9_m","c9_orb2"],Rotation:[120f,0f],Glowing:1b,glow_color_override:5636095,item:{id:"minecraft:amethyst_cluster"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0.85f,0f,0f],scale:[0.6f,0.6f,0.6f]}}
  4. /execute unless entity @e[tag=c9_orb3] run summon item_display ~ ~3.8 ~ {Tags:["c9_m","c9_orb3"],Rotation:[240f,0f],Glowing:1b,glow_color_override:16733695,item:{id:"minecraft:amethyst_cluster"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0.85f,0f,0f],scale:[0.6f,0.6f,0.6f]}}
  5. /execute unless entity @e[tag=c9_cap] run summon item_display ~ ~2.0 ~ {Tags:["c9_m","c9_cap"],Glowing:1b,glow_color_override:11141375,item:{id:"minecraft:budding_amethyst"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,1.7f,0f],scale:[0.75f,0.75f,0.75f]}}
  6. /execute unless entity @e[tag=c9_prize] run summon item_display ~ ~2.0 ~ {Tags:["c9_m","c9_prize"],Glowing:1b,glow_color_override:16766720,item:{id:"minecraft:nether_star"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0.45f,0f],scale:[0f,0f,0f]}}
  7. /scoreboard players add @e[tag=c9_core] c9_timer 1
  8. /execute as @e[tag=c9_m] at @s run tp @s ~ ~ ~ ~10 ~
  9. /particle dust{color:[0.85,0.3,1.0],scale:1.4} ~ ~3.7 ~ 0.55 0.35 0.55 0 3 force
  10. /execute if score @e[tag=c9_core,limit=1] c9_timer matches 5 run data merge entity @e[tag=c9_cap,limit=1] {interpolation_duration:18,start_interpolation:0,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0.3f,0f],scale:[0.85f,0.85f,0.85f]}}
  11. /execute if score @e[tag=c9_core,limit=1] c9_timer matches 25 run data merge entity @e[tag=c9_cap,limit=1] {interpolation_duration:3,start_interpolation:0,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0.3f,0f],scale:[0f,0f,0f]}}
  12. /execute if score @e[tag=c9_core,limit=1] c9_timer matches 25 run particle totem_of_undying ~ ~2.4 ~ 0.3 0.3 0.3 0.35 35 force
  13. /execute if score @e[tag=c9_core,limit=1] c9_timer matches 25 run data merge entity @e[tag=c9_prize,limit=1] {interpolation_duration:7,start_interpolation:0,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0.55f,0f],scale:[1.25f,1.25f,1.25f]}}
  14. /execute if score @e[tag=c9_core,limit=1] c9_timer matches 75.. run kill @e[tag=c9_m]

How it works

Frames from the test run

Crystalline Capsule Prize Machine - frame 1Crystalline Capsule Prize Machine - frame 2Crystalline Capsule Prize Machine - frame 3

Recorded on our own test server: 48 frames at about 9.4 fps. Our image check saw: A copper structure containing an anvil pedestal with three glowing amethyst clusters orbiting above a rotating, glowing Nether Star prize surrounded by purple and green 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 your prize machine built and run the 10 setup commands in chat to create the scoreboards and copper cabinet.
  2. Place a line or stack of 14 repeating command blocks set to Always Active nearby.
  3. Paste each of the 14 loop commands into its own repeating command block.
  4. If your command blocks are not directly at the centre of the machine, wrap them with /execute positioned X Y Z run ... pointing to the sea lantern block.
  5. Watch the amethyst capsules orbit in the dome, drop onto the anvil every few seconds, and burst open into a glowing prize.

Use it with real players

To let real players operate the machine on demand instead of running on an automatic loop, remove the automatic timer increment in loop command 7 and instead run /scoreboard players add @e[tag=c9_core] c9_timer 1 only when a player presses a button or holds a token item near the machine, and grant the player the prize item at tick 25 with /give @p nether_star.

Remove it again 4 commands

  1. /kill @e[tag=c9_m]
  2. /fill ~-2 ~ ~-2 ~2 ~5 ~2 air
  3. /scoreboard objectives remove c9_timer
  4. /scoreboard objectives remove c9_tier

FAQ

How do I change the prize inside the capsule?

Edit loop command 6 and replace minecraft:nether_star in the item field with any item ID you like, such as minecraft:diamond_sword or minecraft:enchanted_golden_apple.

Why do the top crystals orbit in a circle without changing their coordinates?

Each crystal is an item_display with a horizontal translation offset of 0.85 blocks, so simply rotating the entity's yaw every tick swings the model around the centre point.

Commands used

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

Similar creations

Join 9Minecraft News & Guides