traps in Minecraft

Verified on server

Four survival and server traps: a pit that closes over the victim, TNT under a block, a trapped chest, and arrows shot from a wall. Layered schematics and commands.

  • 4 traps tested on a victim
  • Verified in 26.3
My Game select version

Save your preferences in this browser and apply them to supported tools. Settings in a shared link take priority. Wiki version labels are not affected.

On this page 12 sections

At a glance

String, chest, or block provides a signal — piston, TNT, or dispenser completes the rest

Traps are built from a sensor and what hits it. The sensor — String, pressure plate or trapped chests.: they emit signals when a victim is nearby. It attacks TNT, Piston, floor cleaner, or dispenser with arrows. During the check, TNT and arrows killed a victim with 20 health, and a pit trapped them under the floor.

Which one to choose

TrapTriggersUnder review
TNT trap with stretchtouched the stringfell 3 blocks, the ceiling above closed over him
TNT under a blockstands on a slabdied after 92 ticks (4.6 seconds)
Trapped ChestOpened a chestA player without armor dies after 93 ticks (4.65 seconds)
Arrows from a wallstands on a slabdied after 87 ticks (4.35 seconds)

TNT traps without a victim and activates itself — for entering the base. Single-use TNT: explosion destroys the floor. Arrows hit while the victim is on the platform and wait for the next one.

TNT trap with stretch

Cut along a corridor: string, pit, and piston under the wall
Above the floor: hooks, string, torches, and dust
Floor: piston and dust attached to it
  • A corridor one block wide hits a wall. In front of the wall is a string between two with tripwire hooks, beneath the string — floor block at sticky piston, hidden beneath the wall.
  • Pull string — the tripwire hook strongly powers the block it is attached to, and the torch on the opposite block goes out. The piston pulls the floor under the wall: after 3 ticks (0.15 s) the pit opens, after 9 ticks (0.45 s) the victim is already at the bottom.
  • When the tripwire releases, the torch turns back on and the floor closes above the player, 16 ticks (0.8 s) after the fall. The pit is 3 blocks deep and sealed from above, preventing escape.
  • The detector is a string, not a slab: the string hangs in the air on its own, while a slab would break if placed on a block that's not solid

TNT under a block

Cut: slab, block beneath it, and TNT
Top TNT layer
  • How in a desert temple: Stone pressing table on the block, below it — 9 checkers TNT A 3 × 3 square
  • The slab provides substantial damage to the block below it, which then ignites TNT. The first explosion occurs after 81 ticks (4.05 seconds): TNT fuse.
  • One checker piece is not enough. An explosion injures only if it 'sees' the target and the floor blocks the view: after the first explosion, the zombie has 19.1 health out of 20. The explosion breaks the floor and ignites the adjacent torches with short wicks — the second wave kills the zombie 92 ticks (4.6 seconds) after it stands on the block.
  • One-time trap. How explosions break blocks and what drops — in Guide on explosions.

Trapped Chest

Cut: chest, block beneath it, and TNT
  • Trapped Chest, while held open, strongly powers the block beneath it. Below this block is a TNT charge; the second is beneath the floor where the player opening it stands.
  • Opened — first explosion after 80 ticks (4 seconds): the floor blocked the view, player had 19 health out of 20. Second fuse, without floor above it, killed the unarmed player after 93 ticks (4.65 seconds) once the chest was opened.
  • Above the chest must be empty: a chest under a solid block cannot be opened.
  • Outside, a trapped chest differs from a regular chest only by its reddish latch — place something valuable inside.

Arrows from a wall

Head layer: Dispenser niche
Foot layer: Plank and Clock behind the wall
Floor: block under the slab and a dust step
Under the floor: dust from the slab
  • Dispenser with arrows — in a niche on the side wall at head height, opposite side is a pressure plate.
  • While someone is standing on the dispenser, it repeatedly fires. comparator after subtracting through two repeaters, it turns itself off — this Clock. When it falls off the platform — shooting stops.
  • An arrow strikes across a corridor and pushes the victim against another wall — the victim remains on the platform. The zombie took 7 arrows out of 8 and died after 87 ticks (4.35 seconds).
  • Niche — at head height, not at foot level: each hit throws a target, and an arrow at foot level passes beneath it. From the corridor's side, the arrow would knock a target off a block.
  • Two dispensers won't help at once: after an attack, the game does not count damage over 10 ticks (0.5 seconds) higher than the previous. 64 arrows — for 64 shots.

