Moonsnakes are species that appear as obstacles in Super Mario Odyssey.
They have a similar appearance and behavior to the Spike Bar obstacles seen in other games; however, they appear to be made out of stone or rock instead of metal and have a base made out of Moon Rock. They come in different lengths and some have more than one set on a base.
Some Moonsnakes are also able to move back and forth in a set path. They appear in the Seaside Kingdom, Snow Kingdom, Moon Kingdom, Dark Side, and Darker Side. They cannot be defeated by any means.
They are not a living enemy and function more as an obstacle as they rotate around a block in a clockwise or counter-clockwise direction. They often appear on the ground. If Mario makes contact with one, he will take damage from the fire.