A man has denied preparing an act of terrorism and threatening to kill people attending a Gay Pride event at a Cumbrian pub.
Ethan Stables, from Barrow, admitted possession of an explosive substance and possession of documents likely to be useful to a person committing or preparing an act of terrorism.
The 19-year-old appeared at Leeds Crown Court via video link.
Judge Peter Collier QC remanded him in custody to go on trial in January.
It is alleged that in June, Mr Stables searched the internet for material relating to a number of far right groups and, separately, information on the manufacture of explosives.
Prosecutors said he made made threats to kill in a private Facebook group, called “National Socialists Union standing against New World Order”.
He is also accused of carrying out reconnaissance of a pub in Barrow which was hosting a Gay Pride evening the same month.