Ultimately, the only way to make good friends is to become a good friend yourself. Good people gather around other good people..
Our human relationships are like a mirror. So if you’re thinking to yourself, "If only so-and-so were a little nicer to me, I could talk to them about anything," then that person is probably thinking, "If only such-and-such would open up to me, I would be nicer to them.