A 17-year-old boy who posted images to social media, of a home-made bomb said he had no intention of carrying out an attack.
The teenager was arrested by counter-terrorism police after being reported by a member of public.
He hoped people would think he wanted to blow up mosques and told court “I find it easier to shock people than have a proper conversation.”
Leeds Crown Court also heard how he posted offensive comments to the internet, an emoji of a figure in a turban with a gun pointing to his head and an image of Bradford.
He has denied the preparation of terrorist acts.
The trial continues.

Fare Dodger Admits Assaulting Police Officer at London Tube Station
Aylesbury Drug Dealer Jailed for Two Years
Leeds in Running to Host 2035 FIFA Women's World Cup Matches
Bradford Hospital Staff Unite to Rescue Stray Cat Family
Richmond Council calls for West London Orbital extension
Seven jailed for helping Iranian nationals enter UK illegally
Leeds man jailed after naming false driver in speeding case
Final four men jailed for child sexual abuse in Bradford case
London SEND School Becomes First in England to Win World's Best School Prize
New and Improved Bus Services Launch Across Blackburn with Darwen
Reopening Keighley Tip Unlikely to Reduce Fly-Tipping, Council Warns
Leeds Economy Strengthens as City Targets 100,000 New Jobs
Legal Show
Remix Saturdays
The Golden Era
Bhangra Nights