Build a Swarm-Spawning Bee Bomb in Minecraft Java Edition using command blocks that turns scattered floor items into an angry swarm of glowing bees.
TrapsNatureGoldOrangeYellowPvPMini-gameAdventure MapBlock displaysArmor standsSummoned mobsSoundsRotation math21+ commands
The Swarm-Spawning Bee Bomb is a custom explosive device made with vanilla commands. When placed on the ground, a glowing golden core spins faster and faster while dripping honey particles, before detonating in a bright flash of yellow and orange light.
Any dropped items caught within the blast radius are instantly transformed into an angry swarm of glowing bees that immediately attack nearby monsters, turning stray loot and clutter into a buzzing defense system.
/scoreboard objectives add c9_timer dummy/team add c9_gold/team modify c9_gold color gold/summon marker ~ ~ ~ {Tags:["c9_center","c9_entity"]}/summon armor_stand ~-5 ~ ~ {Tags:["c9_actor","c9_entity"],ShowArms:1b,Rotation:[-90f,0f],ArmorItems:[{id:"minecraft:golden_boots",count:1},{id:"minecraft:golden_leggings",count:1},{id:"minecraft:golden_chestplate",count:1},{id:"minecraft:carved_pumpkin",count:1}],HandItems:[{id:"minecraft:honeycomb",count:1},{}]}/scoreboard players set @e[tag=c9_center] c9_timer 0/execute as @e[tag=c9_center] run scoreboard players add @s c9_timer 1/execute as @e[tag=c9_center,scores={c9_timer=120..}] run scoreboard players set @s c9_timer 1/execute if score @e[tag=c9_center,limit=1] c9_timer matches 1 run kill @e[tag=c9_temp]/execute if score @e[tag=c9_center,limit=1] c9_timer matches 5 at @e[tag=c9_center] run summon block_display ~ ~0.4 ~ {Tags:["c9_bomb","c9_temp","c9_entity"],Glowing:1b,block_state:{Name:"minecraft:honeycomb_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.35f,-0.35f,-0.35f],scale:[0.7f,0.7f,0.7f]}}/execute if score @e[tag=c9_center,limit=1] c9_timer matches 5 at @e[tag=c9_center] run summon husk ~3 ~ ~2.5 {Tags:["c9_target","c9_temp","c9_entity"],CustomName:'{"text":"Swarm Target","color":"red"}',CustomNameVisible:1b,Health:40f,attributes:[{id:"minecraft:max_health",base:40d},{id:"minecraft:movement_speed",base:0.15d}]}/execute if score @e[tag=c9_center,limit=1] c9_timer matches 6..26 at @e[tag=c9_center] run summon item ~ ~1.8 ~ {Tags:["c9_item","c9_temp","c9_entity"],Glowing:1b,PickupDelay:32767,Motion:[0.0,0.25,0.0],Item:{id:"minecraft:dandelion",count:1}}/execute if score @e[tag=c9_center,limit=1] c9_timer matches 6..26 as @e[tag=c9_item] at @s run spreadplayers ~ ~ 1 4 false @s/execute as @e[tag=c9_bomb] at @s run tp @s ~ ~ ~ ~18 ~/execute as @e[tag=c9_bomb] at @s run particle dust{color:[1.0,0.8,0.0],scale:1.5} ~ ~0.2 ~ 0.3 0.3 0.3 0 4/execute if score @e[tag=c9_center,limit=1] c9_timer matches 55 at @e[tag=c9_bomb] run particle explosion_emitter ~ ~ ~ 0 0 0 0 1/execute if score @e[tag=c9_center,limit=1] c9_timer matches 55 at @e[tag=c9_bomb] run playsound entity.generic.explode master @a ~ ~ ~ 1 1.2/execute if score @e[tag=c9_center,limit=1] c9_timer matches 55 at @e[tag=c9_item] run summon bee ~ ~0.5 ~ {Tags:["c9_bee","c9_temp","c9_entity"],Glowing:1b,AngerTime:600}/execute if score @e[tag=c9_center,limit=1] c9_timer matches 55 run team join c9_gold @e[tag=c9_bee]/execute if score @e[tag=c9_center,limit=1] c9_timer matches 55 run kill @e[tag=c9_bomb]/execute if score @e[tag=c9_center,limit=1] c9_timer matches 55 run kill @e[tag=c9_item]/execute as @e[tag=c9_bee] at @s run damage @s 0 generic by @e[tag=c9_target,limit=1]loop #4 Spawns the Bee Bomb at tick 5 using a glowing <code>block_display</code> showing a honeycomb block, centered with a transformation offset.loop #6 Summons glowing dandelion items for 20 ticks and scatters them across the grass with <code>/spreadplayers</code> so the bomb has floor items to transform.loop #12 At tick 55, the bomb detonates and executes at every scattered item to summon an angry, glowing bee in its exact position.loop #16 Deals 0 damage to the bees attributed to the target Husk, forcing the entire swarm to lock onto the monster and attack together.


Recorded on our own test server: 60 frames at about 9.9 fps. Our image check saw: A glowing golden block explodes in white smoke, turning dropped iron nuggets into a swarm of glowing orange bees that attack a husk.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To let real players throw Bee Bombs, remove the demo reset commands and summon the c9_bomb display entity whenever a player drops a named Honeycomb item (/execute as @e[type=item,nbt={Item:{id:"minecraft:honeycomb"}}] at @s run ...). Then run a scoreboard timer directly on the bomb entity itself so it detonates 50 ticks after hitting the ground and converts any nearby @e[type=item,distance=..6] into angry bees.
/kill @e[tag=c9_entity]/scoreboard objectives remove c9_timer/team remove c9_goldThe final loop command uses the /damage command with 0 damage attributed to the Husk. Even though no health is lost, Minecraft's AI registers the Husk as the attacker and makes every bee swarm it.
Yes! In the demo we tag the dandelion items with c9_item for safety, but if you change the selector to @e[type=item,distance=..6], the explosion will turn cobblestone, dirt, or mob drops into bees.
/damage/execute/kill/particle/playsound/scoreboard/spreadplayers/summon/team/tp
▶Loom-Shuttle Tartan-Plaid Laser WeaverTrapsExpert19 cmds
▶Looming Shadow-Stitcher Puppeteer NeedlesTrapsExpert23 cmds
▶Neon Pinball Bumper Forcefield MatrixTrapsHard23 cmds
▶Pendulum Guillotine Scythe Of FateTrapsMedium24 cmds
▶Rubik's-Cube Spatial Scrambler GrimoireTrapsExpert24 cmds
▶Abyssal Kraken Tentacle Grimoire SummonTrapsExpert24 cmds