Minecraft wiki entry for Command_blocks_and_functions, associated text: By using /clear, players can scan people for items. If they want to remove certain items, use /clear <playername> <itemid>. For example, on a server that doesn't want griefing, players could have a clock connected to a command block set to /clear @a minecraft:flint_and_steel.