Terraria item ID 3102. Terraria 1.4.5.7.
The Metal Detector is an informational accessory that detects valuable objects, including ores, chests, Life Crystals, and Life Fruit, within a rectangular area of 170ร125 tiles centered on the player. The Metal Detector displays the specific type of what was detected, for instance, "Chlorophyte detected nearby!" When multiple valuables are detected, only the one with the highest value is noted. The Metal Detector has a 1/2 (50%) / 100% chance of being dropped by Nymphs, a rare cavern enemy.
Description from the Terraria Wiki.