Judge to Michael Madsen You Need Serious Help With Your Booze Problem

6/20/2013 11:45 AM PDT

"Reservoir Dogs" actor Michael Madsen has a really bad booze problem that needs immediate attention -- so says the judge in his DUI case ... who just ordered Madsen to check in to a live-in alcohol treatment facility.

Madsen appeared in court in Van Nuys today sporting a nasty black eye. It's unclear how he got the shiner ... but the actor has bigger problems.

The actor had been ordered to appear in court today after the judge revoked his probation stemming from his 2012 arrest ... when he was popped on PCH in a gleaming red hot rod with a blood alcohol level over twice the legal limit (allegedly).

Madsen had struck a plea deal in the case, in which he agreed to attend AA classes -- but we're told he blew them off, so the judge revoked his probation.

Today ... the judge decided he needed some extra help with his alcohol problem ... and ordered him to enroll in a residential treatment facility for at least 30 days.

The judge ordered Madsen not to leave the facility without court approval -- and said the court would reevaluate the situation after the 30-day period based on a progress report from the facility.

Madsen was ordered to check in to the program within 72 hours.