Watch a glowing ring of friendly Allays orbit an amethyst altar before lightning strikes and mutates them into glowing red Vexes in vanilla Minecraft.
Mob TransformationsLightningDarkMysticRedCyanPurpleCinematicBoss FightAdventure MapItem displaysArmor standsSummoned mobsLightning boltsRotation math21+ commands
Few mobs in Minecraft are as friendly as the Allay, and few are as menacing as the Vex. Because they share a very similar winged silhouette, players often wonder if Vexes are just corrupted Allays. This command creation brings that exact transformation to life on stage.
A chorus of eight glowing aqua Allays dances peacefully in a tight circle around a floating amethyst crystal. Suddenly, bolts of lightning crash down on the ring one by one, erupting in soul fire and mutating each Allay into an angry red-glowing Vex charging with an iron sword.
/scoreboard objectives add c9_timer dummy/team add c9_pure/team modify c9_pure color aqua/team add c9_corrupt/team modify c9_corrupt color red/summon armor_stand ~ ~1.8 ~ {Tags:["c9_hub","c9_ent"],Invisible:1b,NoGravity:1b,Marker:1b}/summon item_display ~ ~2.2 ~ {Tags:["c9_crystal","c9_ent"],Glowing:1b,glow_color_override:65535,item:{id:"minecraft:amethyst_cluster",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]}}/scoreboard players set #tick c9_timer 0/scoreboard players add #tick c9_timer 1/execute as @e[tag=c9_hub] at @s run tp @s ~ ~ ~ ~45 ~/execute if score #tick c9_timer matches 1..8 at @e[tag=c9_hub] rotated ~ 0 run summon allay ^ ^ ^3.8 {Tags:["c9_mob","c9_pure","c9_ent"],Glowing:1b,NoAI:1b,Silent:1b,Invulnerable:1b,equipment:{mainhand:{id:"minecraft:amethyst_shard",count:1}}}/execute if score #tick c9_timer matches 1..8 run team join c9_pure @e[tag=c9_pure]/execute as @e[tag=c9_crystal] at @s run tp @s ~ ~ ~ ~6 ~/execute as @e[tag=c9_mob] at @s facing entity @e[tag=c9_hub,limit=1] feet run tp @s ^0.24 ^ ^0.015 facing entity @e[tag=c9_hub,limit=1] feet/execute at @e[tag=c9_pure] run particle end_rod ~ ~0.4 ~ 0.15 0.15 0.15 0.01 2/execute at @e[tag=c9_pure] run particle dust{color:[0.1,0.9,1.0],scale:1.4} ~ ~0.4 ~ 0.2 0.2 0.2 0 2/execute if score #tick c9_timer matches 35..80 at @e[tag=c9_pure,limit=1,sort=random] run summon lightning_bolt ~ ~ ~/execute if score #tick c9_timer matches 35..80 at @e[tag=c9_pure] if entity @e[type=lightning_bolt,distance=..2.5] run summon vex ~ ~ ~ {Tags:["c9_mob","c9_corrupt","c9_ent"],Glowing:1b,NoAI:1b,Invulnerable:1b,Charging:1b,equipment:{mainhand:{id:"minecraft:iron_sword",count:1}}}/execute if score #tick c9_timer matches 35..80 at @e[tag=c9_pure] if entity @e[type=lightning_bolt,distance=..2.5] run particle soul_fire_flame ~ ~0.5 ~ 0.4 0.5 0.4 0.08 35/execute if score #tick c9_timer matches 35..80 as @e[tag=c9_pure] at @s if entity @e[type=lightning_bolt,distance=..2.5] run tp @s ~ -100 ~/execute at @e[tag=c9_corrupt] run team join c9_corrupt @e[tag=c9_corrupt,distance=..1]/execute at @e[tag=c9_corrupt] run particle dust{color:[1.0,0.1,0.1],scale:1.6} ~ ~0.4 ~ 0.25 0.25 0.25 0 4loop #3 During the first 8 ticks, the center hub rotates 45 degrees per tick and summons an Allay 3.8 blocks in front of where it faces using local coordinates (<code>^ ^ ^3.8</code>), spacing 8 Allays evenly around the circle.loop #6 Every mob tagged <code>c9_mob</code> faces the center hub and steps sideways by <code>^0.24</code> and slightly inward by <code>^0.015</code> each tick, producing a clean circular orbit at constant radius.loop #9 Between ticks 35 and 80, lightning bolts strike random remaining Allays in the ring.loop #10 Any Allay within 2.5 blocks of a lightning bolt spawns an angry charging Vex in its exact spot, bursts with soul fire particles, and is teleported into the void so the Vex takes its place in the orbit.


Recorded on our own test server: 52 frames at about 8.6 fps. Our image check saw: Eight glowing red Vexes with dark red particles circle around a rotating glowing cyan-outlined amethyst cluster at night.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To trigger the corruption around yourself instead of the crystal altar, replace @e[tag=c9_hub,limit=1] in the orbit command with @p, and fire the lightning commands only while you hold a channeling trident using /execute as @a[nbt={SelectedItem:{id:"minecraft:trident"}}] at @e[tag=c9_pure,distance=..8,limit=1,sort=random] run summon lightning_bolt.
/kill @e[tag=c9_ent]/scoreboard objectives remove c9_timer/team remove c9_pure/team remove c9_corruptThey are summoned with NoAI:1b so their vanilla pathfinding is disabled, and a repeating teleport command moves them sideways relative to the center hub every tick.
Teleporting them into the void removes them instantly without playing the red death animation or dropping their held amethyst shard onto the stage.
▶Lightning-Struck Allay CorruptionMob TransformationsEasy19 cmds
▶Matryoshka Elemental Golem UnfoldingMob TransformationsHard24 cmds
▶Body-Stealing Arena StalkerMob TransformationsHard21 cmds
▶Outbreak of the Creeping BlightMob TransformationsHard24 cmds
▶Towering Behemoth Awakening SequenceMob TransformationsMedium21 cmds
▶Subterranean Geode Pangolin RolloutMob TransformationsHard23 cmds