A teenager planned to con thousands of pounds out of people at Leeds Festival by selling fake cocaine, a court heard.
Ishmail Khan was found in possession of a large quantity of sucrose when he was searched at the event at Bramham on August 25 last year.
Leeds Crown Court heard Khan was stopped by security staff as he appeared nervous.
-> Man, 33, found dead in Leeds on day he was due to be recalled to prison
Khan, who was 17 at the time of the incident, was found in possession of a plastic bag containing 56 dealer bags of a white powder.
The substance was examined and found to be sucrose.
It is often used as a mixing agent for class A drugs.
Officers believed Khan planned to sell the powder as genuine cocaine to festival goers at vastly inflated prices.
Anyone discovering they had been tricked by Khan would not have been able to complain to police that they had been duped.
Disgruntled 'customers' would also have struggled to find him among the thousands of people at the event.
He had enough sucrose to make around £5,600 if sold at £200 per gram.
-> David Lloyd pool death: Rocco Wright, 3, wandered off before being found in deep end at Leeds leisure club
Drugs sold at the festival can be worth around four times the usual street value.
Khan's mobile phone was examined but not found to contain incriminating text messages referring to drug dealing.
The teenager was then found to be wearing an extra layer of clothing on the bottom half of his body.
Cocaine worth £3,500 was found in 35 small bags hidden beneath his clothing.
Khan, of Perlethorpe Avenue, Nottingham, pleaded guilty to possession of cocaine with intent to supply.
He has two previous convictions for possessing drugs with intent to supply.
He was on bail at the time of his latest offence.
-> The full list of roads closed in Leeds during the Tour de Yorkshire
Khan appeared for sentencing today on his eighteenth birthday.
Judge Penelope Belcher told Khan: "This is particularly serious at a festival because a lot of young, naive people think it is very clever to take drugs.
"Not least because people like you are there to enable them to do so."
Khan was given an 18-month youth rehabilitation order and ordered to do 200 hours of unpaid work.
Judge Belcher added: "This is designed to enable you to grow up, man up, and put your offending behind you and start behaving like a law-abiding member of society."