Three friends who were caught growing cannabis plants at a Todmorden house have each been ordered to do 120 hours of unpaid work for the community.
Christopher McCarthy, 24, Stewart Escritt, 25 and Kyle Hignett, 26, were all arrested last September when officers visited the property on Burnley Road.
They found 22 plants growing in a bedroom which had been equipped to grow the Class B drug.
Prosecutor David Lampitt told Bradford Crown Court last week that police officers also found dried cannabis in the kitchen of the property.
Judge David Hatton QC was told that the 22 plants could have produced a yield of just under a kilogram of cannabis with a street value of almost £10,000.
The 422 grammes of dried cannabis could have been worth just over £4,000.
But Mr Lampitt said the men all accepted that they had been producing the drug together and that it was for their own use.
The trio all admitted charges of producing cannabis and abstracting electricity.
Judge Hatton said they had made a bad decision to grow the drug.
“They thought it would be a good idea to grow the drug - they were wrong,” he told the men’s lawyer.
The judge said it was not a case for a prison sentence and he noted that all three defendants were decent people who had learned a lesson.
In addition to doing unpaid work over the next year the men will each have to pay £250 costs.