The accomplices of a racist teenager and the school he targeted in a Anders Breivik-inspired massacre can be revealed for the first time today.

Michael Piggin was detained indefinitely after he was caught with an arsenal of weapons in his bedroom in Loughborough.

The racist also had detailed plans of deadly attacks on his school, the local mosque, council offices and Loughborough University in his diaries.

A court order banned the media from naming Burleigh College, Loughborough as a potential target and from identifying naming his accomplices Jacob Crouch and Ryan Towell, now both 20.

But they can be revealed today after the Court of Appeal overturned the order.

Michael Piggin planned a deadly attacks on his school was caught with an arsenal of weapons

This is Michael Piggin's room which features a swastika flag alongside posters of the Joker from Batman

The pair were both sentenced to community orders after they admitted possessing petrol bombs and pipe bomb parts before the Piggin’s trial began.

Piggin - now 20 but who was a teenager at the time of the plot - faced two trials where juries could not decide whether he was guilty or not.

He was sentenced to indefinite detention under the mental health act at the Old Bailey in 2014 after previously pleading guilty to charges of possessing a knife and parts for an improvised explosive.

Judge Brian Barker described Piggin as an ‘outright racist’ and noted his obsession with weaponry and the military.

‘You have a consuming preoccupation with guns and the methods used by the perpetrators of the Columbine massacre,’ he said.

The court heard Piggin wrote about arming himself with guns, bombs, and knives in a deadly assault inspired by the Norwegian mass murderer Anders Breivik while studying for his A-Levels.

Jacob Crouch and Ryan Towell admitted possessing petrol bombs and pipe bomb parts to help him

His bedroom floor was filled with knives, air guns, a machete, and a crossbow, while a Nazi swastika flag took pride of place on his wall.

Piggin built pipe bombs, smoke grenades and improvised explosives in his bedroom and tested Molotov cocktails behind a local leisure centre.

Judge Barker said at the time: ‘Cases of this type are fortunately rare but are of great concern to the public and normally attract long custodial sentences.

‘Given your long-term condition that is not appropriate. It’s clear you need treatment and that the treatment is still at an early stage.

‘A hospital order is in my judgement the proper disposal. Potential danger to the public is uppermost in my mind.'

It can now be revealed that Piggin planned to attack Burleigh College, Loughborough (pictured)

Piggin was cleared of preparing an act of terrorism and other terror offences after a second Old Bailey jury could not reach a decision in May 2014.

Judge Barker formally delivered not guilty verdicts to the charges at the hearing today.

He was accused of plotting to carry out a mass killing on 20 April - Hitler’s birthday and the date of the Columbine shootings.

Piggin denied he had been plotting terrorist acts and said his diary entries were not serious.

His lawyers claimed he had been just ‘retreating into fantasy.’

Piggin was charged with possessing an article for a purpose connected with terrorism, and possessing a document likely to be useful to a person committing or preparing an act of terrorism.