The first one is pretty useful, I've used it myself a couple of times actually (it does work). The second one though I know won't work on as many players, since most players shift / sneak while mining: in case it'd be a trap, or just in case they'd accidentally walk too close to the edge...