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.
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.
/scoreboard objectives add c9_timer dummy/fill ~-6 ~-1 ~-6 ~6 ~-1 ~6 mud/fill ~-5 ~-1 ~-4 ~5 ~-1 ~5 water/fill ~-2 ~ ~-5 ~2 ~2 ~-2 mossy_cobblestone/fill ~-2 ~ ~-1 ~2 ~ ~3 mossy_stone_bricks/fill ~-1 ~ ~ ~1 ~ ~5 red_terracotta/fill ~-1 ~ ~3 ~1 ~ ~6 mossy_stone_brick_slab/setblock ~-2 ~1 ~2 smooth_quartz_stairs[facing=north]/setblock ~2 ~1 ~2 smooth_quartz_stairs[facing=north]/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]}}]}/execute as @e[tag=c9_ctrl] run scoreboard players add @s c9_timer 1/execute if score @e[tag=c9_ctrl,limit=1] c9_timer matches 75.. run scoreboard players set @e[tag=c9_ctrl] c9_timer 1/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]}/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/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/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]}}/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]}}/execute if score @e[tag=c9_ctrl,limit=1] c9_timer matches 30..38 run tp @e[tag=c9_prey] ~ ~-100 ~/execute if score @e[tag=c9_ctrl,limit=1] c9_timer matches 30..38 run kill @e[tag=c9_prey]/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/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/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/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]}}/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]}}setup #10 Summons the upper jaw as a scaled mossy stone brick block_display rotated 45 degrees upward using a quaternion in left_rotation, carrying the upper quartz teeth and glowing gold eyes as passengers.loop #3 Spawns a glowing chicken on the stone slab walkway in front of the crocodile mouth at the beginning of each cycle if one is not already present.loop #6 At tick 28, when the chicken reaches the red terracotta tongue, resets the jaw's left_rotation quaternion to identity over 3 ticks so the upper snout slams shut.loop #10 Sprays feather item particles and bright crimson dust particles across ticks 29 to 36 right as the jaw closes on the prey.loop #13 At tick 52, smoothly interpolates the upper jaw and teeth back to their tilted open position over 16 ticks.


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.
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.
/kill @e[tag=c9_jaw]/kill @e[tag=c9_teeth]/kill @e[tag=c9_eye]/kill @e[tag=c9_prey]/scoreboard objectives remove c9_timer/fill ~-6 ~-1 ~-6 ~6 ~-1 ~6 grass_block/fill ~-6 ~ ~-6 ~6 ~4 ~6 airBlock 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.
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.
/data/execute/fill/kill/particle/playsound/scoreboard/setblock/summon/tp
▶Fanning Mechanical Jeweled Peacock StatueStatues & FiguresHard24 cmds
▶Holographic Brain Neural Synapse FiringStatues & FiguresExpert25 cmds
▶Liquid Metal T-1000 Morphing StatueStatues & FiguresExpert24 cmds
▶Self-Carving Marble Ice Pegasus SculptureStatues & FiguresHard24 cmds
▶Shattered Floating Island Gravity ReversalFloating IslandsHard24 cmds
▶Anamorphic Knight Helm IllusionStatues & FiguresHard23 cmds