Proximity Decoy Sheep Trap

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.

Java EditionMobs & PetsEasy20 commandsTested on a real 26.2 & 26.3 server
A decoy sheep with TNT on its back explodes, blasting nearby pigs and cows away. Download the GIF Video & GIF © www.9minecraft.net

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.

1. Setup - type these once 8 commands

  1. /scoreboard objectives add c9_decoy dummy
  2. /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"]}
  3. /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"]}
  4. /summon pig ~-5 ~ ~-4 {Invulnerable:1b,Tags:["c9_entity","c9_victim"]}
  5. /summon cow ~5 ~ ~-4 {Invulnerable:1b,Tags:["c9_entity","c9_victim"]}
  6. /summon pig ~-4 ~ ~5 {Invulnerable:1b,Tags:["c9_entity","c9_victim"]}
  7. /summon cow ~5 ~ ~5 {Invulnerable:1b,Tags:["c9_entity","c9_victim"]}
  8. /scoreboard players set #fuse c9_decoy 0

2. Loop - one repeating command block each (Always Active) 12 commands

  1. /scoreboard players add #fuse c9_decoy 1
  2. /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
  3. /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
  4. /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
  5. /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
  6. /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
  7. /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
  8. /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
  9. /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
  10. /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
  11. /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
  12. /execute if score #fuse c9_decoy matches 85.. run scoreboard players set #fuse c9_decoy 0

How it works

Frames from the test run

Proximity Decoy Sheep Trap - frame 1Proximity Decoy Sheep Trap - frame 2Proximity Decoy Sheep Trap - frame 3

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.

Build it in your world

  1. Stand on a flat open area where you want the decoy sheep to sit.
  2. Run each of the setup commands once in chat (or put them in impulse command blocks) to create the scoreboard, the decoy sheep, its TNT pack, and the test animals.
  3. Place 12 repeating command blocks in a row, set every one of them to Always Active, and paste one loop command into each block.
  4. Watch the pigs and cows wander toward the red sensor ring until the fuse starts ticking and launches them away.
  5. When you are done testing, run the remove commands to clean up all entities and the scoreboard objective.

Use it with real players

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,...].

Remove it again 2 commands

  1. /kill @e[tag=c9_entity]
  2. /scoreboard objectives remove c9_decoy

FAQ

Does the explosion break any blocks around the decoy sheep?

No. The blast uses particle effects, explosion sound effects, and directional teleportation, so your terrain and buildings stay completely intact.

How can I change how far the mobs get launched?

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.

Commands used

/execute/particle/playsound/scoreboard/summon/tp

Similar creations

Join 9Minecraft News & Guides