Actually, there is, you can make a trap where you have tnt above the person, and sand above that, and a pressure plate. When stepped on, the plate makes the TNT and sand fall on the person/mob.
You could opt to sell redstone devices and wire in place of TNT. I've made small traps with sand using redstone to direct the flow of water. It just takes a bit of research and looking in to.