Minecraft wiki entry for Command_blocks_and_functions, associated text: The player can do /kill @e[distance=..2] in a command block below a block with a pressure plate to make a multi-use landmine that kills all nearby entities upon stepping on it (including players, item frames, and paintings)