A man caught with a greenhouse full of large cannabis plants has avoided further jail time, but must complete community work and treatment.
Police raided the Laanecoorie property Thomas Patrick McCarthy shared with his partner and three children last April.
Officers found a greenhouse, enclosed by a Colorbond fence, which contained 17 large cannabis plants with a large amount of budding, close to harvesting.
It was estimated these plants would have produced dried cannabis weighing 25.4 to 36.4 kilograms.
At the property police also discovered cannabis set out to dry, weighing a little over one kilogram.
A loaded shotgun and a rifle with ammunition were found in an unlocked kitchen pantry in the home.
More court news: Woman sentenced for stealing car at knifepoint
When asked by an officer if there was anything else, McCarthy pointed them to a box under his bed, which contained a shortened .22 rifle and more ammunition.
McCarthy pleaded guilty in the County Court in June to cultivating cannabis, drug trafficking, possessing an unregistered handgun, insecurely storing firearms as an unlicensed person, possessing a category A longarm without a licence, possessing a category B longarm without a licence, possessing cartridge ammunition without a permit, and possessing a silencer without a permit.
Judge Susan Pullen sentenced McCarthy to 143 days' imprisonment - time he had already served - and a community corrections order to run for two and a half years.
Under the order, McCarthy must complete 200 hours of unpaid community work and undergo drug abuse, medical, and mental health assessment and treatment as directed, as well as programs to address offending.
He was also fined $2050.
More court news: Driver jailed after injuring two police officers on Calder
In sentencing, Judge Pullen said McCarthy's background was linked to his offending and affected his moral culpability.
McCarthy grew up in institutions and suffered abuse as a child, and a psychologist reported he met the criteria for post-traumatic stress disorder.
Judge Pullen accepted McCarthy's mental health, as well as numerous physical health problems, would make imprisonment harder for him than others.
She noted references from McCarthy's partner and others who knew him, who described him as caring, a loving father, and a community-minded person.
But Judge Pullen said the offending was serious and concerning.
But for his guilty pleas, McCarthy would have been sentenced to five years' imprisonment, with a non-parole period of three years and eight months.