Minecraft's "Smite" enchantment lets you do more damage to "undead" enemies, but it doesn't have the same effect on other ...
To make a mob farm in Minecraft that automatically spawns and kills enemies, you'll need stone, trapdoors, chests, hoppers, ...