A teenage boy charged with terrorism-related offences allegedly wrote "that a massacre needs to happen", naming potential locations including a church, a Northern Territory court has heard.
The 14-year-old, who also allegedly had an Al-Qaeda training manual on his computer, was arrested by the Joint Counter Terrorism Team, following an anonymous tip-off from a member of the public last month.
The boy, who cannot be named, is facing charges of one count each of collecting documents likely to facilitate terrorist acts, possessing violent extremist material and possessing or controlling firearms and explosives manufacture material.
He faced an NT youth justice court today via audio-visual link, where his lawyers continued to argue for him to be released on bail, while his mother watched on.
While objecting to the boy's bid for freedom, Commonwealth prosecutor Hadi Mazloum told the court the child had spent months writing about planning an attack.
He told the court the teenager wrote a note on May 11 titled "In case I die", saying he wanted to self-harm and that it would "be awesome to shoot up" several places.
"He said that he was 14, guns were hard to get in Australia, there was a low chance of that happening," Mr Mazloum said.
The court heard the boy sent a series of messages to another child on August…