Sinking Quicksand Trap

Build a seamless quicksand trap in Minecraft using block display entities and commands that slowly pulls unsuspecting mobs under the desert floor.

Java EditionHolograms & Display EntitiesEasy24 commandsTested on a real 26.2 & 26.3 server
A glowing husk sinks into a large quicksand pit made from a stretched sand block display. Download the GIF Video & GIF © www.9minecraft.net

Animated BlocksNatureYellowAdventure MapMap MakingPvPBlock displaysSummoned mobsBlock building (fill/setblock/clone)Rotation math21+ commands

Traditional quicksand traps in Minecraft rely on cobwebs, which always look obvious to anyone walking by. By using block display entities stretched over a hidden pit, you can create a patch of sand that looks completely normal from the outside.

In this setup, desert husks spawn at the edge of an oasis and wander across the false floor. As soon as they step onto the display blocks, they are gripped by an invisible force, slowly sinking beneath the swirling grains until they suffocate underground.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_t dummy
  2. /scoreboard objectives add c9_sink dummy
  3. /fill ~-6 ~-1 ~-6 ~6 ~-1 ~6 sandstone
  4. /fill ~-5 ~-1 ~-5 ~5 ~-1 ~5 sand
  5. /fill ~-4 ~-3 ~-4 ~4 ~-3 ~4 sandstone
  6. /fill ~-3 ~-2 ~-3 ~3 ~-1 ~3 air
  7. /setblock ~-4 ~ ~-4 dead_bush
  8. /setblock ~4 ~ ~-3 cactus
  9. /summon block_display ~-3 ~-1.01 ~-3 {Tags:["c9_qs","c9_disp"],block_state:{Name:"minecraft:sand"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[7f,1.02f,7f],translation:[0f,0f,0f]}}
  10. /summon marker ~ ~ ~ {Tags:["c9_ctrl","c9_qs"]}

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

  1. /scoreboard players add @e[tag=c9_ctrl] c9_t 1
  2. /execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 140.. run scoreboard players set @e[tag=c9_ctrl] c9_t 0
  3. /execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 1 run summon husk ~-4.5 ~ ~ {Tags:["c9_victim","c9_qs"],CustomName:{"text":"Wanderer","color":"gold"},Glowing:1b}
  4. /execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 70 run summon husk ~ ~ ~-4.5 {Tags:["c9_victim","c9_qs"],CustomName:{"text":"Explorer","color":"yellow"},Glowing:1b}
  5. /execute as @e[tag=c9_victim] at @s unless score @s c9_sink matches 1.. run tp @s ~ ~ ~ facing ~ ~ ~
  6. /execute as @e[tag=c9_victim] at @s unless score @s c9_sink matches 1.. run tp @s ^ ^ ^0.09
  7. /execute positioned ~-2.6 ~-3 ~-2.6 as @e[tag=c9_victim,dx=4.2,dy=4,dz=4.2] unless score @s c9_sink matches 1.. run scoreboard players set @s c9_sink 1
  8. /execute as @e[tag=c9_victim,scores={c9_sink=1..130}] run scoreboard players add @s c9_sink 1
  9. /execute as @e[tag=c9_victim,scores={c9_sink=1..130}] run data merge entity @s {NoAI:1b,Silent:1b}
  10. /execute as @e[tag=c9_victim,scores={c9_sink=1..120}] at @s run tp @s ~ ~-0.018 ~ ~4 ~
  11. /execute at @e[tag=c9_victim,scores={c9_sink=1..95}] run particle block{block_state:{Name:"minecraft:sand"}} ~ ~0.2 ~ 0.35 0.05 0.35 0.1 6
  12. /execute at @e[tag=c9_victim,scores={c9_sink=1..95}] run particle dust{color:[0.85,0.78,0.55],scale:1.4} ~ ~0.1 ~ 0.3 0.05 0.3 0.01 2
  13. /execute as @e[tag=c9_victim,scores={c9_sink=85..125}] at @s run damage @s 2 minecraft:in_wall
  14. /kill @e[tag=c9_victim,scores={c9_sink=126..}]

How it works

Frames from the test run

Sinking Quicksand Trap - frame 1Sinking Quicksand Trap - frame 2Sinking Quicksand Trap - frame 3

Recorded on our own test server: 57 frames at about 9.5 fps. Our image check saw: A husk with a glowing outline walks onto a large stretched sand block display entity and sinks down into it before taking damage.

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. Run the 10 setup commands in chat while standing at the centre of a flat area to build the desert pit and the false sand floor.
  2. Place a line of 14 repeating command blocks nearby, set them all to 'Always Active', and paste one loop command into each block.
  3. Watch as husks spawn on the outer sand ring, march toward the middle, and begin sinking into the quicksand display.
  4. Notice how sand dust and block particles churn around the victims while they spin downward and take suffocation damage.
  5. When you are finished testing, run the remove commands to clear the scoreboard objectives, display entities, and desert terrain.

Use it with real players

To make this trap catch real players and survival mobs instead of just the demo husks, delete loop commands 2 through 5 (which spawn and steer the demo husks). Then replace tag=c9_victim in loop commands 6 through 13 with type=!block_display,type=!marker,type=!item, and replaces the NoAI:1b merge with /effect give @s slowness 2 5 true so players can feel the heavy pull of the sand.

Remove it again 5 commands

  1. /kill @e[tag=c9_qs]
  2. /scoreboard objectives remove c9_t
  3. /scoreboard objectives remove c9_sink
  4. /fill ~-6 ~-3 ~-6 ~6 ~-1 ~6 grass_block
  5. /fill ~-6 ~ ~-6 ~6 ~2 ~6 air

FAQ

Why doesn't the mob just fall straight to the bottom of the pit when it steps on the display entity?

the moment the mob touches the edge of the pit, its AI is turned off with NoAI:1b. Entities without AI do not experience normal gravity, allowing the repeating teleport command to lower them at a controlled, steady speed.

Can I change the quicksand into mud or soul sand?

Yes! Change minecraft:sand in setup command 9 (the block_display) and loop command 11 (the block particle) to minecraft:mud or minecraft:soul_sand to match any biome.

Commands used

/damage/data/execute/fill/kill/particle/scoreboard/setblock/summon/tp

Similar creations

Join 9Minecraft News & Guides