Cobras are weak but dangerous enemies that are essentially a more advanced version of the Snakes commonly seen in the Dwelling. They are usually found as a rare spawn from Pots, but spawn naturally in Temple of Anubis and the Duat.
Cobras move back and forth, turning around upon reaching a wall or edge.
Occasionally, they will stop and spit a large glob of venom. This does not stun or deal damage, but will inflict poison on anything it hits if they are not already, including standard enemies.
When in a one block tile space, they will never turn around, but will infinitely spit out venom as they please.
Much like Snakes, Cobras die easily to any attack. Unlike Snakes, their ranged venom makes them dangerous to approach from the front. It is best to engage a Cobra from behind or above, killing it with a jump or a whip.
Cobras in areas where they frequently change direction, such as two-tile-wide platforms, are best avoided unless they can be jumped on, as their venom will cover both directions equally.
Cobras can be especially problematic in the Cosmic Ocean, where any that are near an edge will infinitely spit venom into the map from unseen directions, where they may poison the player. In the Cosmic Ocean, the player has no method of curing poison other than death at that point.
Because Cobras rarely spawn from pots, they are usually easily whipped once they emerge from their ceramic prison, as they will typically not spit venom immediately.