A 15-year-old boy from Lancashire has been given a 12-month supervision order for trying to make explosives.
The teenager from Chorley had claimed that he was "trying to make rat poison" but that the mixture had become explosive by accident.
But Preston Youth Court convicted the boy of explosive offences after he pleaded guilty to possessing live ammunition.
Lancashire Police said that it took such offences "extremely seriously."
During the trial, the court was told that the explosives had not been mixed in the correct quantities and therefore posed no danger to the public.
However, Det Insp Paul Rudd from Lancashire Police said it still showed the dangers of attempting to make explosive devices.
"Anyone committing such offences, including this teenager, will face consequences for the rest of their lives.
"Parents need to be responsible in making sure that they know what their children are doing and, along with wider members of the community, report any suspicious activity to the police."
The sentence followed a three-day trial at Preston Youth Court.
The teenager was given a 12-month supervision order and told by the court that if he did not comply with the order he would receive an immediate custodial sentence.