Hungry Crocodile Statue Trap

A mossy crocodile statue in a swamp pool waits with glowing golden eyes and snaps its hinged stone jaw shut when a chicken wanders onto its red tongue.

Java EditionHolograms & Display EntitiesHard24 commandsTested on a real 26.2 & 26.3 server
A mossy stone crocodile trap snaps its jaw shut on a chicken in a pool. Download the GIF Video & GIF © www.9minecraft.net

Statues & FiguresNatureWaterGreenRedGoldAdventure MapMap MakingDecorationBlock displaysSmooth animation (interpolation)Riding & passengersSummoned mobsBlock building (fill/setblock/clone)Sounds21+ commands

Hidden inside a muddy swamp pool sits a mossy stone crocodile statue with glowing golden eyes and its wide upper jaw propped open. White quartz teeth line its mouth around a bright red terracotta tongue.

As a curious chicken waddles along the stone path and steps onto the tongue, the hinged block display jaw violently slams shut using smooth interpolation, releasing a burst of floating feathers and crimson particles before slowly creaking back open for the next victim.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_timer dummy
  2. /fill ~-6 ~-1 ~-6 ~6 ~-1 ~6 mud
  3. /fill ~-5 ~-1 ~-4 ~5 ~-1 ~5 water
  4. /fill ~-2 ~ ~-5 ~2 ~2 ~-2 mossy_cobblestone
  5. /fill ~-2 ~ ~-1 ~2 ~ ~3 mossy_stone_bricks
  6. /fill ~-1 ~ ~ ~1 ~ ~5 red_terracotta
  7. /fill ~-1 ~ ~3 ~1 ~ ~6 mossy_stone_brick_slab
  8. /setblock ~-2 ~1 ~2 smooth_quartz_stairs[facing=north]
  9. /setblock ~2 ~1 ~2 smooth_quartz_stairs[facing=north]
  10. /summon block_display ~ ~1 ~-1 {Tags:["c9_ctrl","c9_jaw"],interpolation_duration:3,block_state:{Name:"minecraft:mossy_stone_bricks"},transformation:{left_rotation:[-0.3826834f,0f,0f,0.9238795f],right_rotation:[0f,0f,0f,1f],scale:[5f,1.2f,5.2f],translation:[-2.5f,0f,0f]},Passengers:[{id:"minecraft:block_display",Tags:["c9_teeth"],interpolation_duration:3,block_state:{Name:"minecraft:quartz_block"},transformation:{left_rotation:[-0.3826834f,0f,0f,0.9238795f],right_rotation:[0f,0f,0f,1f],scale:[4.6f,0.7f,0.6f],translation:[-2.3f,-0.5f,4.2f]}},{id:"minecraft:block_display",Tags:["c9_eye"],Glowing:1b,glow_color_override:16766720,brightness:{sky:15,block:15},block_state:{Name:"minecraft:gold_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.1f,1.1f,1.1f],translation:[-2.3f,1.7f,-1.5f]}},{id:"minecraft:block_display",Tags:["c9_eye"],Glowing:1b,glow_color_override:16766720,brightness:{sky:15,block:15},block_state:{Name:"minecraft:gold_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.1f,1.1f,1.1f],translation:[1.2f,1.7f,-1.5f]}}]}

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

  1. /execute as @e[tag=c9_ctrl] run scoreboard players add @s c9_timer 1
  2. /execute if score @e[tag=c9_ctrl,limit=1] c9_timer matches 75.. run scoreboard players set @e[tag=c9_ctrl] c9_timer 1
  3. /execute if score @e[tag=c9_ctrl,limit=1] c9_timer matches 1..25 unless entity @e[tag=c9_prey] run summon chicken ~ ~1.1 ~4.5 {Tags:["c9_prey"],NoAI:1b,NoGravity:1b,Invulnerable:1b,Silent:1b,Glowing:1b,Rotation:[180f,0f]}
  4. /execute if score @e[tag=c9_ctrl,limit=1] c9_timer matches 1..28 as @e[tag=c9_prey] at @s run tp @s ~ ~ ~-0.12 180 0
  5. /execute if score @e[tag=c9_ctrl,limit=1] c9_timer matches 1..28 at @e[tag=c9_prey] run particle happy_villager ~ ~0.4 ~ 0.25 0.25 0.25 0.02 2 force
  6. /execute if score @e[tag=c9_ctrl,limit=1] c9_timer matches 28 as @e[tag=c9_jaw] run data merge entity @s {start_interpolation:0,interpolation_duration:3,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[5f,1.2f,5.2f],translation:[-2.5f,0f,0f]}}
  7. /execute if score @e[tag=c9_ctrl,limit=1] c9_timer matches 28 as @e[tag=c9_teeth] run data merge entity @s {start_interpolation:0,interpolation_duration:3,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[4.6f,0.7f,0.6f],translation:[-2.3f,-0.5f,4.2f]}}
  8. /execute if score @e[tag=c9_ctrl,limit=1] c9_timer matches 30..38 run tp @e[tag=c9_prey] ~ ~-100 ~
  9. /execute if score @e[tag=c9_ctrl,limit=1] c9_timer matches 30..38 run kill @e[tag=c9_prey]
  10. /execute if score @e[tag=c9_ctrl,limit=1] c9_timer matches 29..36 run particle item{item:{id:"minecraft:feather"}} ~ ~1.5 ~1.3 0.9 0.5 0.9 0.15 25 force
  11. /execute if score @e[tag=c9_ctrl,limit=1] c9_timer matches 29..36 run particle dust{color:[0.95,0.08,0.08],scale:2.4} ~ ~1.4 ~1.3 0.8 0.4 0.8 0.05 25 force
  12. /execute if score @e[tag=c9_ctrl,limit=1] c9_timer matches 30 run playsound entity.evoker_fangs.attack master @a ~ ~1 ~1 1.5 0.6
  13. /execute if score @e[tag=c9_ctrl,limit=1] c9_timer matches 52 as @e[tag=c9_jaw] run data merge entity @s {start_interpolation:0,interpolation_duration:16,transformation:{left_rotation:[-0.3826834f,0f,0f,0.9238795f],right_rotation:[0f,0f,0f,1f],scale:[5f,1.2f,5.2f],translation:[-2.5f,0f,0f]}}
  14. /execute if score @e[tag=c9_ctrl,limit=1] c9_timer matches 52 as @e[tag=c9_teeth] run data merge entity @s {start_interpolation:0,interpolation_duration:16,transformation:{left_rotation:[-0.3826834f,0f,0f,0.9238795f],right_rotation:[0f,0f,0f,1f],scale:[4.6f,0.7f,0.6f],translation:[-2.3f,-0.5f,4.2f]}}

