From the Super Mario Wiki
Retrieved from "https://www.mariowiki.com/index.php?title=Spiked_Shell&oldid=2487939"
Spiked Shells are obstacles that appear in Super Mario Odyssey. They behave similar to the Spiked Balls seen in other games, but are made out of shells instead of metal as the name suggests. They are found in the Seaside Kingdom rolling inside a cave area near the Rolling Canyon Checkpoint Flag on the way to the "The Seal Above the Canyon" Power Moon. If Mario runs into one of them, the Spike Shell will break and he will lose a piece of his Health Meter.
The boss of the Seaside Kingdom, Mollusque-Lanceur spits out Spiked Shells during his battle that will float on the surface of the water for a few seconds before flashing yellow and exploding. The explosion can cause Mario to lose a piece of his Health Meter. They will not float if he spits them out onto an area with shallow water and they will instead explode when they land.