A teenager was warned to expect custody if he returns to drugs after being found “intoxicated” at his West Bridgford home.
Eighteen months’ custody, suspended for 18 months, was ordered for Maximilian Harding of Trent Boulevard, West Bridgford.
He must undergo regular tests to show he is off drugs.
Harding, 19, must return to Nottingham Crown Court on January 19 with the first set of results. He must work with probation officers.
Judge James Sampson said housing workers found scales and dealer bags with Harding who appeared intoxicated.
“If there was ever a case which demonstrates drugs ruin lives, yours is a good example.
“Everybody is entitled to one significant mistake. I am going to give you a chance,” said the judge.
He told Harding that if he commits another offence, he can expect more time in custody to be added to the 18 months which have been suspended.
The judge added: “I don’t think I can make it any clearer.
“I want to hear about good progress. If there is any slacking, you know what will happen.”
Harding pleaded guilty to having Class A drugs with intent to supply them on October 24 last year. The cocaine will be destroyed.
Simon Eckersley, prosecuting, said a housing officer called on Harding and found him “intoxicated” in his bedroom. Digital scales had a residue of cocaine and dealer bags were nearby.
Police officers found cocaine with a street value of between £180 and £450, depending on how it was divided for sale.
Some samples were 76per cent pure while others had been mixed and were made up of only 21per cent cocaine. Baking powder had been used in the mixture.
When interviewed in March, Harding responded with “no comment to all questions,” added Mr Eckersley.
Digby Johnson, mitigating, described it as “an unusual case.” The judge said that he had received “a positive recommendation” in reports which had been compiled on Harding.