Regarding the desire that so many people have had through the ages, and which we still have today… the wish that going to heaven was based on being a good person and doing enough good things to earn a spot there:
Thus a Christian, being consecrated by his faith, does good works; but he is not by these works made a more sacred person, or more a Christian. That is the effect of faith alone; nay, unless he were previously a believer and a Christian, none of his works would have any value at all.
–Martin Luther
God does not look at our good works to determine if we are fit for heaven. He looks at our faith.
Jesus says: I am the Way, the Truth, and the Life. No one comes to the Father but by Me.
Many of us have this thought: “I hope I’ve been a good enough person to go to heaven.” But that is not how God operates. Jesus says that the only way to salvation is through belief in Him for salvation… belief that His sacrifice on the cross was what made a way for us to enter into God’s presence.
And once we have been transformed from people of unbelief to people of belief, then our works matter – not for our salvation, but to show our love for our King and to point other people to Him.
Have you trusted in Christ as the only way to have eternal life? If so, then continue building up good works to bring glory to God. If not, then stop striving to earn your way to heaven. It is impossible. Instead, investigate the claims of Jesus and trust in Him for your salvation. He is the one who already earned the way. You just have to believe it.