In the swamp biome the snakes can be found everywhere so try to find a land they can climb most rocks so flat ground is your best bet brace yourself against the rocks on the spots so they can't sneak behind you and you can get a clear shot

More Titanoboa Encountering Tips