Minecraft wiki entry for Coral, associated text: When using bone meal on dirt, coarse dirt, sand, red sand, gravel, or clay in warm ocean biomes, coral generates in place of some of the seagrass. In Bedrock Edition, the same can happen in any biomes as long as bone meal is used in a water source above the aforementioned solid blocks.