29 If your right eye causes you to sin, pluck it out and cast it from you;
for it is more profitable for you that one of your members perish, than for your
whole body to be cast into hell. 30 And if your right hand causes you to sin,
cut it off and cast it from you; for it is more profitable for you that one of
your members perish, than for your whole body to be cast into hell.
Clearly one cannot translate Matthew 5:29-30 in the literal sense, however when taken in proper light there is much insight to be gained from these verses.
In effect, I believe Jesus is conveying several messages. Firstly, one must not bandaid their issues. Rather, they must solve the underlying problem that is causing the issue in the first place. For example, if one's depression is causing them to excessively drink, it does not solve the issue to avoid wine and beer altogether. To properly address the problem, one must rid themselves of their depression -- the real underlying problem.
The other message I believe to be portrayed is that the largest and most unnecessary sacrifice we can make is to spend eternity in hell. By unnecessary I mean to say that we do not need to live with problems, distractions, or temptations. Jesus is saying that these are erasable offenses and it is in our best interest to remove them from our lives.
As a practical matter, this makes complete sense. If something is causing you to excessively drink, altogether causing you physical and emotional harm, would it not make sense to address and remove a clear problem from your life? If you have an impulse to commit theft, would it not make sense to address the underlying issue and avoid offending multiple shop owners and clear jail time?
These are all good things.