Build a quarantined plague simulation in Minecraft Java where a toxic purple and lime infection spreads rapidly through a crowd of glowing villagers.
Mob TransformationsHorrorDarkTechnologyPurpleGreenLearningCinematicMap MakingBlock displaysSummoned mobsBlock building (fill/setblock/clone)Sounds21+ commands
This command creation sets up a quarantined observation arena where a crowd of healthy villagers wanders around a pulsing biohazard spire. When Patient Zero enters the enclosure, a contagious purple and lime plague rapidly spreads from mob to mob based on proximity, flipping their glowing outlines from green to dark purple.
Each newly infected villager emits clouds of toxic spores and can immediately pass the affliction to nearby neighbors, creating a visual chain reaction across the entire arena.
/scoreboard objectives add c9_timer dummy/scoreboard objectives add c9_inf_time dummy/team add c9_healthy/team modify c9_healthy color green/team add c9_plague/team modify c9_plague color dark_purple/fill ~-10 ~ ~-10 ~10 ~2 ~10 minecraft:lime_stained_glass outline/fill ~-9 ~ ~-9 ~9 ~2 ~9 minecraft:air/summon minecraft:block_display ~-0.75 ~0.5 ~-0.75 {Tags:["c9_sim","c9_core"],Glowing:1b,glow_color_override:11141290,block_state:{Name:"minecraft:amethyst_cluster"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.5f,2.5f,1.5f],translation:[0f,0f,0f]}}/summon minecraft:husk ~ ~ ~ {Tags:["c9_sim","c9_infected"],CustomName:{"text":"Patient Zero","color":"dark_purple"},CustomNameVisible:1b,Glowing:1b,PersistenceRequired:1b,Silent:1b,Team:"c9_plague",armor_items:[{},{},{},{id:"minecraft:creeper_head",count:1}]}/scoreboard players add #tick c9_timer 1/execute if score #tick c9_timer matches 1..28 run summon minecraft:villager ~ ~ ~ {Tags:["c9_sim","c9_healthy","c9_new"],Glowing:1b,PersistenceRequired:1b,Silent:1b,Team:"c9_healthy"}/execute as @e[tag=c9_new] run spreadplayers ~ ~ 2 8 false @s/tag @e[tag=c9_new] remove c9_new/execute at @e[tag=c9_core] run particle minecraft:witch ~0.75 ~1.2 ~0.75 0.5 1.0 0.5 0.05 5/execute at @e[tag=c9_healthy] run particle minecraft:happy_villager ~ ~1.2 ~ 0.25 0.3 0.25 0 1/execute at @e[tag=c9_infected] run particle minecraft:dust{color:[0.6,0.1,0.9],scale:1.6} ~ ~1.1 ~ 0.4 0.5 0.4 0 5/execute at @e[tag=c9_infected] run particle minecraft:dust{color:[0.2,1.0,0.2],scale:1.4} ~ ~1.1 ~ 0.4 0.5 0.4 0 3/execute at @e[tag=c9_infected] as @e[tag=c9_healthy,distance=..3.4] at @s run particle minecraft:angry_villager ~ ~1.5 ~ 0.3 0.3 0.3 0 8/execute at @e[tag=c9_infected] as @e[tag=c9_healthy,distance=..3.4] at @s run playsound minecraft:entity.zombie.infect master @a ~ ~ ~ 0.5 1.4/execute at @e[tag=c9_infected] as @e[tag=c9_healthy,distance=..3.4] run team join c9_plague @s/execute at @e[tag=c9_infected] as @e[tag=c9_healthy,distance=..3.4] run tag @s add c9_infected/execute as @e[tag=c9_infected,tag=c9_healthy] run tag @s remove c9_healthy/execute as @e[type=minecraft:villager,tag=c9_infected] at @s run scoreboard players add @s c9_inf_time 1setup #4 Creates two teams with <code>green</code> and <code>dark_purple</code> team colors so glowing mobs show their health status clearly through walls.setup #9 Summons a scaled <code>block_display</code> showing an amethyst cluster in the middle of the quarantine chamber to act as the glowing biohazard spire.loop #2 Spawns 28 healthy villagers during the first 28 ticks of the simulation and tags them with <code>c9_new</code> so they are immediately scattered across the arena.loop #9 Checks around every <code>c9_infected</code> mob for healthy villagers within 3.4 blocks, playing an angry villager particle burst when transmission occurs.loop #11 Moves newly infected villagers onto the <code>c9_plague</code> team and swaps their tags from <code>c9_healthy</code> to <code>c9_infected</code> so they become carriers themselves.


Recorded on our own test server: 57 frames at about 9.5 fps. Our image check saw: An enclosure contains a central crystal and many villagers outlined in purple, surrounded by dense purple and green spore particles.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To include real players in the outbreak, join the healthy team with /team join c9_healthy @a, give yourself the healthy tag using /tag @a add c9_healthy, and turn on glowing with /effect give @a minecraft:glowing infinite 0 true so the proximity detector can infect you when you get too close to a carrier.
/kill @e[tag=c9_sim]/fill ~-10 ~ ~-10 ~10 ~2 ~10 minecraft:air/team remove c9_healthy/team remove c9_plague/scoreboard objectives remove c9_timer/scoreboard objectives remove c9_inf_timeRun /kill @e[type=minecraft:villager,tag=c9_sim] and then /scoreboard players set #tick c9_timer 0 to spawn a fresh batch of healthy villagers.
Yes. Increase or decrease the distance=..3.4 value in loop commands 9 through 12 to change the infection radius around carriers.
/execute/fill/particle/playsound/scoreboard/spreadplayers/summon/tag/team
▶Outbreak in the VillageMob TransformationsMedium24 cmds
▶Villager Zombie OutbreakMob TransformationsMedium24 cmds
▶Body-Stealing Arena StalkerMob TransformationsHard21 cmds
▶Outbreak of the Creeping BlightMob TransformationsHard24 cmds
▶Ravenous Treasure Chest Mimic AwakeningMob TransformationsHard24 cmds
▶Colossal Titan TransformationMob TransformationsHard19 cmds