Build an automated decoy sheep strapped with TNT that lures nearby animals in, ticks rapidly when approached, and blasts them back with a fiery shockwave.
Custom MobsFireNatureWhiteRedOrangePvPMini-gameAdventure MapBlock displaysSummoned mobsSoundsRotation math13-20 commands
At first glance, the sheep sitting in the middle of the grass looks completely harmless, apart from a faint red pulse and a tiny TNT bundle strapped to its back. When wandering pigs and cows step too close, the decoy primes itself with a rapid ticking sound and unleashes a bright shockwave that flings them backward across the field.
Using just a few command blocks and a scoreboard timer, this trap resets automatically after every blast, continuously drawing curious mobs back into its range for another launch.
/scoreboard objectives add c9_decoy dummy/summon sheep ~ ~ ~ {NoAI:1b,Invulnerable:1b,Silent:1b,Glowing:1b,Color:0b,CustomName:{"text":"Decoy Sheep","color":"red"},CustomNameVisible:1b,Tags:["c9_entity","c9_decoy"]}/summon block_display ~ ~0.95 ~ {block_state:{Name:"minecraft:tnt"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.25f,0f,-0.25f],scale:[0.5f,0.5f,0.5f]},Tags:["c9_entity","c9_hat"]}/summon pig ~-5 ~ ~-4 {Invulnerable:1b,Tags:["c9_entity","c9_victim"]}/summon cow ~5 ~ ~-4 {Invulnerable:1b,Tags:["c9_entity","c9_victim"]}/summon pig ~-4 ~ ~5 {Invulnerable:1b,Tags:["c9_entity","c9_victim"]}/summon cow ~5 ~ ~5 {Invulnerable:1b,Tags:["c9_entity","c9_victim"]}/scoreboard players set #fuse c9_decoy 0/scoreboard players add #fuse c9_decoy 1/execute at @e[tag=c9_decoy,limit=1] run particle dust{color:[1.0,0.2,0.1],scale:1.4} ~ ~0.2 ~ 1.6 0.05 1.6 0 10 force/execute if score #fuse c9_decoy matches 1..25 at @e[tag=c9_decoy,limit=1] as @e[tag=c9_victim,distance=2.8..18] at @s facing entity @e[tag=c9_decoy,limit=1] feet run tp @s ^ ^ ^0.15 ~ 0/execute if score #fuse c9_decoy matches 1..24 at @e[tag=c9_decoy,limit=1] unless entity @e[tag=c9_victim,distance=..3.3] run scoreboard players set #fuse c9_decoy 1/execute if score #fuse c9_decoy matches 25..44 at @e[tag=c9_decoy,limit=1] run particle lava ~ ~1.1 ~ 0.25 0.25 0.25 0 4 force/execute if score #fuse c9_decoy matches 25..44 at @e[tag=c9_decoy,limit=1] run playsound minecraft:block.note_block.hat master @a ~ ~ ~ 0.6 1.8/execute if score #fuse c9_decoy matches 45 at @e[tag=c9_decoy,limit=1] run particle explosion_emitter ~ ~0.6 ~ 0 0 0 0 1 force/execute if score #fuse c9_decoy matches 45 at @e[tag=c9_decoy,limit=1] run particle flame ~ ~0.5 ~ 1.8 0.4 1.8 0.25 90 force/execute if score #fuse c9_decoy matches 45 at @e[tag=c9_decoy,limit=1] run playsound minecraft:entity.generic.explode master @a ~ ~ ~ 1.0 1.1/execute if score #fuse c9_decoy matches 45..54 at @e[tag=c9_decoy,limit=1] as @e[tag=c9_victim,distance=..14] at @s facing entity @e[tag=c9_decoy,limit=1] feet run tp @s ^ ^0.24 ^-0.8 ~ 0/execute if score #fuse c9_decoy matches 45..54 as @e[tag=c9_victim] at @s run particle campfire_cosy_smoke ~ ~0.4 ~ 0.2 0.2 0.2 0.02 2 force/execute if score #fuse c9_decoy matches 85.. run scoreboard players set #fuse c9_decoy 0setup #3 Summons a half-scale TNT <code>block_display</code> right on top of the sheep's back so anyone looking at it can spot the trap.loop #3 While the trap is waiting in its lure phase, nearby animals tagged <code>c9_victim</code> turn toward the decoy sheep and walk forward using local coordinates (<code>^ ^ ^0.15</code>).loop #4 Keeps the timer paused at <code>1</code> until at least one victim steps within a 3.3-block trigger radius of the decoy.loop #5 During ticks 25 to 44, the TNT pack sparks with <code>lava</code> particles while the next command plays a rapid high-pitched ticking sound.loop #10 From tick 45 to 54, every victim within 14 blocks is faced toward the sheep and teleported backward and upward (<code>^ ^0.24 ^-0.8</code>) to simulate a strong blast wave.


Recorded on our own test server: 56 frames at about 9.3 fps. Our image check saw: A glowing white sheep with a small TNT block on its head and red particles around it explodes with smoke and flame particles when pigs and cows approach, knocking them backward.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To make this trap target real survival players or hostile monsters instead of only tagged test animals, remove the lure teleport command (loop command 3) and replace @e[tag=c9_victim,...] in the trigger and knockback commands with @e[type=!sheep,type=!block_display,tag=!c9_entity,...] or @a[gamemode=survival,...].
/kill @e[tag=c9_entity]/scoreboard objectives remove c9_decoyNo. The blast uses particle effects, explosion sound effects, and directional teleportation, so your terrain and buildings stay completely intact.
In the 10th loop command, adjust the negative Z value in ^ ^0.24 ^-0.8. A larger negative number like ^-1.2 pushes mobs further away each tick.
▶Detonating Pounce FoxesCustom MobsEasy24 cmds
▶Festive Gourd Boss ShowcaseCustom MobsHard26 cmds
▶Living Stone Statues and Rock-Spitting BeastsCustom MobsHard26 cmds
▶Lotus Blossom Zen Garden Koi SpiritCustom MobsHard24 cmds
▶Molten Waffle-Iron Lava GolemCustom MobsMedium23 cmds
▶Polar Aurora Ice-Sculpture BearCustom MobsHard24 cmds