Using this minecraft redstone schematic, you can add traps in minecraft that will go off when you stand on top of them! Rogueclownfish has made traps from Pixel Dungeon and ported them into minecraft.
"We had a sequence that involved a giant Piglin robot, which was a Trojan horse-type thing that worked via redstone. I storyboarded it, we had full animatics of it, and it was a really hilarious scene ...