is heaven actually based on being a good person, or just blind faith?

Ive seen tons of Christians, say that if you don’t believe in God, you go to hell. Is this true and or supported in the bible at all? If it is true, wouldn’t that just mean that admission into hell is based on a belief, and not if you are a good person or not, meaning good people get sent to hell and bad people to heaven?