What was checked

  • Each trap was placed on the server by 26.3 commands from this page.
  • A zombie zombie: 20 health, like a player. Its speed is removed — it stands where placed, but falls and bounces off hits. A chest was opened by a player without armor in survival mode.
  • We sent 3 test players into the pit one at a time. Each fell through, and the floor closed automatically after every fall.
  • While no players are on the platform, the dispenser has not fired at all. The timer starts when the victim touches the string, stands on the platform, or opens the chest.

What is needed: pit with stretch

The ground, stone, and walls around it — any that the schematic does not draw — can be chosen freely.

Place command: pit with stretch

For creative mode or worlds with cheats: stand on flat ground and enter commands in sequence — the trap will spawn several blocks away from you. These are the same blocks and commands as the test server.

Commands to run in order: 20
  1. /fill ~-4 ~-6 ~ ~5 ~ ~10 minecraft:stone
  2. /fill ~-4 ~1 ~ ~5 ~4 ~10 minecraft:air
  3. /setblock ~-2 ~1 ~6 minecraft:stone_bricks
  4. /fill ~-1 ~1 ~2 ~-1 ~2 ~5 minecraft:stone_bricks
  5. /fill ~-1 ~1 ~7 ~1 ~2 ~7 minecraft:stone_bricks
  6. /setblock ~-1 ~2 ~6 minecraft:stone_bricks
  7. /fill ~1 ~1 ~2 ~1 ~2 ~5 minecraft:stone_bricks
  8. /setblock ~1 ~2 ~6 minecraft:stone_bricks
  9. /setblock ~2 ~1 ~6 minecraft:stone_bricks
  10. /fill ~ ~-3 ~6 ~ ~ ~6 minecraft:air
  11. /setblock ~ ~-4 ~6 minecraft:stone
  12. /setblock ~ ~ ~7 minecraft:stone
  13. /setblock ~ ~ ~8 minecraft:sticky_piston[facing=north]
  14. /setblock ~1 ~ ~8 minecraft:redstone_wire
  15. /fill ~2 ~1 ~8 ~3 ~1 ~8 minecraft:redstone_wire
  16. /setblock ~3 ~1 ~7 minecraft:redstone_wire
  17. /setblock ~-1 ~1 ~6 minecraft:tripwire_hook[facing=east]
  18. /setblock ~1 ~1 ~6 minecraft:tripwire_hook[facing=west]
  19. /setblock ~ ~1 ~6 minecraft:tripwire
  20. /setblock ~3 ~1 ~6 minecraft:redstone_wall_torch[facing=east]

Download blueprint

The same block set file — place entirely using the Litematica mod, the WorldEdit plugin, or a structure block.

What is needed: TNT under a block

The ground, stone, and walls around it — any that the schematic does not draw — can be chosen freely.

Place command: TNT under a block

For creative mode or worlds with cheats: stand on flat ground and enter commands in sequence — the trap will spawn several blocks away from you. These are the same blocks and commands as the test server.

Commands to run in order: 5
  1. /fill ~-4 ~-4 ~-1 ~4 ~ ~7 minecraft:sandstone
  2. /fill ~-4 ~1 ~-1 ~4 ~4 ~7 minecraft:air
  3. /fill ~-1 ~-1 ~2 ~1 ~-1 ~4 minecraft:tnt
  4. /setblock ~ ~ ~3 minecraft:sandstone
  5. /setblock ~ ~1 ~3 minecraft:stone_pressure_plate

Download blueprint

The same block set file — place entirely using the Litematica mod, the WorldEdit plugin, or a structure block.

What is needed: trapped chest

The ground, stone, and walls around it — any that the schematic does not draw — can be chosen freely.

Place command: trapped chest

For creative mode or worlds with cheats: stand on flat ground and enter commands in sequence — the trap will spawn several blocks away from you. These are the same blocks and commands as the test server.

Commands to run in order: 6
  1. /fill ~-3 ~-4 ~ ~3 ~ ~7 minecraft:stone
  2. /fill ~-3 ~1 ~ ~3 ~4 ~7 minecraft:air
  3. /fill ~-1 ~1 ~5 ~1 ~2 ~5 minecraft:stone_bricks
  4. /setblock ~ ~1 ~4 minecraft:trapped_chest[facing=north]
  5. /setblock ~ ~ ~4 minecraft:stone
  6. /fill ~ ~-1 ~3 ~ ~-1 ~4 minecraft:tnt

