Terraria item ID 275. Terraria 1.4.5.7.
Corals are crafting materials which can be found in the Ocean biomes at the ends of the world. They grow naturally on Sand Blocks underwater, within 380 tiles of the left or right edges of the world, and above the depth of (Desktop, Console and Mobile versions) โ20 feet / (Old-gen console and 3DS versions) 0 feet, as long as no more than 5 Corals ((Desktop, Console and Mobile versions) or Seashells) are within 7 tiles horizontally and vertically. Corals can be harvested either with a pickaxe/drill/explosives, by mining out the sand underneath them, or by placing a block above them.
Description from the Terraria Wiki.