How it works

Frames from the test run

Hungry Crocodile Statue Trap - frame 1Hungry Crocodile Statue Trap - frame 2Hungry Crocodile Statue Trap - frame 3

Recorded on our own test server: 56 frames at about 9.2 fps. Our image check saw: A mossy stone crocodile statue with glowing gold eyes in a water pool snaps its jaw shut on a chicken, creating red particles and dropping feathers.

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 at the center of a flat open area where you want the swamp pool and crocodile statue to appear.
  2. Run each of the 10 setup commands in order to carve the mud pool, build the lower stone jaw and red tongue, and summon the hinged block_display upper jaw.
  3. Place 14 repeating command blocks set to Always Active near the build (or chain them from one repeating command block).
  4. Paste one loop command into each block so the timer runs and the trap automatically resets every 75 ticks.
  5. Watch the glowing chicken walk onto the red tongue and trigger the snapping stone jaw.

Use it with real players

To turn this into a survival dungeon trap triggered by players instead of the demo chicken, remove the chicken summon and movement commands (loop commands 3, 4, and 5) and replace the timer condition on the jaw slam with /execute if entity @a[x=~-1,y=~1,z=~,dx=2,dy=1,dz=2] followed by /damage @a[x=~-1,y=~1,z=~,dx=2,dy=1,dz=2] 12 minecraft:generic when the jaw snaps shut.

Remove it again 7 commands

  1. /kill @e[tag=c9_jaw]
  2. /kill @e[tag=c9_teeth]
  3. /kill @e[tag=c9_eye]
  4. /kill @e[tag=c9_prey]
  5. /scoreboard objectives remove c9_timer
  6. /fill ~-6 ~-1 ~-6 ~6 ~-1 ~6 grass_block
  7. /fill ~-6 ~ ~-6 ~6 ~4 ~6 air

FAQ

Why does the upper jaw rotate smoothly instead of snapping in a single frame?

Block displays support transformation interpolation. Setting interpolation_duration to 3 when slamming shut and 16 when reopening makes the client smoothly animate between the open and closed rotation quaternions.

Can I change the size of the crocodile statue?

Yes. Adjust the scale and translation arrays inside the transformation NBT of the c9_jaw and c9_teeth block_display entities, and widen the stone brick base to match.

Commands used

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

Similar creations

Join 9Minecraft News & Guides