LAS VEGAS (AP) — An 18-year-old man threatened an attack at his former high school and had an explosive device in his home, according to Las Vegas prosecutors and police.

Prosecutors on Wednesday said former student Cody Pomeroy had made threats online and to another person describing some sort of attack at Desert Oasis High School, The Las Vegas Review-Journal reported .

Pomeroy made an initial appearance in a Las Vegas courtroom Wednesday where a judge set his bail at $100,000. He's due back in court for an arraignment on Friday morning.

Justice of the Peace Ann Zimmerman told Pomeroy in court that words have consequences. "How many mass shootings at schools have there been? You say those things, and people are going to believe you," Zimmerman said.

Prosecutor Christopher Pandelis called the teen's writings concerning. But Pomeroy's lawyer argued the letters were not threatening harm to anyone.

"He had a very, very specific plan in mind about what he was going to do — down to the clothing that he was going to wear when he went to Desert Oasis to carry out this plan," Pandelis said.

Prosecutors and police did not release further details about the writings or the threat.

Pomeroy is charged with making a threat of terrorism and possessing an explosive device.

Marissa Pensabene, a public defender assigned to represent Pomeroy, did not respond to an emailed message seeking comment Thursday.

Pomeroy attended the school until the 2018-2019 school year, Clark County School District records show.

Las Vegas police and the Clark County School District added extra security to the southwest Las Vegas school in response to the threats.

———

Information from: Las Vegas Review-Journal, http://www.lvrj.com

Copyright 2019 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.