Summon a chaotic flock of glowing bomber bats that swarm across the arena, dropping live TNT from the sky and blasting craters into the terrain below.
Custom MobsFireDarkHorrorRedOrangeBlackBoss FightAdventure MapMini-gameItem displaysSummoned mobsSoundsRotation math21+ commands
Turn one of Minecraft's most harmless ambient mobs into an aerial bombardment hazard. This creation spawns a glowing flock of bomber bats that circle an eerie altar in the center of the arena, trailing fiery embers and clouds of smoke as they flutter overhead.
Every few seconds, bats from the swarm release armed TNT blocks with glowing red outlines. The explosives whistle down to the ground and blast craters into the grass while the invincible bats remain completely unharmed by their own destruction.
/gamerule command_block_output false/gamerule tnt_explodes true/scoreboard objectives add c9_timer dummy/team add c9_red/team modify c9_red color red/summon marker ~ ~ ~ {Tags:["c9_core"]}/summon item_display ~ ~1.5 ~ {Tags:["c9_core_vis"],Glowing:1b,glow_color_override:16724736,item:{id:"minecraft:tnt",count:1},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[1.2f,1.2f,1.2f]}}/summon bat ~4 ~6 ~4 {Tags:["c9_bat"],Glowing:1b,Invulnerable:1b,CustomName:'{"text":"Bomber Bat","color":"red"}'}/summon bat ~-4 ~7 ~3 {Tags:["c9_bat"],Glowing:1b,Invulnerable:1b,CustomName:'{"text":"Bomber Bat","color":"red"}'}/summon bat ~3 ~5 ~-4 {Tags:["c9_bat"],Glowing:1b,Invulnerable:1b,CustomName:'{"text":"Bomber Bat","color":"red"}'}/scoreboard players add @e[tag=c9_core] c9_timer 1/execute as @e[tag=c9_bat] at @s run scoreboard players add @s c9_timer 1/execute at @e[tag=c9_core_vis] run particle lava ~ ~ ~ 0.4 0.4 0.4 0 1 force/execute as @e[tag=c9_core_vis] at @s run tp @s ~ ~ ~ ~6 ~/execute as @e[tag=c9_core,scores={c9_timer=15}] unless entity @e[tag=c9_bat,limit=14] run summon bat ~ ~6 ~ {Tags:["c9_bat"],Glowing:1b,Invulnerable:1b,CustomName:'{"text":"Bomber Bat","color":"red"}'}/team join c9_red @e[tag=c9_bat,team=!c9_red]/execute at @e[tag=c9_bat] run particle flame ~ ~0.2 ~ 0.15 0.15 0.15 0.02 2 force/execute at @e[tag=c9_bat] run particle large_smoke ~ ~0.2 ~ 0.1 0.1 0.1 0.01 1 force/execute as @e[tag=c9_bat] at @s if block ~ ~-9 ~ air run tp @s ~ ~-0.3 ~/execute as @e[tag=c9_bat] at @s unless block ~ ~-3 ~ air run tp @s ~ ~0.35 ~/execute as @e[tag=c9_bat,distance=12..] at @s facing ~ ~6 ~ run tp @s ^ ^ ^0.45/execute as @e[tag=c9_core,scores={c9_timer=30..}] at @e[tag=c9_bat,limit=2,sort=random] run summon tnt ~ ~-0.4 ~ {Tags:["c9_tnt"],fuse:45,Glowing:1b,Motion:[0.0,-0.2,0.0]}/execute as @e[tag=c9_core,scores={c9_timer=30..}] at @e[tag=c9_tnt] run playsound entity.tnt.primed master @a ~ ~ ~ 0.8 1.4/scoreboard players set @e[tag=c9_core,scores={c9_timer=30..}] c9_timer 0loop #5 Checks if there are fewer than 14 bats in the arena every 15 ticks and spawns a new invulnerable, glowing Bomber Bat above the center if needed.loop #9 Keeps the bats from flying too high into the sky by gently nudging them downward whenever there are 9 blocks of open air beneath them.loop #11 Acts as an invisible leash: any bat that flies more than 12 blocks away from the stage center is turned toward the middle and pushed back in.loop #12 Every 30 ticks (1.5 seconds), picks two random bats from the swarm and drops armed TNT underneath them with a 45-tick fuse.


Recorded on our own test server: 59 frames at about 9.7 fps. Our image check saw: Red glowing bats fly overhead trailing embers and dropping outlined TNT blocks that explode into lava-filled craters around a central TNT altar.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To make the bat swarm follow a player instead of hovering around the center altar, replace ~ ~6 ~ in loop command 11 with the player's coordinates by wrapping it in /execute at @p run .... You can also give players a special control item so the bats only drop TNT when a player holds a Blaze Rod by adding if entity @p[nbt={SelectedItem:{id:"minecraft:blaze_rod"}}] to the TNT summoning command.
/kill @e[tag=c9_bat]/kill @e[tag=c9_tnt]/kill @e[tag=c9_core_vis]/kill @e[tag=c9_core]/kill @e[type=item]/team remove c9_red/scoreboard objectives remove c9_timerAll bats in the swarm are summoned with the Invulnerable:1b NBT tag, so blast damage and falling debris cannot hurt them while they fly around.
Change the TNT summon command in loop step 12 to summon a creeper with {Fuse:0,ignited:1b} and set /gamerule mob_griefing false, or summon the TNT over obsidian or water.
/execute/gamerule/particle/playsound/scoreboard/summon/team/tp
▶Apocalypse Riders vs. Sky Raiders Automated BattleCustom MobsHard24 cmds
▶Swarm of Explosive BatsCustom MobsEasy21 cmds
▶Phantom Shadow Stalker BossCustom MobsMedium22 cmds
▶Floating Candelabra Poltergeist ButlerCustom MobsMedium24 cmds
▶Marimba Xylophone Skeleton VirtuosoCustom MobsHard24 cmds
▶Arrow Storm Boss AttackCustom MobsMedium18 cmds