Not many criminals would say they had good luck when their home has been raided by police, but that is what saved the life of Adam Perez when was found unconscious from a drug overdose.
Police suspected he was in possession of stolen items when they went to his Wooragee home on August 15.
Once inside, they found him lying on the floor of his garage.
Perez, 27, was taken to Albury hospital for treatment and made a recovery, but was arrested the next day.
Officers who had found him unconscious and called for help also found what they were looking for inside his garage.
This was a four-wheel drive stolen from Lalor in late June or early July, and a motorbike which had been stolen from Lavington and parked on a trailer in Beechworth between August 9 and 10.
Perez had used a heat gun to remove the badges and decals on the four-wheel drive for another person, then made changes to the plastic and seats on the stolen motorbike.
A stolen wallet and credit cards were also found with the motorbike.
Perez has been in custody since his arrest and appeared in Wodonga Magistrates Court this week to plead guilty to charges of theft and handling stolen goods.
Magistrate David Faram sentenced him to four months in jail - three for the new charges and one for breaching a previous community corrections order.
MORE NEWS FROM COURT:
"One significant good that came from it is he survived, it's a miracle that he was found," he said.
"It might serve as the final wake-up call ... You can't get bigger than that."
Perez's defence solicitor Mario Vaccaro said the near-death experience made his client realise he needed help.
"It's pretty clear that the reoffending comes from a pretty serious drug addiction that he was unable to get off," he said.
Perez has planned to enter a drug rehabilitation facility in Perth once released, with his plane ticket to be purchased by his family who he reconnected with while in custody over the past month.
Mr Faram said community corrections order had previously been imposed to help Perez with his "savage addiction" to methamphetamine over years.
But the young man continued to commit increasingly serious offences, so time in jail was the only outcome left.
"It's a measure of this terrible drug that you have not been able to deal with these issues," Mr Faram said.
"This court has done all it could to provide you with sentencing outcomes in the past that might have provided you with a way forward ... We eventually run out of options, he's got to go away for a significant amount of time."
He said he hoped the lengthy rehabilitation program in Perth would be successful after Perez is released.
Perez blew a kiss to his mother, who was in the public gallery to support him, as he was taken back into custody.