Download blueprint

The same block set file — place entirely using the Litematica mod, the WorldEdit plugin, or a structure block.

What is needed: arrows from wall

The ground, stone, and walls around it — any that the schematic does not draw — can be chosen freely.

Place command: arrows from wall

For creative mode or worlds with cheats: stand on flat ground and enter commands in sequence — the trap will spawn several blocks away from you. These are the same blocks and commands as the test server.

Commands to run in order: 25
  1. /fill ~-4 ~-3 ~ ~6 ~ ~10 minecraft:stone
  2. /fill ~-4 ~1 ~ ~6 ~4 ~10 minecraft:air
  3. /fill ~-2 ~1 ~2 ~-2 ~2 ~8 minecraft:stone_bricks
  4. /fill ~ ~1 ~2 ~ ~1 ~8 minecraft:stone_bricks
  5. /fill ~ ~2 ~2 ~ ~2 ~4 minecraft:stone_bricks
  6. /fill ~ ~2 ~6 ~3 ~2 ~7 minecraft:stone_bricks
  7. /setblock ~ ~2 ~8 minecraft:stone_bricks
  8. /fill ~1 ~1 ~4 ~2 ~2 ~4 minecraft:stone_bricks
  9. /fill ~2 ~2 ~5 ~3 ~2 ~5 minecraft:stone_bricks
  10. /setblock ~3 ~2 ~4 minecraft:stone_bricks
  11. /setblock ~ ~2 ~5 minecraft:air
  12. /setblock ~3 ~ ~4 minecraft:air
  13. /setblock ~4 ~1 ~4 minecraft:air
  14. /setblock ~1 ~2 ~5 minecraft:dispenser[facing=west]{Items:[{Slot:0b,id:"minecraft:arrow",count:64}]}
  15. /setblock ~-1 ~1 ~5 minecraft:stone_pressure_plate
  16. /setblock ~-1 ~ ~5 minecraft:stone
  17. /setblock ~1 ~1 ~5 minecraft:stone
  18. /fill ~-1 ~-1 ~4 ~3 ~-1 ~4 minecraft:redstone_wire
  19. /setblock ~-1 ~-1 ~5 minecraft:redstone_wire
  20. /fill ~1 ~1 ~7 ~2 ~1 ~7 minecraft:redstone_wire
  21. /fill ~3 ~1 ~5 ~4 ~1 ~5 minecraft:redstone_wire
  22. /setblock ~4 ~ ~4 minecraft:redstone_wire
  23. /setblock ~2 ~1 ~5 minecraft:comparator[facing=east,mode=subtract]
  24. /setblock ~1 ~1 ~6 minecraft:repeater[facing=north,delay=1]
  25. /setblock ~2 ~1 ~6 minecraft:repeater[facing=south,delay=1]

Download blueprint

The same block set file — place entirely using the Litematica mod, the WorldEdit plugin, or a structure block.

If it does not work

  • TNT trap is open without a victim. Torch is not on the block attached to the tripwire hook or dust is not facing the piston.
  • The string does not work. Tripwire hooks don't face each other or the string is broken — reattach the string.
  • Chest does not open There is a solid block above it.
  • TNT does not explode. The world has the 'TNT Activation and Explosion' rule disabled — see more on the page TNT.
  • Arrows fly past. Dispenser must be at player eye level or not directly opposite a block

Frequently asked questions

How to build a trap in Minecraft?

The easiest solution is TNT placed under a pressure plate: the plate on the floor, beneath it a block and nine TNT blocks. After activation, the explosion occurs after 81 ticks (4.05 seconds). Without TNT, a pit under a stretch: a string between two tripwire hooks, beneath it a block on a sticky piston.

Which trap kills a player?

During testing, both TNT and arrow traps were triggered. A player with no armor, who opened a chest trap, died after 93 ticks (4.65 seconds). The zombie on the TNT block died after 92 ticks (4.6 seconds), and the one under the arrows after 87 ticks (4.35 seconds). The pit does not kill but traps the player.

Why doesn't one TNT under the floor kill?

An explosion injures only if it 'sees' the target and the floor blocks the view. During testing, the first explosion under the block left the zombie with 19.1 health out of 20. The second wave kills it: the first explosion breaks the floor and ignites adjacent torches.

More in the wiki

Verified on Minecraft 26.3 server: traps were placed via commands from this page and tested with zombies or players without armor, counting game ticks.