As of right now, it is highly impractical to build with Coral as it has to directly be in contact with water.
The idea is to have Coral blocks check if they are connected to other Coral blocks which are touching water. This could chain up to 6 blocks.
To clarify, if i have one coral that is directly touching water, i could attach 5 more coral blocks in any direction and they would still survive. This would drastically increase the versatility of Coral for use in building and decorating outside of the oceans.
In terms of coding, this could work similar to how Scaffolding works in the recent Snap Shots we’ve seen.